ospf comprehensive experiment report

 1. Configure the IP address according to the plan in the figure

AR1 configuration

<Huawei>sys
[Huawei]sysname r1
[r1]int g0/0/0
[r1-GigabitEthernet0/0/0]ip add 10.1.12.1 24
[r1-GigabitEthernet0/0/0]q
[r1]int LoopBack 0
[r1-LoopBack0]ip add 1.1.1.1 32
[r1-LoopBack0]q
[r1]ospf router-id 1.1.1.1
[r1-ospf-1]area 0
[r1-ospf-1-area-0.0.0.0]network 10.1.12.0 0.0.0.255
[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]q

AR2 configuration

<Huawei>sys
[Huawei]int g0/0/0
[Huawei-GigabitEthernet0/0/0]ip add 10.1.12.2 24
[Huawei-GigabitEthernet0/0/0]q
[Huawei]sysname r2
[r2]int LoopBack 0
[r2-LoopBack0]ip add 2.2.2.2 32
[r2]ospf router-id 2.2.2.2
[r2-ospf-1]area 0
[r2-ospf-1-area-0.0.0.0]network 10.1.12.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]q
[r2-ospf-1]area 1
[r2-ospf-1-area-0.0.0.1]network 23.1.1.0 0.0.0.255 

AR3 configuration

<Huawei>sys
[Huawei]sysname r3
[r3]int LoopBack 0
[r3-LoopBack0]ip add 3.3.3.3 32
[r3-LoopBack0]q
[r3]ospf router-id 3.3.3.3
[r3-ospf-1-area-0.0.0.1]ne	
[r3-ospf-1-area-0.0.0.1]network 23.1.1.0 0.0.0.255
[r3-ospf-1-area-0.0.0.1]network 3.3.3.3 0.0.0.0
[r3-ospf-1-area-0.0.0.1]q
[r3-ospf-1]q
[r3-ospf-1]area 2
[r3-ospf-1-area-0.0.0.2]ne	
[r3-ospf-1-area-0.0.0.2]network 192.168.1.1 0.0.0.255
[r3-ospf-1-area-0.0.0.2]q
[r3-ospf-1]

2. Plan the area according to the requirements in the figure. 192.168.1.1/24 is declared to be in area 2. Can AR1 and AR2 learn 192.168.1.1/243?

 To summarize, all backbone areas should be connected to non-backbone areas. Otherwise, if non-backbone and non-backbone are connected, neighbor relationships cannot be established.

3. After changing the interface network type, can a neighbor relationship be established between routers?


[r1-GigabitEthernet0/0/0]ospf network-type p2p

Change the r1 interface type to p2p to establish neighbor relationships

Change the r1 interface type to p2mp to establish neighbor relationships

[r1-GigabitEthernet0/0/0]ospf network-type p2mp


 

4. Will modifying the osPF time parameters on the interface affect the establishment of neighbor relationships?

[r1-GigabitEthernet0/0/0]ospf time hello 20

Summary: Modifying the time parameters of ospf under the interface has an impact on the establishment of neighbor relationships.

Guess you like

Origin blog.csdn.net/qq_61759561/article/details/132859181