我有以下radvd.conf文件:
interface eth0 { AdvSendAdvert on; MinRtrAdvInterval 30; MaxRtrAdvInterval 100; route 2000:e000:0:2::/64 { AdvRoutePreference low; }; }; interface tap_tap { AdvSendAdvert on; MinRtrAdvInterval 30; MaxRtrAdvInterval 100; prefix 2000:e000:0:2::/64 { AdvOnLink on; AdvAutonomous on; AdvRouterAddr on; }; route 2000:e000:0:1::/64 { AdvRouteLifetime infinity; AdvRoutePreference high; }; };
这个想法是有一个eth0接口面向内部networking和一个龙头接口,将有人从VPN连接。 在eth0接口上,我想通告路由,这样内部networking的每个人都可以看到VPN客户端,问题是eth0通告被其他接口(如eth1)拾取,并且弄乱了整个路由:
# radvd configuration generated by radvdump 1.9.2 # based on Router Advertisement from fe80::b076:c0ff:fe83:d38a # received by interface eth1 # interface eth1 { AdvSendAdvert on; # Note: {Min,Max}RtrAdvInterval cannot be obtained with radvdump AdvManagedFlag off; AdvOtherConfigFlag off; AdvReachableTime 0; AdvRetransTimer 0; AdvCurHopLimit 64; AdvDefaultLifetime 300; AdvHomeAgentFlag off; AdvDefaultPreference medium; AdvSourceLLAddress on; route 2000:e000:0:2::/64 { AdvRoutePreference low; AdvRouteLifetime 300; }; # End of route definition }; # End of interface definition # # radvd configuration generated by radvdump 1.9.2 # based on Router Advertisement from fe80::b076:c0ff:fe83:d38a # received by interface eth0 # interface eth0 { AdvSendAdvert on; # Note: {Min,Max}RtrAdvInterval cannot be obtained with radvdump AdvManagedFlag off; AdvOtherConfigFlag off; AdvReachableTime 0; AdvRetransTimer 0; AdvCurHopLimit 64; AdvDefaultLifetime 300; AdvHomeAgentFlag off; AdvDefaultPreference medium; AdvSourceLLAddress on; route 2000:e000:0:2::/64 { AdvRoutePreference low; AdvRouteLifetime 300; }; # End of route definition }; # End of interface definition
奇怪的是,我已经成功地在一些环境中使用了完全相同的设置,出于某种原因,在某些环境中,这种情况发生在哪里,有什么我失踪?
谢谢!