Switch# configure terminal

Switch(config)# interface fastethernet0/1 进入端口F0/1(有可能是G0/1 根据机器的型号来定)

Switch(config-if)# switchport mode access 定义二层口

Switch(config-if)# switchport access vlan 20 将端口F0/1分给VLAN 20

Switch(config-vlan)# end 退出

Switch#copy running-config startup-config 保存配置

发表评论

/ 快捷键:Ctrl+Enter