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)# n
2、etwork 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)# inte
3、rface Type 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(
4、config-if)# 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
5、 | q933a router(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
6、 in | out router(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 Acces
7、s-List-Number in | 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- nac
8、l)# zrouter(config)# 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(confi
9、g)# interface Type Portrouter(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(
10、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 双向认证配置实例: