1、多区域OSPF配置序号设备接口IP地址区域1Router0Serial1/0218.193.11.10Serial1/1218.193.12.102Router1Serial1/0218.193.11.20Serial1/1218.193.13.10Serial1/2218.193.14.113Router2Serial1/0218.193.12.20Serial1/1218.193.13.20Serial1/2218.193.19.124Router3Serial1/0218.193.14.21Serial1/1218.193.15.11Serial1/2218.193.16.115Rout
2、er4Serial1/0218.193.15.21Serial1/1218.193.17.116Router5Serial1/0218.193.16.21Serial1/1218.193.18.117Router6Serial1/0218.193.17.21Serial1/1218.193.18.218Router7Serial1/0218.193.19.22Serial1/1218.193.20.12Serial1/2218.193.21.129Router8Serial1/0218.193.20.22Serial1/1218.193.22.1210Router9Serial1/0218.1
3、93.21.22Serial1/1218.193.23.1211Router10Serial1/0218.193.22.22Serial1/1218.193.23.22R0Router(config)#interface Serial1/0Router(config-if)#no shutdownRouter(config-if)#clock rate 128000Router(config-if)#ip address 218.193.11.1 255.255.255.0Router(config-if)#Router(config-if)#exitRouter(config)#interf
4、ace Serial1/1Router(config-if)#no shutdownRouter(config-if)#clock rate 128000Router(config-if)#ip address 218.193.12.1 255.255.255.0Router(config-if)#Router(config)#interface loopback 0%LINK-5-CHANGED: Interface Loopback0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback0,
5、 changed state to upRouter(config-if)#ip address 1.1.1.1 255.255.255.0Router(config-if)#router ospf 1Router(config-router)#router-id 1.1.1.1Router(config-router)#network 218.193.11.0 255.255.255.0 area 0Router(config-router)#network 218.193.12.0 255.255.255.0 area 0R1Router(config)#interface Serial1
6、/0Router(config-if)#%LINK-5-CHANGED: Interface Serial1/0, changed state to upno shutdownRouter(config-if)#clock rate 128000Router(config-if)#%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to upip address 218.193.11.2 255.255.255.0Router(config-if)#Router(config-if)#exitRout
7、er(config)#interface Serial1/1Router(config-if)#no shutdownRouter(config-if)#clock rate 128000Router(config-if)#ip address 218.193.13.1 255.255.255.0Router(config-if)#Router(config-if)#exitRouter(config)#interface Serial1/2Router(config-if)#no shutdownRouter(config-if)#clock rate 128000Router(config
8、-if)#ip address 218.193.14.1 255.255.255.0Router(config-if)#Router(config)#interface loopback 0%LINK-5-CHANGED: Interface Loopback0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback0, changed state to upRouter(config-if)#ip address 2.2.2.2 255.255.255.0 Router(config-if)#r
9、outer ospf 1Router(config-router)#router-id 2.2.2.2Router(config-router)#network 218.193.11.0 255.255.255.0 area 0Router(config-router)#network 218.193.13.0 255.255.255.0 area 0Router(config-router)#network 218.193.14.0 255.255.255.0 area 1R2Router(config)#interface Serial1/0Router(config-if)#%LINK-
10、5-CHANGED: Interface Serial1/0, changed state to upno shutdownRouter(config-if)#clock rate 128000Router(config-if)#%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to upip address 218.193.12.2 255.255.255.0Router(config-if)#Router(config-if)#exitRouter(config)#interface Seria
11、l1/1Router(config-if)#%LINK-5-CHANGED: Interface Serial1/1, changed state to upno shutdownRouter(config-if)#clock rate 128000Router(config-if)#%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/1, changed state to upip address 218.193.13.2 255.255.255.0Router(config-if)#Router(config-if)#exitRo
12、uter(config)#interface Serial1/2Router(config-if)#no shutdownRouter(config-if)#clock rate 128000Router(config-if)#ip address 218.193.19.1 255.255.255.0Router(config-if)#Router(config)#interface loopback 0%LINK-5-CHANGED: Interface Loopback0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on I
13、nterface Loopback0, changed state to upRouter(config-if)#ip address 3.3.3.3 255.255.255.0 Router(config-if)#router ospf 1Router(config-router)#router-id 3.3.3.3Router(config-router)#network 218.193.12.0 255.255.255.0 area 0Router(config-router)#network 218.193.13.0 255.255.255.0 area 0Router(config-
14、router)#network 218.193.19.0 255.255.255.0 area 2R3Router(config)#interface Serial1/0Router(config-if)#%LINK-5-CHANGED: Interface Serial1/0, changed state to upno shutdownRouter(config-if)#clock rate 128000Router(config-if)#%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to
15、upip address 218.193.14.2 255.255.255.0Router(config-if)#Router(config-if)#exitRouter(config)#interface Serial1/1Router(config-if)#no shutdownRouter(config-if)#clock rate 128000Router(config-if)#ip address 218.193.15.1 255.255.255.0Router(config-if)#Router(config-if)#exitRouter(config)#interface Ser
16、ial1/2Router(config-if)#no shutdownRouter(config-if)#clock rate 128000Router(config-if)#ip address 218.193.16.1 255.255.255.0Router(config-if)#Router(config)#interface loopback 0%LINK-5-CHANGED: Interface Loopback0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback0, change
17、d state to upRouter(config-if)#ip address 4.4.4.4 255.255.255.0Router(config-if)#router ospf 1Router(config-router)#router-id 4.4.4.4Router(config-router)#network 218.193.14.0 255.255.255.0 area 1Router(config-router)#network 218.193.15.0 255.255.255.0 area 1Router(config-router)#network 218.193.16.
18、0 255.255.255.0 area 1R4Router(config)#interface Serial1/0Router(config-if)#%LINK-5-CHANGED: Interface Serial1/0, changed state to upno shutdownRouter(config-if)#clock rate 128000Router(config-if)#%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to upip address 218.193.15.2 2
19、55.255.255.0Router(config-if)#Router(config-if)#exitRouter(config)#interface Serial1/1Router(config-if)#no shutdownRouter(config-if)#clock rate 128000Router(config-if)#ip address 218.193.17.1 255.255.255.0Router(config-if)#Router(config)#interface loopback 0%LINK-5-CHANGED: Interface Loopback0, chan
20、ged state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback0, changed state to upRouter(config-if)#ip address 5.5.5.5 255.255.255.0Router(config-if)#router ospf 1Router(config-router)#router-id 5.5.5.5Router(config-router)#network 218.193.15.0 255.255.255.0 area 1Router(config-router)#ne
21、twork 218.193.17.0 255.255.255.0 area 1R5Router(config)#interface Serial1/0Router(config-if)#%LINK-5-CHANGED: Interface Serial1/0, changed state to upno shutdownRouter(config-if)#clock rate 128000Router(config-if)#%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to upip addre
22、ss 218.193.16.2 255.255.255.0Router(config-if)#Router(config-if)#exitRouter(config)#interface Serial1/1Router(config-if)#no shutdownRouter(config-if)#clock rate 128000Router(config-if)#ip address 218.193.18.1 255.255.255.0Router(config-if)#Router(config)#interface loopback 0%LINK-5-CHANGED: Interfac
23、e Loopback0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback0, changed state to upRouter(config-if)#ip address 6.6.6.6 255.255.255.0Router(config-if)#router ospf 1Router(config-router)#router-id 6.6.6.6Router(config-router)#network 218.193.16.0 255.255.255.0 area 1Router(
24、config-router)#network 218.193.18.0 255.255.255.0 area 1R6Router(config)#interface FastEthernet0/0Router(config-if)#no shutdown%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to upRouter(config-if)#ip addre
25、ss 218.193.24.2 255.255.255.0Router(config-if)#Router(config-if)#exitRouter(config)#interface Serial1/0Router(config-if)#%LINK-5-CHANGED: Interface Serial1/0, changed state to upno shutdownRouter(config-if)#clock rate 128000Router(config-if)#%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0,
26、 changed state to upip address 218.193.17.2 255.255.255.0Router(config-if)#Router(config-if)#exitRouter(config)#interface Serial1/1Router(config-if)#%LINK-5-CHANGED: Interface Serial1/1, changed state to upno shutdownRouter(config-if)#clock rate 128000Router(config-if)#%LINEPROTO-5-UPDOWN: Line prot
27、ocol on Interface Serial1/1, changed state to upip address 218.193.18.2 255.255.255.0Router(config-if)#Router(config)#interface loopback 0%LINK-5-CHANGED: Interface Loopback0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback0, changed state to upRouter(config-if)#ip addres
28、s 7.7.7.7 255.255.255.0Router(config-if)#router ospf 1Router(config-router)#router-id 7.7.7.7Router(config-router)#network 218.193.17.0 255.255.255.0 area 1Router(config-router)#network 218.193.18.0 255.255.255.0 area 1Router(config-router)#network 218.193.24.0 255.255.255.0 area 1Router(config-rout
29、er)#R7Router(config)#interface Serial1/0Router(config-if)#%LINK-5-CHANGED: Interface Serial1/0, changed state to upno shutdownRouter(config-if)#clock rate 128000Router(config-if)#%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to upip address 218.193.19.2 255.255.255.0Router
30、(config-if)#Router(config-if)#exitRouter(config)#interface Serial1/1Router(config-if)#no shutdownRouter(config-if)#clock rate 128000Router(config-if)#ip address 218.193.20.1 255.255.255.0Router(config-if)#Router(config-if)#exitRouter(config)#interface Serial1/1Router(config-if)#Router(config-if)#exitRouter(config)#interface Serial1/2Router(config-if)#no shutdownRouter(config-if)#clock rate 128000Router(config-if)#ip address 218.193.21.1 255.255.255.0Router(config-if)#Router(config)#interface loopback 0%LINK-5-CHANGED: Interface Loopback0, changed state to up%LINEPROTO-5-UPDOWN: Line prot
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1