二层链路聚合实验

链路聚合的作用:1、扩容;2、为链路冗余提供可靠性。

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

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

 

右边交换机:

system-view

sysname 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

quit

4、配置链路聚合,级联口

左右边交换机:

interface Bridge-Aggregation 1

quit

interface range GigabitEthernet 1/0/47 to GigabitEthernet 1/0/48

port link-mode bridge

port link-aggregation group 1

quit

interface Bridge-Aggregation 1

port link-type trunk

port trunk permit vlan 10 to 20

最后测试如图:

posted @ 2019-05-22 17:28  有点狂  阅读(309)  评论(0编辑  收藏  举报