思科配置

qinganning / 2023-08-16 / 原文

思科命令行配置模式

  • 用户模式
- Switch>
- 设备默认的模式: 用户简单测试和交换机版本查询
- 帮助命令: '?'
  • 特权模式(enable默认最高级)
- Switch#
- 通过"enable"进入,分为0~15级,默认进入后为最高级15级
  管理配置关键,进行网络调试和测试
  • 全局配置模式(config terminal,需先进入enable模式)
- Switch(config)#
- 需先进入enable模式,通过"config terminal"命令进入,对设备的整体功能进行配置
  • 接口模式(interface,需先进入config terminal模式)
- Switch(config-if)#
- 具体接口的进入,对设备接口的 功能进行配置
  • VLAN模式
- "config terminal"模式下配置即可
- 通过vlan编号进入,对设备的vlan进行配置	

    - Switch(config)#vlan 10 	# 创建vlan10
    - Switch(config-vlan)# 		# 已经进入vlan10的配置模式