2024年5月19日发(作者:薛夏青)
常用命令
1.
帮助
在IOS操作中,无论任何状态和位置,都可以键入“?”得到系统的帮助。
2.
改变命令状态
任务
命令
进入特权命令状态
enable
退出特权命令状态
disable
进入设置对话状态
setup
进入全局设置状态
config terminal
退出全局设置状态
end
进入端口设置状态
interface
type slot/number
进入子端口设置状
态
interface
type number
.
subinterface
[point-to-point | multipoint]
进入线路设置状态
line
type slot/number
进入路由设置状态
router
protocol
退出局部设置状态
exit
3.
显示命令
任务
查看版本及引导信
息
查看运行设置
查看开机设置
显示端口信息
显示路由信息
4.
拷贝命令
用于IOS及CONFIG的备份和升级
show running-config
show startup-config
show interface
type slot/number
show ip router
命令
show version
5.
网络命令
任务
登录远程主机
网络侦测
路由跟踪
命令
telnet
hostname|IP address
ping
hostname|IP address
trace
hostname|IP address
6.
基本设置命令
任务
全局设置
设置特权密码
设置路由器名
设置静态路由
启动IP路由
启动IPX路由
端口设置
设置IP地址
设置IPX网络
激活端口
物理线路设置
启动登录进程
设置登录密码
命令
config terminal
enable secret
password
hostname
name
ip route
destination subnet-mask
设置访问用户及密码
username
username
password
password
next-hop
ip routing
ipx routing
interface
type slot/number
ip address
address subnet-mask
ipx network
network
no shutdown
line
type number
login [local|tacacs server]
password
password
7.
分配接口IP地址
2024年5月19日发(作者:薛夏青)
常用命令
1.
帮助
在IOS操作中,无论任何状态和位置,都可以键入“?”得到系统的帮助。
2.
改变命令状态
任务
命令
进入特权命令状态
enable
退出特权命令状态
disable
进入设置对话状态
setup
进入全局设置状态
config terminal
退出全局设置状态
end
进入端口设置状态
interface
type slot/number
进入子端口设置状
态
interface
type number
.
subinterface
[point-to-point | multipoint]
进入线路设置状态
line
type slot/number
进入路由设置状态
router
protocol
退出局部设置状态
exit
3.
显示命令
任务
查看版本及引导信
息
查看运行设置
查看开机设置
显示端口信息
显示路由信息
4.
拷贝命令
用于IOS及CONFIG的备份和升级
show running-config
show startup-config
show interface
type slot/number
show ip router
命令
show version
5.
网络命令
任务
登录远程主机
网络侦测
路由跟踪
命令
telnet
hostname|IP address
ping
hostname|IP address
trace
hostname|IP address
6.
基本设置命令
任务
全局设置
设置特权密码
设置路由器名
设置静态路由
启动IP路由
启动IPX路由
端口设置
设置IP地址
设置IPX网络
激活端口
物理线路设置
启动登录进程
设置登录密码
命令
config terminal
enable secret
password
hostname
name
ip route
destination subnet-mask
设置访问用户及密码
username
username
password
password
next-hop
ip routing
ipx routing
interface
type slot/number
ip address
address subnet-mask
ipx network
network
no shutdown
line
type number
login [local|tacacs server]
password
password
7.
分配接口IP地址