23 多区域OSPF
R1 基本配置 [H3C]sysname r1 [r1]interface loopback 0 [r1-LoopBack0]ip address 1.1.1.1 32 [r1-LoopBack0]interface gigabitethernet 0/0 [r1-GigabitEthernet0/0]ip address 10.10.12.1 24 [r1-GigabitEthernet0/0]quit 配置OSPF [r1]router id 1.1.1.1 //配置全局router id [r1]ospf 1 //创建OSPF进程 [r1-ospf-1]description zurkj //配置OSPF进程描述 [r1-ospf-1]area 0 //创建OSPF区域 [r1-ospf-1-area-0.0.0.0]description zurkj //配置OSPF区域描述 [r1-ospf-1-area-0.0.0.0]authentication-mode md5 1 plainAa123456 //配置OSPF身份认证 [r1-ospf-1-area-0.0.0.0]network 1.1.1.1 0.0.0.0 //宣告参与网段 [r1-ospf-1-area-0.0.0.0]network 10.10.12.0 0.0.0.255 [r1-ospf-1-area-0.0.0.0]quit [r1-ospf-1]quit R2 <H3C>system-view [H3C]sysname r2 [r2]interface loopback 0 [r2-LoopBack0]ip address 2.2.2.2 32 [r2-LoopBack0]interface gigabitethernet 0/0 [r2-GigabitEthernet0/0]ip address 10.10.12.2 24 [r2-GigabitEthernet0/0]interface gigabitethernet 0/1 [r2-GigabitEthernet0/1]ip address 10.10.23.2 24 [r2-GigabitEthernet0/1]quit [r2]router id 2.2.2.2 [r2]ospf 1 [r2-ospf-1]description zurkj [r2-ospf-1]area 0 [r2-ospf-1-area-0.0.0.0]description zurkj1 [r2-ospf-1-area-0.0.0.0]network 2.2.2.2 0.0.0.0 [r2-ospf-1-area-0.0.0.0]network 10.10.12.0 0.0.0.255 [r2-ospf-1-area-0.0.0.0]authentication-mode md5 1plain Aa123456 [r2-ospf-1-area-0.0.0.0]quit [r2-ospf-1]area 1 [r2-ospf-1-area-0.0.0.1]description zurkj1 [r2-ospf-1-area-0.0.0.1]authentication-mode md5 1plain Aa123456 [r2-ospf-1-area-0.0.0.1]network 10.10.23.0 0.0.0.255 [r2-ospf-1-area-0.0.0.1]quit [r2-ospf-1]quit R3 <H3C>system-view [H3C]sysname r3 [r3]interface loopback 0 [r3-LoopBack0]ip address 3.3.3.3 32 [r3-LoopBack0]interface gigabitethernet 0/1 [r3-GigabitEthernet0/1]ip address 10.10.23.3 24 [r3-GigabitEthernet0/1]quit [r3]router id 3.3.3.3 [r3]ospf 1 [r3-ospf-1]description zurkj [r3-ospf-1]area 1 [r3-ospf-1-area-1.1.1.1]description zurkj [r3-ospf-1-area-1.1.1.1]authentication-mode md5 1plain Aa123456 [r3-ospf-1-area-1.1.1.1]network 3.3.3.3 0.0.0.0 [r3-ospf-1-area-1.1.1.1]network 10.10.23.0 0.0.0.255 [r3-ospf-1-area-1.1.1.1]quit [r3-ospf-1]quit [r3]display ospf peer OSPFProcess 1 with Router ID 3.3.3.3 Neighbor Brief Information Area: 0.0.0.1 Router ID Address Pri Dead-Time State Interface 2.2.2.2 10.10.23.2 1 40 Full/DR GE0/1 [r3]display ip routing-table protocol ospf Summary count : 5 OSPF Routing table status : <Active> Summary count : 3 Destination/Mask Proto Pre Cost NextHop Interface 1.1.1.1/32 O_INTER 10 2 10.10.23.2 GE0/1 2.2.2.2/32 O_INTER 10 1 10.10.23.2 GE0/1 10.10.12.0/24 O_INTER 10 2 10.10.23.2 GE0/1 OSPF Routing table status : <Inactive> Summary count : 2 Destination/Mask Proto Pre Cost NextHop Interface 3.3.3.3/32 O_INTRA 10 0 0.0.0.0 Loop0 10.10.23.0/24 O_INTRA 10 1 0.0.0.0 GE0/1
|