| ### How to set a static IPv6 address on my Linux server? ### | |
| The IP configuration of a host is a rather repetitive and - let's be honest - b… | |
| However, there are cases when this mechanism might be dangerous. One of such ca… | |
| A good practice is to set the IPv6 address of your server statically. Setting t… | |
| iface eth0 inet6 static | |
| pre-up modprobe ipv6 | |
| address 2001:470:d37b:1::2 | |
| gateway 2001:470:d37b:1::1 | |
| netmask 64 | |
| Of course, you need to modify addresses according to your network. Note that th… | |
| Usually, you will also want to prevent your network interface to get an autocon… | |
| In theory, it should be possible to disable IPv6 autoconfiguration by disabling… | |
| net.ipv6.conf.all.autoconf=0 | |
| net.ipv6.conf.all.accept_ra=0 | |
| Unfortunately, this hasn't worked on my Debian 5.0.6 server, so I just disabled… | |