4000系列交换机简明配置手册(中文)(15)
时间:2025-05-06
时间:2025-05-06
4000系列交换机简明配置手册(中文)
使用 default interface slot/port还原到缺省配置状态。 举例如下:
Switch# configure terminal
Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# interface fastethernet2/1
Switch(config-if)# switchport mode access
Switch(config-if)# switchport access vlan 2
Switch(config-if)# end Switch#
配置VLAN Trunks
4000系列交换机简明配置手册(中文)
举例:
Switch# configure terminal
4000系列交换机简明配置手册(中文)
Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# interface fastetherne2/4
Switch(config-if)# switchport mode trunk
Switch(config-if)# switchport trunk encapsulation dot1q
Switch(config-if)# end
定义trunk允许的VLAN
缺省情况下trunk允许所有的VLAN通过。可以使用 switchport trunk allowed vlan remove vlan-list 来去掉某一VLAN
回到允许所有VLAN通过时, 可用no switchport trunk allowed vlan 端口配置命令. 举例如下:
上一篇:一年级上册生命.生态.安全教案
下一篇:区域单店开发流程