linux访问路由器之网,linux – 使用radvd发布子网路由

我们建立了一个小型的IPv6测试网络.设置如下所示:

::/0

+----------+

| Firewall | Router to the public net

+----------+

| 2001:...::/106

| +----------+

+-------| SIT GW | sit Tunnel gatway to the some test users

| +----------+

|

+----------+

| Test Sys | Testsystem

+----------+

我们的想法是从防火墙发布默认路由,并从sit网关发布SIT子网的路由. radvd的配置是:

# Firewall

interface eth0

{

AdvSendAdvert on;

route ::/0

{

};

};

# SIT Gatway

interface eth0

{

AdvSendAdvert on;

route 2001:...::/106

{

};

};

我们抓住了副词.使用tcpdump的包和包看起来不错.我们看到来自fw的默认路由,以及来自SIT gatway的子网路由.

但是,如果我们查看测试系统,则两个网关上都有两条默认路由.没有子网路由.路由当然不起作用.在这里我们得到的路线:

2001:.....::/64 dev eth0 proto kernel metric 256 mtu 1500 advmss 1440 hoplimit 4294967295

fe80::/64 dev eth0 proto kernel metric 256 mtu 1500 advmss 1440 hoplimit 4294967295

default via fe80::baac:6fff:fe8e:XXXX dev eth0 proto kernel metric 1024 expires 0sec mtu 1500 advmss 1440 hoplimit 64

default via fe80::e415:aeff:fe12:XXXX dev eth0 proto kernel metric 1024 expires 0sec mtu 1500 advmss 1440 hoplimit 64

任何的想法?

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值