1、实验拓扑
2、复习之间配置过的rstp和lacp链路聚合
LSW1
#
vlan batch 10 20 30配置vlan
stp enable 开启生成树协议
stp mode rstp 选择生成树协议模式为rstp
stp instance 0 root primary 配置交换机为生成树的主根
#
interface Eth-Trunk1 配置链路聚合模式为lacp
port link-type trunk
undo port trunk allow-pass vlan 1
port trunk allow-pass vlan 10 20 30
mode lacp-static 选择模式为LACP
max active-linknumber 1 配置活动链路为1条,备份一条。根据实际情况配置
#
interface GigabitEthernet0/0/1
eth-trunk 1
interface GigabitEthernet0/0/2
eth-trunk 1
#
interface GigabitEthernet0/0/3
port link-type trunk
undo port trunk allow-pass vlan 1
port trunk allow-pass vlan 2 to 4094
#