动态链路聚合实验
动态链路聚合有些步骤跟上次二层链路聚合实验一样。
1、两台交换机,四台主机PC,左边PC3和右边PC5为VLAN 10,左边PC4和右边PC6为为VLAN 20进行测试。然后连线,接下来是交换机配置级联,用最大端口进行级联。
2、接着给每台PC主机配置IP地址,PC3:192.168.10.1,PC5:192.168.10.2;PC4:192.168.20.1,PC6:192.168.20.2:;掩码地址都为255.255.255.0。
3、配置连接PC的接口模式
左右交换机:
system-view
sysname sw1(右边为sw2)
vlan 10
vlan 20
quit
interface GigabitEthernet 1/0/1
port link-type access
port access vlan 10
quit
interface GigabitEthernet 1/0/2
port link-type access
port access vlan 20
4、配置动态链路聚合
interface Bridge-Aggregation 1
link-aggregation mode dynamic
quit
interface range GigabitEthernet 1/0/46 to GigabitEthernet 1/0/48
port link-aggregation group 1
lacp period short
quit
interface Bridge-Aggregation 1
port link-type trunk
port trunk permit vlan 10 20
5、测试连通性