CCNA考试实验命令总结(8) 交换机是在全局配置模式配置 switch(config)# ip default-gateway 192.158.0.1 给交换机配置一个缺省网关,请注意, 不用写掩码 switch(config)# vlan2 name cisco 配置一个vlan2并且指定名字叫CISCO switch# show interfaces 查看端口状态 switch(config)# interface e0/10 进入端口e0/10 switch(config-if)# vlan-membership static 2 将端口放进vlan2里面 switch(config)# int f0/26 进入快速以太网端口f0/26 switch(config-if)# trunk on 启用trunk,注意:只能在百兆以上端口