我有以下 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 接口面向内部网络,并让一个 tap 接口让用户通过 VPN 进行连接。在 eth0 接口上,我想通告路由,以便内部网络中的每个人都可以看到 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
奇怪的是,我在某些环境中成功使用了完全相同的设置,但由于某种原因,在某些环境中这种情况突然发生,我是否遗漏了什么?
谢谢你!