Home > other >  VRRP + MSTP
VRRP + MSTP

Time:11-27



Two PC can access 5.5.5.5, SHUTDOWN SW1 2 mouth, exchange price on SW2, vlan 10 will not be the role of the MASTER, only two switches will be connected cables or broken down the SW1 completely, SW2, vlan 10 to meet into the role of the MASTER, please take a look at why?

CodePudding user response:

SW1:
Sysname SW1
#
The irf MAC - address persistent timer
Irf auto - update the enable
Undo irf link - delay
Irf member 1 priority 1
#
Ospf 1
Area 0.0.0.0
The network 172.16.1.0 0.0.0.255
The network 192.168.1.0 0.0.0.255
The network 192.168.11.1 0.0.0.0
#
LLDP global enable
#
System - working - mode standard
Xbar load - single
Password recovery - enable
Lpu -type f - series
#
Vlan 1
#
Vlan 10
#
Vlan 20
#
Vlan 100
#
Vlan 200
#
STP region - the configuration
Region - the name XXX
The instance 1 vlan 10
The instance 2 vlan 20
The active region - the configuration
#
STP root instance 1 primary
STP root instance 2 secondary
STP global enable
#
Interface NULL0
#
Interface Vlan - interface10
IP address 172.16.1.1 255.255.255.0
VRRP vrid 10 virtual - IP 172.16.1.254
VRRP vrid 10 priority 120
#
Interface Vlan - interface20
IP address 192.168.1.1 255.255.255.0
VRRP vrid 20 virtual IP 192.168.1.254
#
Interface Vlan - interface100
IP address 192.168.11.1 255.255.255.0
#
Interface Vlan - interface200
IP address 1.1.1.1 255.255.255.0
#
Interface FortyGigE1/0/53
The port link - mode bridge,
#
Interface FortyGigE1/0/54
The port link - mode bridge,
#
Interface GigabitEthernet1/0/1
The port link - mode bridge,
The port link -type trunk
Undo the port trunk permit vlan 1
The port trunk permit vlan 10 20
Combo enable fiber
#
Interface GigabitEthernet1/.two survivors
The port link - mode bridge,
The port link -type trunk
Undo the port trunk permit vlan 1
The port trunk permit vlan 10 20
Combo enable fiber
#



SW2:
Sysname SW2
#
The irf MAC - address persistent timer
Irf auto - update the enable
Undo irf link - delay
Irf member 1 priority 1
#
Ospf 1
Area 0.0.0.0
The network 172.16.1.0 0.0.0.255
The network 192.168.1.0 0.0.0.255
The network 192.168.12.2 0.0.0.0
#
LLDP global enable
#
System - working - mode standard
Xbar load - single
Password recovery - enable
Lpu -type f - series
#
Vlan 1
#
Vlan 10
#
Vlan 20
#
Vlan 200
#
STP region - the configuration
Region - the name XXX
The instance 1 vlan 10
The instance 2 vlan 20
The active region - the configuration
#
STP root instance 1 secondary
STP root instance 2 primary
STP global enable
#
Interface NULL0
#
Interface Vlan - interface10
IP address 172.16.1.2 255.255.255.0
VRRP vrid 10 virtual - IP 172.16.1.254
#
Interface Vlan - interface20
IP address 192.168.1.2 instead 255.255.255.0
VRRP vrid 20 virtual IP 192.168.1.254
VRRP vrid 20 priority 120
#
Interface Vlan - interface200
IP address 192.168.12.2 255.255.255.0
#
Interface FortyGigE1/0/53
The port link - mode bridge,
#
Interface FortyGigE1/0/54
The port link - mode bridge,
#
Interface GigabitEthernet1/0/1
The port link - mode bridge,
The port link -type trunk
Undo the port trunk permit vlan 1
The port trunk permit vlan 10 20
Combo enable fiber
#
Interface GigabitEthernet1/.two survivors
The port link - mode bridge,
The port link -type trunk
Undo the port trunk permit vlan 1
The port trunk permit vlan 10 20
Combo enable fiber
#
Interface GigabitEthernet1/0/3
The port link - mode bridge,
The port access vlan 10
Combo enable fiber
Undo the STP enable
#
Interface GigabitEthernet1/0/4
The port link - mode bridge,
The port access vlan 20
Combo enable fiber


SW3:
Sysname SW3
#
The irf MAC - address persistent timer
Irf auto - update the enable
Undo irf link - delay
Irf member 1 priority 1
#
LLDP global enable
#
System - working - mode standard
Xbar load - single
Password recovery - enable
Lpu -type f - series
#
Vlan 1
#
Vlan 10
#
Vlan 20
#
STP region - the configuration
Region - the name XXX
The instance 1 vlan 10
The instance 2 vlan 20
The active region - the configuration
#
STP global enable
#
Interface NULL0
#
Interface Vlan - interface20
#
Interface FortyGigE1/0/53
The port link - mode bridge,
#
Interface FortyGigE1/0/54
The port link - mode bridge,
#
Interface GigabitEthernet1/0/1
The port link - mode bridge,
nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  • Related