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. 显示命令 |
任务 命令 |
查看版本及引导信息 show version |
查看运行设置 show running-config |
查看开机设置 show startup-config |
显示端口信息 show interface type slot/number |
显示路由信息 show ip router |
4. 拷贝命令 |
用于IOS及CONFIG的备份和升级 |
5. 网络命令 |
任务 命令 |
登录远程主机 telnet hostname |IP address |
网络侦测 ping hostname |IP address |
路由跟踪 trace hostname |IP address |
|
6. 基本设置命令 |
任务 命令 |
全局设置 config terminal |
设置访问用户及密码 username username password password |
设置特权密码 enable secret password |
设置路由器名 hostname name |
设置静态路由 ip route destination subnet-mask next-hop |
启动IP路由 ip routing |
启动IPX路由 ipx routing |
端口设置 interface type slot/number |
设置IP地址 ip address address subnet-mask |
设置IPX网络 ipx network network |
激活端口 no shutdown |
物理线路设置 line type number |
启动登录进程 login [ local |tacacs server] |
设置登录密码 password password |