mstp vrrp bfd 实验

mstp vrrp bfd 实验_第1张图片

 LSW1配置

sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys lsw1
[lsw1]vlan batch 10 20 30
[lsw1]int g0/0/1
[lsw1-GigabitEthernet0/0/1]port link-type access 
[lsw1-GigabitEthernet0/0/1]port default vlan 10
[lsw1-GigabitEthernet0/0/1]int g0/0/3
[lsw1-GigabitEthernet0/0/3]port link-type access 
[lsw1-GigabitEthernet0/0/3]port default vlan 10
[lsw1-GigabitEthernet0/0/3]int g0/0/5
[lsw1-GigabitEthernet0/0/5]port link-type access 
[lsw1-GigabitEthernet0/0/5]port default vlan 20
[lsw1-GigabitEthernet0/0/5]int g0/0/6
[lsw1-GigabitEthernet0/0/6]port link-type access 
[lsw1-GigabitEthernet0/0/6]port default vlan 20
[lsw1-GigabitEthernet0/0/6]
[lsw1-GigabitEthernet0/0/6]int g0/0/2
[lsw1-GigabitEthernet0/0/2]port link-type trunk 
[lsw1-GigabitEthernet0/0/2]port trunk allow-pass vlan all 
[lsw1-GigabitEthernet0/0/2]int g0/0/4
[lsw1-GigabitEthernet0/0/4]port link-type trunk 
[lsw1-GigabitEthernet0/0/4]port trunk allow-pass vlan all 


#
stp region-configuration
 region-name ly
 instance 1 vlan 10
 instance 2 vlan 20
 active region-configuration
#

LSW2配置

sysname lsw2
#
undo info-center enable
#
vlan batch 10 20 30
#
stp instance 1 root primary
stp instance 2 root secondary
#
stp region-configuration
 region-name ly
 instance 1 vlan 10
 instance 2 vlan 20
 active region-configuration
#
bfd
#
interface Vlanif1
#
interface Vlanif10
 ip address 192.168.1.254 255.255.255.0
 vrrp vrid 1 virtual-ip 192.168.1.252
 vrrp vrid 1 priority 120
 vrrp vrid 1 preempt-mode timer delay 20
#
interface Vlanif20
 ip address 192.168.2.253 255.255.255.0
 vrrp vrid 2 virtual-ip 192.168.2.252
#
interface Vlanif30
 ip address 192.168.3.2 255.255.255.0
#
interface Eth-Trunk1
 port link-type trunk
 port trunk allow-pass vlan 2 to 4094
#
interface GigabitEthernet0/0/1
 port link-type trunk
 port trunk allow-pass vlan 2 to 4094
#
interface GigabitEthernet0/0/2
 port link-type trunk
 port trunk allow-pass vlan 2 to 4094
#
interface GigabitEthernet0/0/3
 eth-trunk 1
#
interface GigabitEthernet0/0/4
 eth-trunk 1
#
bfd 1 bind peer-ip 192.168.3.1
 discriminator local 1
 discriminator remote 2
 commit
#

LSW3配置

sysname lsw3
#
undo info-center enable
#
vlan batch 10 20 30
#
stp region-configuration
 region-name ly
 instance 1 vlan 10
 instance 2 vlan 20
 active region-configuration
#
interface GigabitEthernet0/0/1
 port link-type trunk
 port trunk allow-pass vlan 2 to 4094
#
interface GigabitEthernet0/0/2
 port link-type trunk
 port trunk allow-pass vlan 2 to 4094
#
interface GigabitEthernet0/0/3
 port link-type trunk
 port trunk allow-pass vlan 2 to 4094
#



LSW4配置

sysname lsw4
#
undo info-center enable
#
vlan batch 10 20 30
#
stp instance 1 root secondary
stp instance 2 root primary
#
stp region-configuration
 region-name ly
 instance 1 vlan 10
 instance 2 vlan 20
 active region-configuration
#
interface Vlanif10
 ip address 192.168.1.253 255.255.255.0
 vrrp vrid 1 virtual-ip 192.168.1.252
#
interface Vlanif20
 ip address 192.168.2.254 255.255.255.0
 vrrp vrid 2 virtual-ip 192.168.2.252
 vrrp vrid 2 priority 120
 vrrp vrid 2 preempt-mode timer delay 20
#
interface Vlanif30
 ip address 192.168.3.3 255.255.255.0
#
interface MEth0/0/1
#
interface Eth-Trunk1
 port link-type trunk
 port trunk allow-pass vlan 2 to 4094
#
interface GigabitEthernet0/0/1
 port link-type trunk
 port trunk allow-pass vlan 2 to 4094
#
interface GigabitEthernet0/0/2
 port link-type trunk
 port trunk allow-pass vlan 2 to 4094
#
interface GigabitEthernet0/0/3
 eth-trunk 1
#
interface GigabitEthernet0/0/4
 eth-trunk 1
#

AR1配置

 sysname AR2
#
vlan batch 10 20 30
#
bfd
#
interface Vlanif30
 ip address 192.168.3.1 255.255.255.0 
#
interface Ethernet0/0/0
 port link-type trunk
 port trunk allow-pass vlan 2 to 4094
#
bfd 1 bind peer-ip 192.168.3.2
 discriminator local 2
 discriminator remote 1
 commit
#
ip route-static 192.168.1.0 255.255.255.0 192.168.3.2
ip route-static 192.168.1.0 255.255.255.0 192.168.3.3
ip route-static 192.168.2.0 255.255.255.0 192.168.3.2
ip route-static 192.168.2.0 255.255.255.0 192.168.3.3

效果

mstp vrrp bfd 实验_第2张图片

 mstp vrrp bfd 实验_第3张图片

 mstp vrrp bfd 实验_第4张图片

 

 mstp vrrp bfd 实验_第5张图片

 mstp vrrp bfd 实验_第6张图片

你可能感兴趣的:(ensp,配置,服务器,linux,运维)