1、思科路由器基本的配置和常用的配置命令启动接口,分配IP地址:routerrouter enablerouter#router# configure terminalrouter(config)#router(config)# interface Type Portrouter(config-if)# no shutdownrouter(config-if)# ip address IP-Address Subnet-Maskrouter(config-if)# z配置RIP路由协议:30秒更新一次router(config)# router riprouter(config-if)# netw
2、ork Network-Number router(config-if)# z配置IGRP路由协议:90秒更新一次router(config)# router igrp AS-Number router(config-if)# network Network-Number router(config-if)# z配置Novell IPX路由协议:Novell RIP 60秒更新一次router(config)# ipx routing node addressrouter(config)# ipx maximum-paths Paths router(config)# interface Ty
3、pe Portrouter(config-if)# ipx network Network-Number encapsulation encapsulation-type secondary router(config-if)# z配置DDR:router(config)# dialer-list Group-Number protocol Protocol-Type permit list ACL-Numberrouter(config)# interface bri 0router(config-if)# dialer-group Group-Numberrouter(config-if)
4、# dialer map Protocol-Type Next-Hop-Address name Hostname Telphone-Numberrouter(config-if)# z配置ISDN:router(config)# isdn swith-type Swith-Type router(config-if)# z配置Frame Relay:router(config-if)# encapsulation frame-relay cisco | ietf router(config-if)# frame-relay lmi-type ansi | cisco | q933a rout
5、er(config-if)# bandwidth kilobitsrouter(config-if)# frame-relay invers-arp Protocol dlci router(config-if)# z配置标准ACL:router(config)# access-list Access-List-Number permit | deny source source-mask router(config)# interface Type Portrouter(config-if)# ip access-group Access-List-Number in | out route
6、r(config-if)# z配置扩展ACL:router(config)# access-list Access-List-Number permit | deny Protocol | Protocol-Number source source-wildcard Source-Port destination destination-wildcard Destination-Port established router(config)# interface Type Portrouter(config-if)# ip access-group Access-List-Number in
7、| out router(config-if)# z配置命名ACL:router(config)# ip access-list standard | extended ACL-Namerouter(config std- | ext- nacl)# permit | deny IP-Access-List-Test-Conditions router(config std- | ext- nacl)# no permit | deny IP-Access-List-Test-Conditions router(config std- | ext- nacl)# zrouter(config)
8、# interface Type Portrouter(config-if)# ip access-group ACL-Name | 1199 in | out router(config-if)# z配置DCE时钟:router# show controllers Type Port router(confin-if)# clock rate 64000 router(config-if)# z配置PPP协议:router(config)# username Name password Set-Password-Here router(config)# interface Type Port
9、router(config-if)# encapsulation ppp router(config-if)# ppp outhentication chap | chap pap | pap chap | pap router(config-if)# ppp pap sent-username Name password Password router(config-if)# zPAP单向认证配置实例:验证方:router-server(config)# username Client password 12345 router-server(config)# interface serial 0router-server(config-if)# encapsulation ppprouter-server(config-if)# ppp authentication pap router-server(config-if)# z被验证方:router-client(config-if)# encapsulation ppprouter-client(config-if)# ppp pap sent-username Client password 12345 router-client(config-if)# zPAP双向认证配置实例: