When I set up the ethernet card in my boot scripts:
ip link set up dev eth0
ip addr add 10.0.0.1/24 brd + dev eth0 label eth0
ip addr add 10.0.0.9/24 brd + dev eth0 label eth0
I get this message:
Sep 7 01:27:59 wonderland kernel: eth0: no IPv6 routers present
and an extra default route for ipv6 is added by the kernel:
root@wonderland:vc/2:~#ip -6 ro
fe80::/10 dev eth0 proto kernel metric 256 mtu 1500
ff00::/8 dev eth0 proto kernel metric 256 mtu 1500
default dev eth0 proto kernel metric 256 mtu 1500
unreachable default dev lo metric -1 error -101
root@wonderland:vc/2:~#
This is very annoying because IPv6 enabled programs then will try
connectiong to IPv6 addresses and will have to wait the timeout to try
with the IPv4 address, and this means I can't use a kernel with IPv6
support on my IPv4 only hosts (or on IPv6 hosts without a configured
tunnel).
How can I stop the kernel adding this route?
--
ciao,
Marco
|