[Linux and IPv6 HOWTO] Persistent configuration with Debian
In
<URL:http://www.bieringer.de/linux/IPv6/Linux+IPv6-HOWTO/x1924.html>,
you write:
> I still don't have any information whether a persistent IPv6
> configuration can be stored somewhere.
If you just mean "configuring a static IPv6 address with the Debian
operating system", the answer is:
1) Be sure that IPv6 is loaded, either because it is compiled into the
kernel or because the module is loaded. For the latest, three solutions,
adding it to /etc/modules, using the pre-up trick shown later or using
kmod (not detailed here).
2) Configure your interface. Here we assume eth0 and RIR address
(2001::). Edit /etc/network/interfaces :
iface eth0 inet6 static
pre-up modprobe ipv6
address 2001:660:3003:3::1:1
# To suppress completely autoconfiguration:
# up echo 0 > /proc/sys/net/ipv6/conf/all/autoconf
netmask 64
# The router is autoconfigured and has no fixed address.
# It is magically
# found. (/proc/sys/net/ipv6/conf/all/accept_ra). Otherwise:
#gateway 2001:660:111:3:2e0:29ff:fe62:3a89
And you reboot or you just 'ifup --force eth0' and you have your
static address.
Reply to: