SW1:
sys sw1
vlan batch 2
int eth-trunk 1
trunkport e0/0/15
trunkport e0/0/16
port link-type trunk
port trunk allow-pass vlan all
int g0/0/21
port link-type trunk
port trunk allow-pass vlan all
int g0/0/22
port link-type trunk
port trunk allow-pass vlan all
stp enable
stp mode mstp
stp region-configuration
region-name hcip
instance 1 vlan 1
instance 2 vlan 2
active region-configuration
stp instance 1 root primary
stp instance 2 root secondary
int vlan 2
ip add 10.1.2.1 24
vrrp vrid 1 virtual-ip 10.1.2.254
vrrp vrid 1 priority 120
vrrp vrid 1 preempt-mode timer delay 5
vrrp vrid 1 authentication-mode md5 123
vrrp vrid 1 track int g0/0/0 reduced 30
vlan 3
int g0/0/5
port link-type access
port default vlan 3
int vlan 3
ip add 10.1.11.2 24
ip route-static 0.0.0.0 0 12.1.11.1
dhcp enable
int vlan 2
dhcp select global
ip pool vlan2
network 10.1.2.0 mask 24
gatewaty-list 10.1.2.254
dns-list 114.114.114.114
SW3:
sys sw3
vlan batch 2
int e0/0/1
port link-type access
port default vlan 1
int e0/0/2
port link-type access
port default vlan 2
int e0/0/22
port link-type trunk
port trunk allow-pass vlan all
int e0/0/21
port link-type trunk
port trunk allow-pass vlan all
stp enable
stp mode mstp
R1:
sys r1
int g0/0/2
ip add 10.1.11.1 24
int g0/0/1
ip add 10.1.12.1 24
int g0/0/0
ip add 4.4.4.1