| 交换机的命令状态 | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| 模式 | 访问方法 | 提示符 | 退出方法 | ||||||||||||||||||||||||||||||||||||||||||||||||||
| 用户模式 | 登录交换机之后 | Switch> | logout或Quit | ||||||||||||||||||||||||||||||||||||||||||||||||||
| 特权模式 | 用户模式switch>下,输入 enable(简写en)命令 | Switch# | disable | ||||||||||||||||||||||||||||||||||||||||||||||||||
| 全局配置模式 | 特权模式switch#下,输入 config(简写conf)命令 | Switch(config)# | exit或者Ctrl+Z | ||||||||||||||||||||||||||||||||||||||||||||||||||
| VLAN配置模式 (VTP透明模式下,可创 建ID>1005的VLAN) | 全局模式switch(config)#下, 输入vlan vlan-id命令,vlan-id 表示vlan号 | Switch(config-vlan)# | (1)Exit退回到switch (config)#; (2)Ctrl+Z或者end退回 到switch# | ||||||||||||||||||||||||||||||||||||||||||||||||||
| VLAN配置 (配置ID 1~1005的 VLAN) | 特权模式switch#下,输入 Vlan database命令(cisco己 不再推荐使用此命令) | Switch(vlan)# | Exit退回到switch# | ||||||||||||||||||||||||||||||||||||||||||||||||||
| 接口配置模式 | 特权模式switch#下,输入 interface命令 | Switch(config-if)# | (1)Exit退回到switch (config)#; (2)Ctrl+Z或者end退回 到switch# | ||||||||||||||||||||||||||||||||||||||||||||||||||
| line接口配置模式 | 特权模式switch#下,输入line console 0命令 | Switch(config-line)# | (1)Exit退回到switch (config)#; (2)Ctrl+Z或者end退回 到switch# | ||||||||||||||||||||||||||||||||||||||||||||||||||