|
Freakservers supports IPv6 and includes a stable, native IPv6 connection
with every server!
On this page, we will explain how to configure a static, native IPv6 IP address
on your Linux server.
Note, Freakservers supports native IPv6, which means it works without
tunnels. You don't need to install software or run gre/ipip/sit or whatever.
Let's assume you have been assigned the IPv6 range 2001:1408:ff84::/48.
This means, your gateway IP is 2001:1408:ff84::1. For your server, you can use
2001:1408:ff84::2 - and all other IPs within this range.
Do NOT use the 2001:1408:ff84::1 IP - this one is reserved for the gateway!
First, let's make sure we have the IPv6 module in our kernel:
modprobe ipv6
Second, check if the iproute2 package is installed on your server.
Iproute2 provides the ip command, which is better than the old ifconfig.
If this fails because iproute isn't installed, then install the recommended
package of your Linux distribution. With debian, you would do apt-get install iproute
or use the dselect command.
/sbin/ip
So, now we configure the network card with IPv6. You may repeat this step for
every additional IP you want to add.
ip -6 addr add 2001:1408:ff84::2/48 dev eth0
Last but not least, we add the default gateway:
ip -6 route add default via 2001:1408:ff84::1
To test the setup, ping a well-known host:
ping6 www.freakservers.com
Do you still have problems?
Almost always this will be because of a wrong/missing default gateway. So,
your setup with the following commands:
ip -6 addr show dev eth0
ip -6 route ls
... do you see correctly configured addresses on eth0?
Output of the first command should look something like this:
2: eth0: mtu 1500 qlen 1000
inet6 2001:1408:ff84::2/48 scope global
valid_lft forever preferred_lft forever
inet6 2001:1408:ff84::3/48 scope global
valid_lft forever preferred_lft forever
... do you see a default gateway?
Output of the second command should look like this:
2001:1408:ff84::/48 dev eth0 metric 256 mtu 1500 advmss 1440 hoplimit 64
fe80::/64 dev eth0 metric 256 mtu 1500 advmss 1440 hoplimit 64
ff00::/8 dev eth0 metric 256 mtu 1500 advmss 1440 hoplimit 1
default via 2001:1408:ff84::1 dev eth0 metric 1024 mtu 1500 advmss 1440 hoplimit 64
You can fix the default gateway with these commands:
ip -6 route del default dev eth0
ip -6 route add default via 2001:1408:ff84::1
(of course, replace with YOUR default gateway, not the example one.)
© 2004-2006 ;
Language: en | de
Last modified: 2006-03-18 11:51
37cf973c08ee331435f7226c3368a1c5 |