vlan划分及trunk

 

vlan 划分

config terminal
vlan 2
name vlan 2
exit
int f0/2
switchport mode access
switchport access vlan 2

还原接口到默认状态

(config)#default interface f0/2

查看vlan信息
show vlan brief
show vlan f0/2  

Trunk配置

int f0/24

switchport trunk encapsulation {isl | dot1q | negotiate}

switchport mode {dynamic(desirable auto) |  trunk}

传送未标记针
switchport trunk native vlan 2

如果不需要trunk传送某个vlan的数据,可以从trunk删除这个vlan

switchport trunk allowed vlan remove vlan 2

添加传送某个vlan

switchport trunk allowed vlan add vlan 2

查看验证接口模式

show interface f0/24 switchport

以太通道

1.思科专有协议PAgP
2.标准协议LACP

注意:参与捆绑的端口必须属于同一个vlan,如果端口为中继模式,则必须全部为中继模式,物理参数必须相同(双工,半双工)
interface range f0/1 - 2
channel-protocol pagp
channel-group 1 mode {on desirable auto off}

查看以太通道状态

show etherchannel summary
show etherchannel port


 

你可能感兴趣的:(Access,interface,default,f0,desirable)