9.思科交换路由基本命令操作
工作模式:>:用户模式#:特权模式
(config)#:全局模式(config-if)#:接口模式
命令大致划分:v 用户模式下大多都是对设备IOS系统进行操作配置的一些命令。v 特权模式下大多都是Show查看类命令。v 全局模式下大多都是配置类命令。v 接口模式下大多都是对于接口的配置命令。
CSICO基础常用命令
命令描述
> enable进入特权模式
# conf t进入全局模式
(config)# interface f0/0(接口名)进入接口模式
(config-if)# exit退出到上级模式
(config-if)# end退回到特权模式
# reload重启设备
# wr保存配置到NVRAM中
# erase nvram清空NVRAM中的所有配置
# delete nvram:startup-config清空NVRAM中的所有配置
# show ver查看IOS系统版本
# show ip interface brief查看设备接口信息
# show interface f0/0(接口名)查看接口的工作模式,速率
# show mac-address-table查看MAC地址表
# show ip route查看路由表
# show running-config查看RAM中的临时配置
# show startup-config查看NVRAM中的永久配置
# copy startup-config running-config拷贝NVRAM中的配置到RAM中
(config)# hostname R1(主机名)配置一个新的主机名
(config)# line con 0进入Console管理口
(config-line)# exec-timeout 0 0配置Console接口永不超时
(config-line)# password 123(密码)配置Console接口密码
(config-line)# logging synchronous配置防打断
(config-line)# no ip domain-lookup配置禁止DNS查找
(config-if)# ip add 192.168.1.1 255.255.255.0给该接口配置一个IP地址
(config-if)# no shutdown打开该接口
(config-if)# shutdown关闭该接口
(config-if)# duplex full(全双工)或half(半双工)或auto(10/100自适应)配置接口的双工模式
(config-if)# speed 10或100或1000或auto配置接口速率
页:
[1]