任务命令进入特权命令状态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
进入设置对话过程后,Cisco思科路由器首先会显示一些提示信息:—— System Configuration Dialog ——
At any point you may enter a question mark '?' for help. Use ctrl-c to abort configuration dialog at any prompt. Default settings are in square brackets '[]'.
First, would you like to see the current interface summary? [yes]:
Any interface listed with OK? value "NO" does not have a valid configuration InterfaceIP-AddressOK?MethodStatusProtocol Ethernet0unassignedNOunsetupup Serial0unassignedNOunsetupup……………………………
Configure for Dial-in IP SLIP/PPP access? [no]: yes
6)是否使用动态IP地址:
Configure for Dynamic IP addresses? [yes]:
7)是否使用缺省IP地址:
Configure Default IP addresses? [no]: yes
是否使用TCP头压缩:
Configure for TCP Header Compression? [yes]:
9)是否在异步口上使用路由表更新:
Configure for routing updates on async links? [no]: y
10)是否设置异步口上的其它协议。接下来,系统会对每个接口进行参数的设置。
1.Configuring interface Ethernet0:1)是否使用此接口:Is this interface in use? [yes]:2)是否设置此接口的IP参数:Configure IP on this interface? [yes]:3)设置接口的IP地址:IP address for this interface: 192.168.162.2 4)设置接口的IP子网掩码:Number of bits in subnet field [0]:
Class C network is 192.168.162.0, 0 subnet bits; mask is /24在设置完所有接口的参数后,系统会把整个设置对话过程的结果显示出来:The following configuration command script was created: