@vict0r said:
Can't ping default ipv6 gw from the Alpine Linux instance.
Should it be working out of the box?
kvm USA
Setup the network manually and see if it works.
This is correct, I learned this the hard way. @vict0r I assume you got a NAT vps and have yet to configure IPV6 other than just seeing it assigned in the network tab on VPS Control panel. Let us know with details if otherwise.
Yes it's a NAT vps. Their Debian and CentOS images does set it up with working ipv6 connectivity.
So far I've done something like:
ip -6 addr flush dev eth0
ip -6 neigh flush dev eth0
ip -6 route flush dev eth0
ip -6 addr add [mystaticipaddressasprovidedinthecontrolpanel] dev eth0
ip -6 route add default via [gwaddressasprovidedsomewhere] dev eth0
@vict0r said:
Yes it's a NAT vps. Their Debian and CentOS images does set it up with working ipv6 connectivity.
So far I've done something like:
ip -6 addr flush dev eth0
ip -6 neigh flush dev eth0
ip -6 route flush dev eth0
ip -6 addr add [mystaticipaddressasprovidedinthecontrolpanel] dev eth0
ip -6 route add default via [gwaddressasprovidedsomewhere] dev eth0
Probably not correct. Please help.
Yeah, my first question would be "Do you know it's eth0?" That's less common now than it used to be.
@vict0r said:
Yes it's a NAT vps. Their Debian and CentOS images does set it up with working ipv6 connectivity.
So far I've done something like:
ip -6 addr flush dev eth0
ip -6 neigh flush dev eth0
ip -6 route flush dev eth0
ip -6 addr add [mystaticipaddressasprovidedinthecontrolpanel] dev eth0
ip -6 route add default via [gwaddressasprovidedsomewhere] dev eth0
Probably not correct. Please help.
Yeah, my first question would be "Do you know it's eth0?" That's less common now than it used to be.
KVM chances are high but you are correct best to check.
Comments
Setup the network manually and see if it works.
Free Hosting at YetiNode | Cryptid Security | URL Shortener | LaunchVPS | ExtraVM | Host-C | In the Node, or Out of the Loop?
This is correct, I learned this the hard way. @vict0r I assume you got a NAT vps and have yet to configure IPV6 other than just seeing it assigned in the network tab on VPS Control panel. Let us know with details if otherwise.
Insert signature here, $5 tip required
Yes it's a NAT vps. Their Debian and CentOS images does set it up with working ipv6 connectivity.
So far I've done something like:
ip -6 addr flush dev eth0
ip -6 neigh flush dev eth0
ip -6 route flush dev eth0
ip -6 addr add [mystaticipaddressasprovidedinthecontrolpanel] dev eth0
ip -6 route add default via [gwaddressasprovidedsomewhere] dev eth0
Probably not correct. Please help.
1. Check IPv6 Availability
Ensure your server's network interface supports IPv6. Use:
If IPv6 is enabled, you’ll see an output listing IPv6 addresses.
2. Locate the Network Interface
Identify your network interface (e.g.,
eth0
,ens33
, etc.):3. Edit the Network Configuration File
The configuration files are located in
/etc/sysconfig/network-scripts/
.Open the file for your network interface, e.g.,
ifcfg-eth0
:4. Add IPv6 Settings
Append or modify the following lines with your IPv6 details:
Replace
your_ipv6_address
with your assigned IPv6 address andyour_ipv6_gateway
with the gateway.5. Restart the Network Service
Save the file and restart the network service to apply changes:
6. Verify IPv6 Configuration
Check if the IPv6 address is assigned to your interface:
Ping an IPv6 address to ensure connectivity:
7. Enable IPv6 Permanently (Optional)
If IPv6 is disabled globally, enable it in
/etc/sysctl.conf
or/etc/sysctl.d/99-sysctl.conf
:Apply changes:
Free Hosting at YetiNode | Cryptid Security | URL Shortener | LaunchVPS | ExtraVM | Host-C | In the Node, or Out of the Loop?
Yeah, my first question would be "Do you know it's eth0?" That's less common now than it used to be.
KVM chances are high but you are correct best to check.
Free Hosting at YetiNode | Cryptid Security | URL Shortener | LaunchVPS | ExtraVM | Host-C | In the Node, or Out of the Loop?
Here is my network configuration on natvps.net with alpine linux, you need to change the IP to yours:
By the way, IPv6 doesn't work from time to time on Canada node, but I don't bother to open a ticket and just don't renew it.
MicroLXC is lovable. Uptime of C1V
Thank you.
It is now working.
The cloud init script in the Alpine Linux image does not set:
pre-up echo 0 > /proc/sys/net/ipv6/conf/eth0/accept_ra
That was the culprit.