日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

路由重分布列表控制例子

發布時間:2025/3/8 编程问答 25 豆豆
生活随笔 收集整理的這篇文章主要介紹了 路由重分布列表控制例子 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
OSPFRIP路由重分布配置,使用重分布列表,對分布的路由進行控制的配置 如上例圖所示:“RIP與OSPF路由重分布例子” switchA(config)#router rip switchA(config-router)#network 192.168.10.0 switchA(config-router)#network 192.168.20.0 switchA(config-router)#network 192.168.1.0 switchA(config-router)#version 2 switchA(config-router)#no auto-summary switchA(config-router)#exit switchA(config)#end router(config)#router rip router(config-router)#network 192.168.1.0 router(config-router)#network 192.168.2.0 router(config-router)#redistribute ospf metric 3//設置路由重分布,rip重分布到ospf router(config-router)#version 2 router(config-router)#no auto-summary router(config-router)#exit router(config)#router ospf router(config-router)#network 192.168.1.0 <?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" />0.0.0.255 area 0 router(config-router)#network 192.168.2.0 0.0.0.255 area 0 router(config-router)#redistriblute rip subnets//設置路由重分布,ospf重分布到rip router(config-router)#exit router(config)#end 在沒有設置重分布列表之前三臺設備的路由如下: Router: Router#show ip route <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

?

Codes:? C - connected, S - static,? R - RIP B - BGP ??????? O - OSPF, IA - OSPF inter area ??????? N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 ??????? E1 - OSPF external type 1, E2 - OSPF external type 2 ??????? i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area

?

??????? * - candidate default

?

Gateway of last resort is no set C??? 192.168.1.0/24 is directly connected, FastEthernet 0/0 C??? 192.168.1.2/32 is local host. C??? 192.168.2.0/24 is directly connected, FastEthernet 0/1 C??? 192.168.2.2/32 is local host. R??? 192.168.10.0/24 [120/1] via 192.168.1.1, 00:00:15, FastEthernet 0/0 R??? 192.168.20.0/24 [120/1] via 192.168.1.1, 00:00:15, FastEthernet 0/0 O??? 192.168.30.0/24 [110/2] via 192.168.2.1, 1d,22:44:08, FastEthernet 0/1 O??? 192.168.40.0/24 [110/2] via 192.168.2.1, 1d,22:44:08, FastEthernet 0/1

?

switchA: switchA#show ip route

?

Codes:? C - connected, S - static,? R - RIP B - BGP ??????? O - OSPF, IA - OSPF inter area ??????? N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 ??????? E1 - OSPF external type 1, E2 - OSPF external type 2 ??????? i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area

?

??????? * - candidate default

?

Gateway of last resort is no set C??? 192.168.1.0/24 is directly connected, FastEthernet 0/1 C??? 192.168.1.1/32 is local host. C??? 192.168.10.0/24 is directly connected, VLAN 10 C??? 192.168.10.1/32 is local host. C??? 192.168.20.0/24 is directly connected, VLAN 20 C??? 192.168.20.1/32 is local host. R??? 192.168.30.0/24 [120/1] via 192.168.1.2, 00:00:15, FastEthernet 0/0 R??? 192.168.40.0/24 [120/1] via 192.168.1.2, 00:00:15, FastEthernet 0/0 R??? 192.168.2.0/24 [120/1] via 192.168.1.2, 00:00:15, FastEthernet 0/0

?

switchB: switchB#show ip route

?

Codes:? C - connected, S - static,? R - RIP B - BGP ??????? O - OSPF, IA - OSPF inter area ??????? N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 ??????? E1 - OSPF external type 1, E2 - OSPF external type 2 ??????? i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area

?

??????? * - candidate default

?

Gateway of last resort is no set C??? 192.168.2.0/24 is directly connected, FastEthernet 0/1 C??? 192.168.2.1/32 is local host. O E2 192.168.10.0/24 [110/20] via 192.168.2.2, 1d,22:42:49, FastEthernet 0/1 O E2 192.168.20.0/24 [110/20] via 192.168.2.2, 1d,22:42:49, FastEthernet 0/1 O E2 192.168.1.0/24 [110/20] via 192.168.2.2, 1d,22:42:49, FastEthernet 0/1 C??? 192.168.40.0/24 is directly connected, VLAN 20 C??? 192.168.40.1/32 is local host. 根據上述的路由表的分析我們得知ripOSPF的路由重分布成功。 可以得知,當沒有配置重分布列表時,用戶是無法控制路由重分布路由的條數下面讓我們來配置重分布列表,看一下有什么變化: Router(config)#access-list 10 permit 192.168.10.0 0.0.0.255 Router(config)#router rip Router(config)#distribute-list 10 out ospf //配置重分布任務列表10當中的允許匹配源路由的路由重分布到OSPF當中。 這時再觀察三臺設備的路由表情況: Router: Router#show ip route

?

Codes:? C - connected, S - static,? R - RIP B - BGP ??????? O - OSPF, IA - OSPF inter area ??????? N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 ??????? E1 - OSPF external type 1, E2 - OSPF external type 2 ??????? i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area

?

??????? * - candidate default

?

Gateway of last resort is no set C??? 192.168.1.0/24 is directly connected, FastEthernet 0/0 C??? 192.168.1.2/32 is local host. C??? 192.168.2.0/24 is directly connected, FastEthernet 0/1 C??? 192.168.2.2/32 is local host. R??? 192.168.10.0/24 [120/1] via 192.168.1.1, 00:00:15, FastEthernet 0/0 R??? 192.168.20.0/24 [120/1] via 192.168.1.1, 00:00:15, FastEthernet 0/0 O??? 192.168.30.0/24 [110/2] via 192.168.2.1, 1d,22:44:08, FastEthernet 0/1 O??? 192.168.40.0/24 [110/2] via 192.168.2.1, 1d,22:44:08, FastEthernet 0/1

?

switchA: switchA#show ip route

?

Codes:? C - connected, S - static,? R - RIP B - BGP ??????? O - OSPF, IA - OSPF inter area ??????? N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 ??????? E1 - OSPF external type 1, E2 - OSPF external type 2 ??????? i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area

?

??????? * - candidate default

?

Gateway of last resort is no set C??? 192.168.1.0/24 is directly connected, FastEthernet 0/1 C??? 192.168.1.1/32 is local host. C??? 192.168.10.0/24 is directly connected, VLAN 10 C??? 192.168.10.1/32 is local host. C??? 192.168.20.0/24 is directly connected, VLAN 20 C??? 192.168.20.1/32 is local host. R??? 192.168.30.0/24 [120/1] via 192.168.1.2, 00:00:15, FastEthernet 0/0 R??? 192.168.40.0/24 [120/1] via 192.168.1.2, 00:00:15, FastEthernet 0/0 R??? 192.168.2.0/24 [120/1] via 192.168.1.2, 00:00:15, FastEthernet 0/0

?

switchB: switchB#show ip route

?

Codes:? C - connected, S - static,? R - RIP B - BGP ??????? O - OSPF, IA - OSPF inter area ??????? N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 ??????? E1 - OSPF external type 1, E2 - OSPF external type 2 ??????? i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area

?

??????? * - candidate default

?

Gateway of last resort is no set C??? 192.168.2.0/24 is directly connected, FastEthernet 0/1 C??? 192.168.2.1/32 is local host. O E2 192.168.10.0/24 [110/20] via 192.168.2.2, 1d,22:42:49, FastEthernet 0/1 O E2 192.168.1.0/24 [110/20] via 192.168.2.2, 1d,22:42:49, FastEthernet 0/1 C??? 192.168.40.0/24 is directly connected, VLAN 20 C??? 192.168.40.1/32 is local host.從路由表中可以得知,此時switchB路由表只有switchA192.168.10.0這條路由,而沒有switchA的其他路由,這就控制路由的通告控制。

轉載于:https://blog.51cto.com/smqnetwork/156376

創作挑戰賽新人創作獎勵來咯,堅持創作打卡瓜分現金大獎

總結

以上是生活随笔為你收集整理的路由重分布列表控制例子的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。