0
点赞
收藏
分享

微信扫一扫

华为ensp配置

向上的萝卜白菜 2024-02-03 阅读 36

多区域的OSPF实战配置

需求

  1. 如图配置设备的接口IP地址
  2. 如图规划OSPF网络的区域
  3. 要求每个设备的
  4. 确保不同的PC之间可以互通

拓扑图

华为ensp配置_OSPF


配置命令

PC1:

192.168.1.1

255.255.255.0

192.168.1.254


PC2:

192.168.2.1

255.255.255.0

192.168.2.254


R1:

undo terminal monitor

system-view

sysname R1

interface gi0/0/2

ip address 192.168.1.254 24

quit

interface gi0/0/0

ip address 192.168.12.1 24

ospf authentication-mode simple plain hcip

quit

ospf 1 router-id 1.1.1.1

area 12

network 192.168.12.0 0.0.0.255

network 192.168.1.0 0.0.0.255

quit

quit


R2:

undo terminal monitor

system-view

sysname R2

interface gi0/0/1

ip address 192.168.12.2 24

ospf authentication-mode simple plain hcip

quit

interface gi0/0/0

ip address 192.168.23.2 24

quit

ospf 1 router-id 2.2.2.2

area 0

network 192.168.23.0 0.0.0.255

authentication-mode simple plain hcie

quit

area 12

network 192.168.12.0 0.0.0.255

quit

quit



R3:

undo terminal monitor

system-view

sysname R3

interface gi0/0/1

ip address 192.168.23.3 24

quit

interface gi0/0/0

ip address 192.168.34.3 24

quit

ospf 1 router-id 3.3.3.3

area 0

network 192.168.23.0 0.0.0.255

network 192.168.34.0 0.0.0.255

authentication-mode simple plain hcie

quit

quit



R4:

undo terminal monitor

system-view

sysname R4

interface gi0/0/1

ip address 192.168.34.4 24

quit

interface gi0/0/0

ip address 192.168.45.4 24

quit

ospf 1 router-id 4.4.4.4

area 0

network 192.168.45.0 0.0.0.255

network 192.168.34.0 0.0.0.255

authentication-mode simple plain hcie

quit

quit



R5:

undo terminal monitor

system-view

sysname R5

interface gi0/0/1

ip address 192.168.45.5 24

quit

interface gi0/0/0

ip address 192.168.56.5 24

ospf authentication-mode md5 9 HCIP

quit

ospf 1 router-id 5.5.5.5

area 0

network 192.168.45.0 0.0.0.255

authentication-mode simple plain hcie

quit

area 56

network 192.168.56.0 0.0.0.255

quit

quit




R6:

undo terminal monitor

system-view

sysname R6

interface gi0/0/1

ip address 192.168.56.6 24

ospf authentication-mode md5 9 HCIP

quit

interface gi0/0/2

ip address 192.168.2.254 24

quit

ospf 1 router-id 6.6.6.6

area 56

network 192.168.56.0 0.0.0.255

network 192.168.2.0 0.0.0.255

quit

quit


验证

华为ensp配置_IP_02


华为ensp配置_OSPF_03


举报

相关推荐

0 条评论