配置VLAN:
配置Vlan中继链路:vlan trunk时,需要先对trunk的链路协议指定,一般默认选择dot1q。
语法如下: interface range Fastethernet 0/1-2
Switch trunk encapsulation dot1q
Switchport mode trunk
Exit
配置链路聚合LACP(将低速的多条链路聚合成一条高速的链路)时:
聚合链路两端的交换机分别配置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
未完待续。。。