- 论坛徽章:
- 0
|
![]()
trunk的工作模式
1.switchport mode access 将接口设定为永久的非中继模式,并协商将链路转换为非中继链路.即使邻接端口是中继接口,次接口也会成为非中继接口.
2.switchport mode dynamic desirable 使得接口主动尝试将链路转换为中继链路,如果邻接的接口被设为trunk,desirable或者auto模式,此接口也会成为中继接口
3.switchprot mode dynamic auto 允许接口将链路转换为中继链路.如果邻接口被转换为trunk或者desirable模式,此接口会成为中继接口.
4.switchprot nonegotiate 将接口设定为永久的中继模式,但禁止接口产生DTP帧,要建立中继链路,就必须手工将接口配置为中继接口.
5.switchport mode trunk 将接口设为永久中继模式,并协商将链路转换为中继链路.即使邻接口不是中继接口,次接口也会成为中继接口.
![]()
第二个交换机同上配置
switch2#show interface f0/12 switchport (查看12端口的工作情况)
switch trunk allowed vlan remove vlan 2 {限制中继链路传送的vlan-list}
switch(confg)#int f0/12 (进入f0/12端口)
switch(config-if)#switchport mode access (将接口转换为接入端口)
switchport trunk allowed vlan add 2 (将vlan2添加到中继中)
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/66144/showart_526646.html |
|