Cisco路由器配置预备知识( 二 )


--ConfigureforHWflowcontrol?[yes]:
3)是否设置modem:--Configureformodems?[yes/no]:yes
4)是否使用默认的modem命令:
--Configurefordefaultchatscript?[yes]:
5)是否设置异步口的PPP参数:
--configureforDial-inIPSLIP/PPPAccess?[no]
6)是否使用动态IP地址:-
-ConfigureforDynamicIPaddresses?[yes]:
7)是否使用缺省IP地址:
--ConfigureDefaultIPaddresses?[no]:yes
8)是否使用TCP头压缩:
--ConfigureforTCPHeaderCompression?[yes]:
9)是否在异步口上使用路由表更新:
Configureforroutingupdatesonasynclinks?[no]:y
10)是否设置异步口上的其它协议 。
接下来,系统会一个接口连行参数的设置 。
7.ConfiguringinterfaceEthernet0:
1)是否使用此接口:
--Isthisinterfaceinuse?[yes]:
2)是否设置此接口的IP参数:
--ConfigureIPonthisinterface?[yes]:
3)设置接口的IP地址:
--IPaddressforthisinterface:192.168.162.2
4)设置接口的IP子网掩码:
--Numberofbitsinsubnetfield[0]:
--ClassCnetworkis192.168.162.0,0subnetbits;maksis/24
在设置完所有接口的参数后,系统会把整个设置对话过程的结果显示出来:Thefollowingconfigurationcommandscriptwascreated:
hostnameRouter
enablesecret5$1$W5Oh$6J7tIgRMBOIKVXVG53Uh1
enablepasswordpass
…………
请注重在enablesecret后面显示的是乱码,而enablepassword后面显示的是设置的内容 。
显示结束后,系统会问是否使用这个设置;
Usethisconfiguration?[yes/no]:yes
假如回答yes,系统就会把设置的结果存入路由器的NVRAM中,然后结束设置对话过程,使路由器开始正常的工作 。
四、常用命令
1.帮助在IOS操作中,无论任何状态和位置,都可以键入“?”得到系统的帮助 。
2.改变命令状态进入特权命令状态 enable
退出特权命令状态 disable
进入设置对话状态 setup
进入全局设置状态 configterminal
退出全局设置状态 end
进入端口设置状态 interfacetypeslot/number
进入子端口设置状态 interfacetypenumber.Subinterface[point-to-pointmultipoint]
进入线路设置状态 linetypeslot/number
进入路由设置状态 routerprotocol
退出局部设置状态 exit
3.显示命令
查看版本及引导信息 showversion
查看运行设置 showrunning-config
查看开机设置 showstartup-config
显示端口信息 showinterfacetypeslot/number
显示路由信息 showiprouter
4拷贝命令
用于IOS及CONFIG的备份和升级
如图2
5.网络命令
登录远程主机 telnethostname/IPaddress
网络侦测 pinGhostname/IPaddress
路由跟踪 tracehostname/IPaddress
6.基本设置命令
全局设置configterminal
设置访问用户密码usernameusernamepasswordpassword
设置特权密码enablesecretpassword
设置路由器名hostnamename
设置静态路由iproutedestinationsubnet-masknext-hop
启动IPX路由ipxrouting
端口设置interfacetypeslot/number
设置IP地址 ipaddressaddresssubnet-mask
设置IPX网络ipxnetworknetwork
激活端口noshutdown
物理线路设置linetypenumber
启动登录进程login[localtacaCsserver]
设置登录密码passwordpassword

推荐阅读