路由器实验命令汇总
命 令 作 用
enable
进入特权执行模式
disable
退出特权执行模式
configure terminal
进入全局配置模式
interface ethernet n
配置以太网口
ip address ip_address
配置 IP 地址
no shutdown
激活接口
shutdown
关闭接口
end
退出特权执行模式
^Z
退到特权执行模式
ping ip_address
测试网络连通性
line vty n [m]
配置 vty 线路
login
在客户端回显登陆提示
password password
设置口令
exit
退出到上一级模式
hostname host_name
设置主机名
show version
查看版本信息
show flash
查看 Flash 信息
enable password password
设置 enable 口令
enable secret password
设置加密的 enable 口令
o/r 0x2102
在 ROM Monitor 模式下设置配置寄存器值
i
在 ROM Monitor 模式下引导路由器启动
confreg 0x2102
在 ROM Monitor 模式下设置配置寄存器值
config-register 0x2102
在全局配置模式下更改配置寄存器的值
reload
重新启动路由器
show running-config
查看运行配置
show startup-config
查看启动配置文件
copy running-config startup-config
复制运行配置到启动配置文件
copy startup-config running-config
复制启动配置文件到运行配置
copy running-config tftp
复制运行配置到 TFTP 服务器
评论0
最新资源