0x3 HCNP-R&S OSPF single area operation (Huawei eNSP)

Keywords: network

Requirement:


1. Configure the correct address for all devices
2. Enabling single-area ospf routing protocol to make the whole network interoperable
3. Each router uses the loopback interface address as its router id
4. In the 192.168.1.0 segment, AR6 becomes DR, AR7 becomes BDR, and can be seen by command.

Topological structure:

Router configuration

1. IP allocation among router ports and loopback ports

AR6

<Huawei>system-view 

[Huawei]interface LoopBack 0
[Huawei-LoopBack0]ip address 5.5.5.5 32
[Huawei-LoopBack0]quit 

[Huawei]interface GigabitEthernet 0/0/0
[Huawei-GigabitEthernet0/0/0]ip address 192.168.1.1 24


[Huawei]ospf 1 router-id 5.5.5.5
[Huawei-ospf-1]area 0
[Huawei-ospf-1-area-0.0.0.0]network 192.168.1.0 0.0.0.255
[Huawei-ospf-1-area-0.0.0.0]network 5.5.5.5 0.0.0.0

AR7

<Huawei>system-view 

[Huawei]interface LoopBack 0
[Huawei-LoopBack0]ip address 4.4.4.4 32
[Huawei-LoopBack0]quit 

[Huawei]interface GigabitEthernet 0/0/0
[Huawei-GigabitEthernet0/0/0]ip address 192.168.1.2 24


[Huawei]ospf 1 router-id 4.4.4.4
[Huawei-ospf-1]area 0
[Huawei-ospf-1-area-0.0.0.0]network 192.168.1.0 0.0.0.255
[Huawei-ospf-1-area-0.0.0.0]network 4.4.4.4 0.0.0.0

AR8

<Huawei>system-view 

[Huawei]interface LoopBack 0
[Huawei-LoopBack0]ip address 3.3.3.3 32
[Huawei-LoopBack0]quit 

[Huawei]interface GigabitEthernet 0/0/0
[Huawei-GigabitEthernet0/0/0]ip address 192.168.1.3 24


[Huawei]ospf 1 router-id 3.3.3.3
[Huawei-ospf-1]area 0
[Huawei-ospf-1-area-0.0.0.0]network 192.168.1.0 0.0.0.255
[Huawei-ospf-1-area-0.0.0.0]network 3.3.3.3 0.0.0.0

AR9

<Huawei>system-view 

[Huawei]interface LoopBack 0
[Huawei-LoopBack0]ip address 2.2.2.2 32
[Huawei-LoopBack0]quit 

[Huawei]interface GigabitEthernet 0/0/0
[Huawei-GigabitEthernet0/0/0]ip address 192.168.1.4 24


[Huawei]ospf 1 router-id 2.2.2.2
[Huawei-ospf-1]area 0
[Huawei-ospf-1-area-0.0.0.0]network 192.168.1.0 0.0.0.255
[Huawei-ospf-1-area-0.0.0.0]network 2.2.2.2 0.0.0.0

2. OSPF DR/BDR Election Manual Control

Note: Each router needs to be configured at the interface

AR6

[Huawei]interface GigabitEthernet 0/0/0
[Huawei-GigabitEthernet0/0/0]ospf dr-priority 100

AR7

[Huawei]interface GigabitEthernet 0/0/0
[Huawei-GigabitEthernet0/0/0]ospf dr-priority 80

AR8

[Huawei]interface GigabitEthernet 0/0/0
[Huawei-GigabitEthernet0/0/0]ospf dr-priority 50

AR9

[Huawei]interface GigabitEthernet 0/0/0
[Huawei-GigabitEthernet0/0/0]ospf dr-priority 30

3. Verify each routing input

display ospf peer//View OSPF Neighbors

 

 

 

After the experiment, remember the routers save

<Huawei>save
  The current configuration will be written to the device. 
  Are you sure to continue? (y/n)[n]:y//Here select y
  It will take several minutes to save configuration file, please wait.......
  Configuration file had been saved successfully
  Note: The configuration file will take effect after being activated

On OSPF Learning notes

If there are any mistakes or suggestions, please correct them.

Posted by Kwakhed on Mon, 04 Feb 2019 00:45:16 -0800