华为ensp VRRP+OSPF配置

华为ensp VRRP+OSPF配置_第1张图片

 严格安装作者文档操作,才能正常输出,别问我怎么知道的,因为这是我该了好多遍的

设置网络配置
[R1]int e0/0/0
[R1-Ethernet0/0/0]ip address 10.1.1.251 24
[R1-Ethernet0/0/0]qu 
[R1]int e0/0/1
[R1-Ethernet0/0/1]ip address 1.1.1.1 30
[R1-Ethernet0/0/1]qu
设置ospf
[R1]ospf 1
[R1-ospf-1]area 0
[R1-ospf-1-area-0.0.0.0]
[R1-ospf-1-area-0.0.0.0]network 10.1.1.0 0.0.0.255
[R1-ospf-1-area-0.0.0.0]network 1.1.1.0 0.0.0.3
[R1-ospf-1-area-0.0.0.0]qu
设置vrrp
[R1-ospf-1]int e0/0/0
[R1-Ethernet0/0/0]vrrp vrid 10 virtual-ip 10.1.1.254	
[R1-Ethernet0/0/0]vrrp vrid 10 priority 150
[R1-Ethernet0/0/0]display vrrp brief 
VRID  State        Interface                Type     Virtual IP     
----------------------------------------------------------------
10    Master       Eth0/0/0                 Normal   10.1.1.254      
----------------------------------------------------------------
Total:1     Master:1     Backup:0     Non-active:0   
设置网络配置
[R2]int e0/0/0
[R2-Ethernet0/0/0]ip address 10.1.1.252 24
[R2-Ethernet0/0/0]qu
[R2]int e0/0/1
[R2-Ethernet0/0/1]ip address 2.1.1.1 30
设置ospf
[R2-Ethernet0/0/1]ospf 1
[R2-ospf-1]
[R2-ospf-1]area 0
[R2-ospf-1-area-0.0.0.0]
[R2-ospf-1-area-0.0.0.0]network 10.1.1.0 0.0.0.255
[R2-ospf-1-area-0.0.0.0]network 2.1.1.0 0.0.0.3
[R2-ospf-1-area-0.0.0.0]qu
设置vrrp
[R2]int e0/0/0	
[R2-Ethernet0/0/0]vrrp vrid 10 virtual-ip 10.1.1.254
[R2-Ethernet0/0/0]display vrrp brief 
VRID  State        Interface                Type     Virtual IP     
----------------------------------------------------------------
10    Master       Eth0/0/0                 Normal   10.1.1.254     
----------------------------------------------------------------
Total:1     Master:1     Backup:0     Non-active:0     
[R2-Ethernet0/0/0]display vrr	
[R2-Ethernet0/0/0]display vrrp br	
[R2-Ethernet0/0/0]display vrrp brief 
VRID  State        Interface                Type     Virtual IP     
----------------------------------------------------------------
10    Initialize   Eth0/0/0                 Normal   10.1.1.254     
----------------------------------------------------------------
Total:1     Master:0     Backup:0     Non-active:1     
出现双master可以使用下面方法
[R2-Ethernet0/0/0]shutdown
[R2-Ethernet0/0/0]undo shutdown
[R2-Ethernet0/0/0]display vrrp brief
VRID  State        Interface                Type     Virtual IP     
----------------------------------------------------------------
10    Backup       Eth0/0/0                 Normal   10.1.1.254     
----------------------------------------------------------------
Total:1     Master:0     Backup:1     Non-active:0     


设置网络配置
[R3]int e0/0/0
[R3-Ethernet0/0/0]ip address 1.1.1.2 30
[R3-Ethernet0/0/0]qu
[R3]int e0/0/1
[R3-Ethernet0/0/1]ip address 2.1.1.2 30
设置回环网络
[R3]interface LoopBack 0
[R3-LoopBack0]ip address 172.16.1.1 30
[R3-LoopBack0]qu
设置ospf
[R3]ospf 1
[R3-ospf-1]area 0
[R3-ospf-1-area-0.0.0.0]network 1.1.1.0 0.0.0.3
[R3-ospf-1-area-0.0.0.0]network 2.1.1.0 0.0.0.3

你可能感兴趣的:(#,华为ensp配置,华为)