示例图:
其实说白了就是做线路冗余,达到热备切换。
组网需求:
楼层1和楼层2分别通过两条线路做冗余接入交换机(本示例只考虑vrrp,暂不考虑其他方面)。当其中一段链路故障时,能通过另外一条链路传输。
配置信息:
dis cu
#
sysname lsw9
#
vlan batch 10 20
#
stp mode stp
#
interface Ethernet0/0/2
port link-type access
port default vlan 10
#
interface Ethernet0/0/3
port link-type access
port default vlan 20
#
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 10 20
#
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 10 20
stp instance 0 cost 200000000
#
return
--------------------------
dis cu
#
sysname lsw11
#
vlan batch 30
#
stp mode stp
#
interface Ethernet0/0/2
port link-type access
port default vlan 30
#
interface Ethernet0/0/3
port link-type access
port default vlan 30
#
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 30
stp instance 0 cost 200000000
#
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass