消除提示:undo info-center enable
1、sw1:
sys sw1 vlan 2 int g0/0/1 port link-type trunk port trunk allow-pass vlan all int g0/0/2 port link-type trunk port trunk allow-pass vlan all inter e0/0/2 port link-type access port default vlan 2 quit quit save
2、sw2
sys vlan batch 2 100 int g0/0/1 port link-type trunk port trunk allow-pass vlan all int g0/0/2 port link-type access port default vlan 100 int vlan 100 ip add 192.168.100.1 24 q int vlan 1 ip add 192.168.1.100 24 vrrp vrid 1 virtual-ip 192.168.1.254 vrrp vrid 1 priority 110 vrrp vrid 1 track int g0/0/2 reduce 20 q int vlan 2 ip add 192.168.2.100 24 vrrp vrid 2 virtual-ip 192.168.2.254 q ospf area 0 network 192.168.0.0 0.0.255.255
3、sw3
sys vlan batch 2 200 int g0/0/2 port link-type trunk port trunk allow-pass vlan all int g0/0/1 port link-type access port default vlan 200 int vlan 200 ip add 192.168.200.1 24 q ospf area 0 network 192.168.0.0 0.0.255.255 q int vlan 1 ip add 192.168.1.200 24 vrrp vrid 1 virtual-ip 192.168.1.254 int vlan 2 ip add 192.168.2.200 24 vrrp vrid 2 virtual-ip 192.168.2.254 vrrp vrid 2 priority 110 vrrp vrid 2 track int g0/0/1 reduce 20
3、R1:
sys int g0/0/0 ip add 192.168.99.254 24 int g0/0/1 ip add 192.168.200.2 24 int g0/0/2 ip add 192.168.100.2 24 q ospf area 0 network 192.168.0.0 0.0.255.255
查看
sw2、sw3
dis vrrp (查看vrrp的信息)
dis vrrp br