基本配置命令
常见命令模式

>:用户模式。这是一个入口,不能修改设备配置信息。

#:特权模式。主要用于查看和测试,比如 show命令、ping命令都在这个模式下。

(config)#:全局配置模式。用于配置设备的全局参数。

(config-if)#:接口配置模式。用于配置设备的接口参数。

(config-router)#:路由配置模式。用于配置设备的路由。


模式切换命令

Switch>enable!进入特权模式
Switch#configure terminal!进入全局配置模式
Switch(config)#exit!退出当前模式
Switch(config-if)#end!从较深的层次直接退回特权模式

查看和测试命令

Switch#show running-config!查看配置文件
Switch#show ip interface brief!查看接口
Switch#show ip route!查看路由表
Switch#ping IP地址!ping操作
Switch#copy running-config startup-config!保存配置文件
Switch#reload!重启设备

基本配置命令

Switch(config)#hostname 名字!修改设备名
Switch(config)#ip routing!启用IP路由(用于三层交换机)

缩小
放大