I've installed Debian 6.0.6 running on kernel 2.6.32-5-amd64 and after the installation I assigned a static IPv6 address to the eth0 interface.
This is how my /etc/network/interfaces file looks like:
auto lo
iface lo inet loopbackauto eth0
iface eth0 inet6 staticaddress fe80::a:1 netmask 64 gateway fe80::1
This is what the output of "ifconfig eth0" looks like:
eth0 Link encap:Ethernet HWaddr 10:1f:74:c6:27:5f
inet6 addr: fe80::121f:74ff:fec6:275f/64 Scope:Link
inet6 addr: fe80::a:1/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:45 errors:0 dropped:0 overruns:0 frame:0
TX packets:48 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:6427 (6.2 KiB) TX bytes:7969 (7.7 KiB)
Interrupt:20 Memory:d0700000-d0720000
As you can see there are 2 IPv6 addresses;
One automatically generated IPv6 address
One static assigned IPv6 address via /etc/network/interfaces
Now my question is how do I disable the automatically generated IPv6 address ?
Most sites tell me to add the following lines into file /etc/sysctl.conf:
net.ipv6.conf.eth0.autoconf=0
net.ipv6.conf.eth0.accept_ra=0
But nothing happens after a reboot of the system. So I removed the first IPv6 address manually by running command:
ip -6 addr del fe80::121f:74ff:fec6:275f/64 dev eth0
and indeed the first IPv6 address got removed but after a reboot the address comes back.
Any clues on how to solve this problem ?
Thx in advance