为什么OSPF路由表当中收到loopback接口的路由掩码是32位呢?
本帖最后由 小乔 于 2011-10-27 09:33 编辑问题1.
R2#show ip route
Gateway of last resort is not set
172.16.0.0/16 is variably subnetted, 6 subnets, 2 masks
O 172.16.1.1/32 via 172.16.12.1, 00:03:39, Serial0/0/0(为什么呢?)
C 172.16.2.0/24 is directly connected, Loopback0
O 172.16.3.3/32 via 172.16.23.3, 00:00:50, Serial0/0/1 (?)
C 172.16.12.0/24 is directly connected, Serial0/0/0
C 172.16.23.0/24 is directly connected, Serial0/0/1
O 172.16.34.0/24 via 172.16.23.3, 00:00:40, Serial0/0/1
问题2.
Routing Protocol is "ospf 110"
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Router ID 172.16.2.2
Number of areas in this router is 1. 1 normal 0 stub 0 nssa
Maximum path: 4
Routing for Networks:
172.16.2.0 0.0.0.255 area 0
172.16.12.0 0.0.0.255 area 0
172.16.23.0 0.0.0.255 area 0
Routing Information Sources: (路由信息源这部分是什么意思)
Gateway Distance Last Update
172.16.1.1 110 00:00:15
172.16.2.2 110 00:00:06
Distance: (default is 110)
问题3.
R4#show ip route
Gateway of last resort is not set
172.16.0.0/16 is variably subnetted, 6 subnets, 2 masks
O 172.16.1.1/32 via 172.16.34.3, 01:03:03, Serial0/0/0
O 172.16.2.2/32 via 172.16.34.3, 01:03:03, Serial0/0/0
O 172.16.3.3/32 via 172.16.34.3, 01:03:03, Serial0/0/0
O 172.16.12.0/24 via 172.16.34.3, 01:03:03, Serial0/0/0
O 172.16.23.0/24 via 172.16.34.3, 01:03:03, Serial0/0/0
C 172.16.34.0/24 is directly connected, Serial0/0/0
路由条目中172.16.1.1/32 via 172.16.34.3, 01:03:03, Serial0/0/0到达172.16.1.1的度量值为什么是193呢?
cost=1+10^8/128000+10^8/128000+10^8/128000=2344啊
http://bbs.hh010.com/xwb/images/bgimg/icon_logo.png 该贴已经同步到 powerfulxm的微博
{:6_273:}也等~~~ 你如果通告的是主机地址 就是32位 在OSPF路由协议下都默认都把lookback当主机地址的(32位的)可能是因为不连其他接口的原因为了节省IP资源吧,你可以通过改变端口到point to point 模式后就变位你设置的掩码位了。 串口的开销是64吧 OSPF把loopback当一个host,这样可以避免不存在的路由被转发,浪费资源。
LINK-ID和ADV router要搞清楚不同LSA是不同的
cost=1+64+64+64=193可以参考第一问的cost sotwoyouare 发表于 2012-4-7 10:34 static/image/common/back.gif
OSPF把loopback当一个host,这样可以避免不存在的路由被转发,浪费资源。
LINK-ID和ADV router要搞清楚不同 ...
谢谢啦!!! ddddddddddddddddddd SOMING 发表于 2011-10-26 21:50 static/image/common/back.gif
在OSPF路由协议下都默认都把lookback当主机地址的(32位的)可能是因为不连其他接口的原因为了节省IP资源吧 ...
正解!哈哈 1环回口配ip时子网掩码配的是多少 你不要纠结这个东西,这是OSPF的一个优化特性。当然OSPF是也是可以还原环回的掩码信息的 {:6_269:}
页:
[1]