交换机常用命令

交换机常用命令

Switch(config-if)#duplex {full|half|auto}    #设置双工模式
Switch(config-if)#speed {10|100|1000|auto}    #交换机设置速率
Switch(config-if)#switchport trunk encapsulation {isl|dot1q|negotiate}  #三层交换机指定封装协议
Switch(config-if)#switchport mode {dynamic{desirable|auto}|trunk|access}  #接口配置成trunk模式,中间括号只有三层交换才有自动协商模式
Switch(config-if)#switchport trunk allowed vlan remove vlan 10  #禁止trunk传送某个vlan数据

猜你喜欢

转载自www.cnblogs.com/Dpkg/p/12312111.html