I've noticed that my internal Ubuntu servers have odd default routes for and fe80::
address:
::/0 fe80::204:edff:febc:b011 UGDAe 1024 0 1 eth0
It seems that this is picked up from my router somehow and I've found that there is a
need to use the following:
echo 0 > /proc/sys/net/ipv6/conf/default/accept_ra
Having looked at the configuration on my Bitfolk server I see the same sort of setup,
although more extensive:
pre-up echo "/sbin/modprobe ipv6" &&
/sbin/modprobe ipv6 || true
post-up echo "/proc/sys/net/ipv6/conf/default/forwarding=0" && echo 0
> /proc/sys/net/ipv6/conf/default/forwarding || true
post-up echo "/proc/sys/net/ipv6/conf/all/forwarding=0" && echo 0
> /proc/sys/net/ipv6/conf/all/forwarding || true
post-up echo "/proc/sys/net/ipv6/conf/default/accept_ra=0" && echo 0
> /proc/sys/net/ipv6/conf/default/accept_ra || true
post-up echo "/proc/sys/net/ipv6/conf/all/accept_ra=0" && echo 0
> /proc/sys/net/ipv6/conf/all/accept_ra || true
post-up echo "/proc/sys/net/ipv6/conf/$IFACE/accept_ra=0" && echo 0
> /proc/sys/net/ipv6/conf/$IFACE/accept_ra || true
post-up echo "/proc/sys/net/ipv6/conf/default/autoconf=0" && echo 0
> /proc/sys/net/ipv6/conf/default/autoconf || true
post-up echo "/proc/sys/net/ipv6/conf/all/autoconf=0" && echo 0
> /proc/sys/net/ipv6/conf/all/autoconf || true
post-up echo "/proc/sys/net/ipv6/conf/$IFACE/autoconf=0" && echo 0
> /proc/sys/net/ipv6/conf/$IFACE/autoconf || true
I'm curious about two things:
1. why post-up and not pre-up
2. why doesn't this work on my own Ubuntu servers?
I've tried the single line in pre-up and post-up and the full set of commands above.
On one occasion I did loose the default route to the fe80:: address, but generally I
don't (with no configuration change!). This is on two servers, one 10.04 and the other
12.04. The Bitfolk one is still on 8.04 at the moment (although due an imminent upgrade to
12.04). As a side issue, my 10.04 server never brings up the IPv6 addressing on boot and I
always have to stop and restart it, and then services, to get things working properly (not
a major issue as it too is due an imminent upgrade to 12.04).
I thought I'd ask here since my reference was the Bitfolk configuration :)
--
Paul Tansom | Aptanet Ltd. |
http://www.aptanet.com/ | 023 9238 0001
======================================================================
Registered in England | Company No: 4905028 | Registered Office:
Crawford House, Hambledon Road, Denmead, Waterlooville, Hants, PO7 6NU