How to disable subnet if tunnel is down?
Carmen Sandiego on Tuesday, 13 October 2009 15:58:10
Hello,
When I manually disable my company's SixXS tunnel the PC's on our LAN keep trying to connect to remote servers via IPv6, leading to long timeouts before they fall back to IPv4.
How can I tell the PC's that the IPv6 route to the net is currently unavailable, preferably so they can still use IPv6 on the LAN?
My tunnel endpoint is a Debian Lenny server, which runs Radvd for autoconfiguration of the clients. See below for its config.
/etc/radvd.conf:
interface eth0
{
AdvSendAdvert on;
prefix 2001:1af8:fe06::/64 {
AdvOnLink on;
AdvAutonomous on;
AdvRouterAddr on;
};
};
Thanks for your advice.
How to disable subnet if tunnel is down?
Shadow Hawkins on Saturday, 17 October 2009 15:26:35
Does your gateway immediately send an ICMP6 error message if the tunnel is down?
How to disable subnet if tunnel is down?
Shadow Hawkins on Saturday, 31 October 2009 19:03:15
Setting AdvDefaultLifetime to 0 should prevent the radvd machine from becoming the default route. Remember to remove or comment out the line when you want the tunnel back up and to stop/start radvd after changes to the config file.
If you just have one physical subnet and one prefix, this should be enough. If you need to route between physical subnets on your network then add specific routes as needed. I added what I presume is your SIXXS subnet below.
interface eth0
{
AdvSendAdvert on;
# Sets default route adv to 0 effectively disabling default route
AdvDefaultLifetime 0;
prefix 2001:1af8:fe06::/64 {
AdvOnLink on;
AdvAutonomous on;
AdvRouterAddr on;
};
# If you have other subnets/prefixes in use and this is the router for them:
route 2001:1af8:fe06::/48
{
};
};
Posting is only allowed when you are logged in. |