基于SVI的VRRP多备份组
【实验拓扑】
【参考配置】
【SW1】
[Huawei-Vlanif40]
[Huawei-Vlanif40]dis cu
#
sysname Huawei
#
vlan batch 10 20 30 40
#
stp instance 10 root primary
stp instance 20 root secondary
#
cluster enable
stp region-configuration
region-name A
revision-level 1
instance 10 vlan 10 20
instance 20 vlan 30 40
active region-configuration
#
interface Vlanif1
#
interface Vlanif10
ip address 192.168.10.1 255.255.255.0
vrrp vrid 10 virtual-ip 192.168.10.254
vrrp vrid 10 priority 120
vrrp vrid 20 virtual-ip 192.168.10.253
#
interface Vlanif20
ip address 192.168.20.1 255.255.255.0
vrrp vrid 21 virtual-ip 192.168.20.254
vrrp vrid 22 virtual-ip 192.168.20.253
vrrp vrid 22 priority 120
#
interface Vlanif30
ip address 192.168.30.1 255.255.255.0
vrrp vrid 31 virtual-ip 192.168.30.254
vrrp vrid 31 priority 120
vrrp vrid 32 virtual-ip 192.168.30.253
#
interface Vlanif40
ip address 192.168.40.1 255.255.255.0
vrrp vrid 41 virtual-ip 192.168.40.254
vrrp vrid 42 virtual-ip 192.168.40.253
vrrp vrid 42 priority 120
#
interface Ethernet0/0/1
port link-type trunk
port trunk allow-pass vlan 2 to 4094
#
interface Ethernet0/0/2
port link-type trunk
port trunk allow-pass vlan 2 to 4094
#
【SW1】VRRP Brief
[Huawei]dis vrrp brief
VRID State Interface Type Virtual IP
----------------------------------------------------------------
10 Backup Vlanif10 Normal 192.168.10.253
20 Master Vlanif10 Normal 192.168.10.254
21 Master Vlanif20 Normal 192.168.20.253
22 Backup Vlanif20 Normal 192.168.20.254
31 Backup Vlanif30 Normal 192.168.30.253
32 Master Vlanif30 Normal 192.168.30.254
41 Master Vlanif40 Normal 192.168.40.253
42 Backup Vlanif40 Normal 192.168.40.254
----------------------------------------------------------------
Total:8 Master:4 Backup:4 Non-active:0
【SW2】
[Huawei]dis cu
#
sysname Huawei
#
vlan batch 10 20 30 40
#
stp instance 10 root secondary
stp instance 20 root primary
#
drop illegal-mac alarm
#
diffserv domain default
#
stp region-configuration
region-name A
revision-level 1
instance 10 vlan 10 20
instance 20 vlan 30 40
active region-configuration
interface Vlanif1
#
interface Vlanif10
ip address 192.168.10.2 255.255.255.0
vrrp vrid 10 virtual-ip 192.168.10.254
vrrp vrid 20 virtual-ip 192.168.10.253
vrrp vrid 20 priority 120
#
interface Vlanif20
ip address 192.168.20.2 255.255.255.0
vrrp vrid 21 virtual-ip 192.168.20.254
vrrp vrid 21 priority 120
vrrp vrid 22 virtual-ip 192.168.20.253
#
interface Vlanif30
ip address 192.168.30.2 255.255.255.0
vrrp vrid 31 virtual-ip 192.168.30.254
vrrp vrid 32 virtual-ip 192.168.30.253
vrrp vrid 32 priority 120
#
interface Vlanif40
ip address 192.168.40.2 255.255.255.0
vrrp vrid 41 virtual-ip 192.168.40.254
vrrp vrid 41 priority 120
vrrp vrid 42 virtual-ip 192.168.40.253
#
interface Ethernet0/0/1
port link-type trunk
port trunk allow-pass vlan 2 to 4094
#
interface Ethernet0/0/2
port link-type trunk
port trunk allow-pass vlan 2 to 4094
#
interface Ethernet0/0/21
port link-type trunk
port trunk allow-pass vlan 2 to 4094
【SW2】 VRRP Brief
[Huawei]dis vrrp brief
VRID State Interface Type Virtual IP
----------------------------------------------------------------
10 Backup Vlanif10 Normal 192.168.10.254
20 Master Vlanif10 Normal 192.168.10.253
21 Master Vlanif20 Normal 192.168.20.254
22 Backup Vlanif20 Normal 192.168.20.253
31 Backup Vlanif30 Normal 192.168.30.254
32 Master Vlanif30 Normal 192.168.30.253
41 Master Vlanif40 Normal 192.168.40.254
42 Backup Vlanif40 Normal 192.168.40.253
----------------------------------------------------------------
Total:8 Master:4 Backup:4 Non-active:0
【SW2】 MSTP Istance Brief
Instance 10
[Huawei]dis stp ins
[Huawei]dis stp instance 10
-------[MSTI 10 Global Info]-------
MSTI Bridge ID :4096.4c1f-ccb1-8c98
MSTI RegRoot/IRPC :0.4c1f-cc38-a98d / 1
MSTI RootPortId :128.21
MSTI Root Type :Secondary root
Master Bridge :32768.4c1f-cc17-56ed
Cost to Master :1
TC received :4
TC count per hello :0
Time since last TC :0 days 0h:0m:25s
Number of TC :6
Last TC occurred :Ethernet0/0/21
----[Port1(Ethernet0/0/1)][LEARNING]----
Port Role :Designated Port
Port Priority :128
Port Cost(Dot1T ) :Config=auto / Active=1
Designated Bridge/Port :4096.4c1f-ccb1-8c98 / 128.1
Port Times :RemHops 19
TC or TCN send :5
TC or TCN received :0
----[Port2(Ethernet0/0/2)][LEARNING]----
Port Role :Designated Port
Port Priority :128
Port Cost(Dot1T ) :Config=auto / Active=1
Designated Bridge/Port :4096.4c1f-ccb1-8c98 / 128.2
Port Times :RemHops 19
TC or TCN send :5
TC or TCN received :2
----[Port21(Ethernet0/0/21)][FORWARDING]----
Port Role :Root Port
Port Priority :128
Port Cost(Dot1T ) :Config=auto / Active=1
Designated Bridge/Port :0.4c1f-cc38-a98d / 128.21
Port Times :RemHops 20
TC or TCN send :2
TC or TCN received :2
----[Port22(Ethernet0/0/22)][DISCARDING]----
Port Role :Alternate Port
Port Priority :128
Port Cost(Dot1T ) :Config=auto / Active=1
Designated Bridge/Port :0.4c1f-cc38-a98d / 128.22
Port Times :RemHops 20
TC or TCN send :0
TC or TCN received :0
Instance 20
[Huawei]dis stp instance 20
-------[MSTI 20 Global Info]-------
MSTI Bridge ID :0.4c1f-ccb1-8c98
MSTI RegRoot/IRPC :0.4c1f-ccb1-8c98 / 0
MSTI RootPortId :0.0
MSTI Root Type :Primary root
Master Bridge :32768.4c1f-cc17-56ed
Cost to Master :1
TC received :7
TC count per hello :0
Time since last TC :0 days 0h:0m:59s
Number of TC :6
Last TC occurred :Ethernet0/0/22
----[Port1(Ethernet0/0/1)][FORWARDING]----
Port Role :Designated Port
Port Priority :128
Port Cost(Dot1T ) :Config=auto / Active=1
Designated Bridge/Port :0.4c1f-ccb1-8c98 / 128.1
Port Times :RemHops 20
TC or TCN send :8
TC or TCN received :0
----[Port2(Ethernet0/0/2)][FORWARDING]----
Port Role :Designated Port
Port Priority :128
Port Cost(Dot1T ) :Config=auto / Active=1
Designated Bridge/Port :0.4c1f-ccb1-8c98 / 128.2
Port Times :RemHops 20
TC or TCN send :9
TC or TCN received :3
----[Port21(Ethernet0/0/21)][FORWARDING]----
Port Role :Designated Port
Port Priority :128
Port Cost(Dot1T ) :Config=auto / Active=1
Designated Bridge/Port :0.4c1f-ccb1-8c98 / 128.21
Port Times :RemHops 20
TC or TCN send :3
TC or TCN received :4
----[Port22(Ethernet0/0/22)][FORWARDING]----
Port Role :Designated Port
Port Priority :128
Port Cost(Dot1T ) :Config=auto / Active=1
Designated Bridge/Port :0.4c1f-ccb1-8c98 / 128.22
Port Times :RemHops 20
TC or TCN send :2
TC or TCN received :0
【SW3】
[Huawei]dis cu
#
sysname Huawei
#
vlan batch 10 20 30 40
#
stp region-configuration
region-name A
revision-level 1
instance 10 vlan 10 20
instance 20 vlan 30 40
active region-configuration
interface Vlanif1
#
interface MEth0/0/1
#
interface Ethernet0/0/1
port link-type trunk
port trunk allow-pass vlan 2 to 4094
#
interface Ethernet0/0/2
port link-type trunk
port trunk allow-pass vlan 2 to 4094
#
return
【SW4】
<Huawei>dis cu
#
sysname Huawei
#
vlan batch 10 20 30 40
#
interface Vlanif1
#
interface MEth0/0/1
#
interface Ethernet0/0/1
port link-type trunk
port trunk allow-pass vlan 2 to 4094
#
interface Ethernet0/0/2
port link-type trunk
port trunk allow-pass vlan 2 to 4094
#
转载于:https://blog.51cto.com/haowen/1208323