1-5交换机配置实战补充

配置VLAN:

配置Vlan中继链路:vlan trunk时,需要先对trunk的链路协议指定,一般默认选择dot1q

 

语法如下: interface range Fastethernet 0/1-2 

Switch trunk encapsulation dot1q

Switchport mode trunk

Exit

 

 

配置链路聚合LACP(将低速的多条链路聚合成一条高速的链路)时:

图片1.png

扫描二维码关注公众号,回复: 4012511 查看本文章

 

聚合链路两端的交换机分别配置LACP时:

 

语法如下:interface Range fastEthernet 0/1-2   //选中链路端口

channel-protocol lacp //更改通道协议为lacp协议

channel-group 1 mode active //定义通道组1并激活

 

端口安全(例子):

Interface Fastethernet 0/24

Switchport mode access

Switch port-security

Switchport port-security maximum 3


未完待续。。。

 


猜你喜欢

转载自blog.51cto.com/6854290/2315383