Unlike IPv4, where you manually configure a gateway address, our IPv6 network utilizes Router Advertisements (RA) via the Neighbor Discovery Protocol (NDP).
How it works:
You do not need to manually configure a gateway IP in your network settings.
Your server simply listens for broadcast announcements from our routers. Once received, the gateway is automatically added to your routing table.
You do not need to manually configure a gateway IP in your network settings.
Your server simply listens for broadcast announcements from our routers. Once received, the gateway is automatically added to your routing table.
Ensuring RA is enabled (Linux)
If you have configured an IPv6 address but cannot reach the internet, your OS might be ignoring these router announcements. You must ensure accept_ra is enabled in the kernel.
1. Check current status
sysctl net.ipv6.conf.all.accept_ra
- Result = 1: Correct. Router Advertisements are accepted.
- Result = 0: Incorrect. Proceed to step 2.
2. Enable immediately
sysctl -w net.ipv6.conf.all.accept_ra=1
sysctl -w net.ipv6.conf.default.accept_ra=1
3. Make persistent (Reboot-proof)
To ensure this setting survives a reboot, add it to your system configuration file.
echo "net.ipv6.conf.all.accept_ra = 1" >> /etc/sysctl.conf
echo "net.ipv6.conf.default.accept_ra = 1" >> /etc/sysctl.conf
How to find the Gateway IP
Even though it is configured automatically, you might want to know the address for troubleshooting purposes.
Run the following command:
ip -6 route show default
Output example:
default via fe80::2d0:3ff:fe00:1234 dev eth0 proto ra metric 1024 expires 1798sec
Note: The gateway is often a Link-Local address (starting with fe80::). This is normal behavior for IPv6.