H3C OSPF multi-area mutual access experiment

OSPF experiment

experimental topology

insert image description here

Experimental requirements

  1. Configure the IP address as shown
  2. Configure OSPF by area as shown in the figure to realize the intercommunication of the whole network
  3. In order to stabilize the routing structure, the router is required to use the loopback interface as the Router-id, and the loopback interface of the ABR is declared into the backbone area

experimental solution

1. Configure the IP address part
insert image description here
insert image description here
insert image description here
insert image description here

insert image description here
2. Configure OSPF by area according to the figure to realize intercommunication of the whole network

分析:实现全网互通,意味着每台路由器都要宣告本地的所有直连网段,包括环回口所在的网段。要求 ABR 的环回口宣告进骨干区域,即区域 0,
  同时,每台路由器手动配置各自环回口的 IP 地址作为 Router-id

Step 1: Configure OSPF on the router respectively, and declare all directly connected network segments and loopback ports by area

[R4]ospf router-id 4.4.4.4 //指定标识符
[R4-ospf-1]a 1 //进入区域1
[R4-ospf-1-area-0.0.0.1]network 4.4.4.4 0.0.0.0 //宣告此网段
[R4-ospf-1-area-0.0.0.1]network 100.3.3.0 0.0.0.255 //宣告此网段

[R1]ospf router-id 1.1.1.1 //指定标识符
[R1-ospf-1]a 1 //进入区域1
[R1-ospf-1-area-0.0.0.1]network 100.3.3.0 0.0.0.255   //宣告此网段
[R1-ospf-1-area-0.0.0.1]quit  //宣告此网段
[R1-ospf-1]a 0 //进入区域0
[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 100.1.1.0 0.0.0.255  //宣告此网段

[R2]ospf router-id 2.2.2.2  //指定标识符
[R2-ospf-1]a 0 //进入区域0
[R2-ospf-1-area-0.0.0.0]network 100.1.1.0 0.0.0.255 //宣告此网段
[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 100.2.2.0 0.0.0.255//宣告此网段

[R3]ospf router-id 3.3.3.3 //指定标识符
[R3-ospf-1]a 0 //进入区域0
[R3-ospf-1-area-0.0.0.0]network 3.3.3.3 0.0.0.0 //宣告此网段
[R3-ospf-1-area-0.0.0.0]network 100.2.2.0 0.0.0.255 //宣告此网段
[R3-ospf-1]a 2 //进入区域2
[R3-ospf-1-area-0.0.0.2]network 100.4.4.0 0.0.0.255 //宣告此网段
[R5]ospf router-id 5.5.5.5 //指定标识符
[R5-ospf-1]a 2 //进入区域2
[R5-ospf-1-area-0.0.0.2]network 5.5.5.5 0.0.0.0 //宣告此网段
[R5-ospf-1-area-0.0.0.2]network 100.4.4.0 0.0.0.255 //宣告此网段

3. Check whether the entire network is interoperable
Analysis: Check whether OSPF is interoperable across the entire network. One is to check the neighbor relationship table to see if the neighbor relationship is normal; the other is to check the routing table to see if the entire network route is learned. Only the inspection results of R1 are shown
  here
  
Step 1: Check the neighbor relation table of R1
insert image description here
Explanation: It can be seen that R1 has established adjacency relations with R2 and R4 respectively, the state is FULL, and the neighbor relations are normal

Step 2: Check the routing table of R1
insert image description here
Note: It can be seen that R1 has learned the routing information of all network segments in the entire network

Experimental results

ping -a 4.4.4.4 5.5.5.5
Ping 5.5.5.5 (5.5.5.5) from 4.4.4.4: 56 data bytes, press CTRL+C to break
56 bytes from 5.5.5.5: icmp_seq=0 ttl=252 time=2.000 ms
56 bytes from 5.5.5.5: icmp_seq=1 ttl=252 time=2.000 ms
56 bytes from 5.5.5.5: icmp_seq=2 ttl=252 time=2.000 ms
56 bytes from 5.5.5.5: icmp_seq=3 ttl=252 time=2.000 ms
56 bytes from 5.5.5.5: icmp_seq=4 ttl=252 time=2.000 ms

Guess you like

Origin blog.csdn.net/qq_51235445/article/details/129270682