0x3 HCNP-R&S OSPF单区域作业(华为eNSP)

要求:


1,给所有设备配置正确地址
2,全网启用单区域ospf路由协议,使全网互通
3, 每个路由器使用loopback接口地址作为自己的router id
4,在192.168.1.0网段使AR6成为DR,AR7成为BDR,并通过命令能查看到

拓扑结构:

0x3 HCNP-R&S OSPF单区域作业(华为eNSP)_第1张图片

路由器配置

1、各路由器端口、回环口进行IP分配

AR6

system-view 
[Huawei]sysname AR6
[AR6]interface LoopBack 0
[AR6-LoopBack0]ip address 5.5.5.5 32
[AR6-LoopBack0]quit
[AR6]interface GigabitEthernet0/0/0	
[AR6-GigabitEthernet0/0/0]ip address 192.168.1.1 24
[AR6-GigabitEthernet0/0/0]quit
[AR6]router id 5.5.5.5
[AR6]ospf                 	
[AR6-ospf-1-area-0.0.0.0]network 192.168.1.0 0.0.0.255
[AR6-ospf-1-area-0.0.0.0]network 5.5.5.5 0.0.0.0

AR7

system-view 
[Huawei]sysname AR7
[AR7]interface LoopBack 0
[AR7-LoopBack0]ip address 4.4.4.4 32
[AR7-LoopBack0]quit
[AR7]interface GigabitEthernet0/0/0	
[AR7-GigabitEthernet0/0/0]ip address 192.168.1.2 24
[AR7-GigabitEthernet0/0/0]quit
[AR7]router id 4.4.4.4
[AR7]ospf
[AR7-ospf-1]area 0                 	
[AR7-ospf-1-area-0.0.0.0]network 192.168.1.0 0.0.0.255
[AR7-ospf-1-area-0.0.0.0]network 4.4.4.4 0.0.0.0

AR8

system-view 
[Huawei]sysname AR8
[AR8]interface LoopBack 0
[AR8-LoopBack0]ip address 3.3.3.3 32
[AR8-LoopBack0]qu
[AR8]interface g0/0/0	
[AR8-GigabitEthernet0/0/0]ip address 192.168.1.3 24 
[AR8-GigabitEthernet0/0/0]qu
[AR8]router id 3.3.3.3
[AR8]ospf
[AR8-ospf-1]area 0
[AR8-ospf-1-area-0.0.0.0]network 192.168.1.0 0.0.0.255
[AR8-ospf-1-area-0.0.0.0]network 3.3.3.3 0.0.0.0

AR9

system-view 
[Huawei]sysname AR9
[AR9]interface LoopBack 0
[AR9-LoopBack0]ip address 2.2.2.2 32
[AR9-LoopBack0]qu
[AR9]interface g0/0/0
[AR9-GigabitEthernet0/0/0]ip address 192.168.1.4 24
[AR9-GigabitEthernet0/0/0]qu
[AR9]router id 2.2.2.2
[AR9]ospf
[AR9-ospf-1]area 0
[AR9-ospf-1-area-0.0.0.0]net	
[AR9-ospf-1-area-0.0.0.0]network 192.168.1.0 0.0.0.255
[AR9-ospf-1-area-0.0.0.0]network 2.2.2.2 0.0.0.0

2、OSPF DR/BDR选举手工控制

注意点:需要各个路由器在接口处配置

AR6

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

AR7

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

AR8

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

AR9

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

3、验证 各个路由输入

display ospf peer//查看OSPF邻居

0x3 HCNP-R&S OSPF单区域作业(华为eNSP)_第2张图片

 

0x3 HCNP-R&S OSPF单区域作业(华为eNSP)_第3张图片

 

0x3 HCNP-R&S OSPF单区域作业(华为eNSP)_第4张图片

 

0x3 HCNP-R&S OSPF单区域作业(华为eNSP)_第5张图片

做完实验之后记得各个路由器save

save
  The current configuration will be written to the device. 
  Are you sure to continue? (y/n)[n]:y//这里选择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

关于OSPF的学习笔记

如有错误、建议欢迎指正!

你可能感兴趣的:(HCNP-R&S学习之路,HCNP-R,S学习之路)