Cisco 交换机的命令行模式

  • 用户模式
    只能用来查看一些统计信息

  • Switch>
  • 特权模式
    可以查看或修改Cisco设备的配置

  • Switch>enable
    
    Switch#
  • 全局配置模式
    可以修改交换机的全局配置

     

  • Switch#configure terminal
    Switch(config)#
  • 接口模式
    针对于接口的配置

     

  • Switch(config)#interface fastEthernet 0/1
    Switch(config-if)#

    可以使用end命令来快速退出当前模式

     

  • Switch(config-if)#end
    Switch#

四种模式明显的层次关系

wKiom1V0DVfx9oqpAAOBnTp0kzE423.jpg