日本免费全黄少妇一区二区三区-高清无码一区二区三区四区-欧美中文字幕日韩在线观看-国产福利诱惑在线网站-国产中文字幕一区在线-亚洲欧美精品日韩一区-久久国产精品国产精品国产-国产精久久久久久一区二区三区-欧美亚洲国产精品久久久久

專用Cisco路由器的替代品Zebra( 五 )



清單 14. Failover 之前路由器 A 的路由表
RouterA#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area* - candidate default, U - per-user static route, o - ODRP - periodic downloaded static routeGateway of last resort is not set10.0.0.0/24 is subnetted, 3 subnetsR10.0.2.0 [120/1] via 192.168.2.1, 00:00:11, FastEthernet0/0C10.0.0.0 is directly connected, Loopback0R10.0.1.0 [120/1] via 192.168.0.2, 00:00:18, Serial0/0192.168.0.0/30 is subnetted, 1 subnetsC192.168.0.0 is directly connected, Serial0/0192.168.1.0/30 is subnetted, 1 subnetsR192.168.1.0 [120/1] via 192.168.0.2, 00:00:18, Serial0/0[120/1] via 192.168.2.1, 00:00:11, FastEthernet0/0192.168.2.0/30 is subnetted, 1 subnetsC192.168.2.0 is directly connected, FastEthernet0/0failover 之后:
清單 15. Failover 之后路由器 A 的路由表
RouterA#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area* - candidate default, U - per-user static route, o - ODRP - periodic downloaded static routeGateway of last resort is not set10.0.0.0/24 is subnetted, 3 subnetsR10.0.2.0 [120/2] via 192.168.0.2, 00:00:09, Serial0/0C10.0.0.0 is directly connected, Loopback0R10.0.1.0 [120/1] via 192.168.0.2, 00:00:09, Serial0/0192.168.0.0/30 is subnetted, 1 subnetsC192.168.0.0 is directly connected, Serial0/0192.168.1.0/30 is subnetted, 1 subnetsR192.168.1.0 [120/1] via 192.168.0.2, 00:00:09, Serial0/0192.168.2.0/30 is subnetted, 1 subnetsR192.168.2.0 [120/2] via 192.168.0.2, 00:00:10, Serial0/0使用 Zebra 配置 OSPF 路由
完成 RIP 的配置后,我們開始配置 OSPF 路由 。盡管 OSPF 和 RIP 可以同時(shí)使用,不過為了配置的簡化,我們現(xiàn)在只使用 OSPF 。我們只需要把 ripd 服務(wù)停掉,就可以在 Zebra 中將 RIP 禁用 。
# service ripd stop
和前面一樣,我們從 OSPF 的一個(gè)基本的配置文件開始,這次是 ospfd.conf,文件所在目錄仍是 /etc/zebra 。
QQRead.com 推出數(shù)據(jù)恢復(fù)指南教程 數(shù)據(jù)恢復(fù)指南教程數(shù)據(jù)恢復(fù)故障解析常用數(shù)據(jù)恢復(fù)方案硬盤數(shù)據(jù)恢復(fù)教程數(shù)據(jù)保護(hù)方法數(shù)據(jù)恢復(fù)軟件專業(yè)數(shù)據(jù)恢復(fù)服務(wù)指南清單 16. 一個(gè)基本的 /etc/zebra/ospfd.conf 文件
hostname speedmetal-ospfpassword zebraenable password zebra
然后,我們啟動 OSPF 服務(wù):
# service ospfd start
對 OSPF 的配置比 RIP 簡單:基本上我們僅僅需要告訴 OSPF 去廣播所有它知道的路由 。
配置 OSPF 的端口是 2604 。
下面是我們配置 OSPF 的會話 。

清單 17. OSPF 配置會話
[root@speedmetal zebra]# telnet 127.0.0.1 2604User Access VerificationPassword: zebraspeedmetal-ospf> enablePassword: zebraspeedmetal-ospf# configure terminalspeedmetal-ospf(config)# router ospfspeedmetal-ospf(config-router)# network 0.0.0.0/0 area 0speedmetal-ospf(config-router)# endspeedmetal-ospf# writeConfiguration saved to /etc/zebra/ospfd.confspeedmetal-ospf# show run Current configuration:!hostname speedmetal-ospfpassword zebraenable password zebra!!router ospf network 0.0.0.0/0 area 0!line vty!endspeedmetal-ospf#ospfd.conf 配置文件的修改結(jié)果如下:
清單 18. Zebra 修改后的 /etc/zebra/ospfd.conf 文件
!! Zebra configuration saved from vty!2003/08/19 14:22:17!hostname speedmetal-ospfpassword zebraenable password zebra!!!interface lo!interface eth0!interface eth1!interface dummy0!router ospf network 0.0.0.0/0 area 0!line vty!在 Cisco 路由器上配置 OSPF

推薦閱讀