1、router(config)# ipx maximum-paths Paths router(config-if)# ipx network Network-Number encapsulation encapsulation-type secondary 配置DDR:router(config)# dialer-list Group-Number protocol Protocol-Type permit list ACL-Number router(config)# interface bri 0 router(config-if)# dialer-group Group-Number r
2、outer(config-if)# dialer map Protocol-Type Next-Hop-Address name Hostname Telphone-Number 配置ISDN:router(config)# isdn swith-type Swith-Type 配置Frame Relay:router(config-if)# encapsulation frame-relay cisco | ietf router(config-if)# frame-relay lmi-type ansi | cisco | q933a router(config-if)# bandwidt
3、h kilobits router(config-if)# frame-relay invers-arp Protocol dlci -设置Keepalive间隔:router(config-if)# keepalive Number -为本地接口指定DLCI:router(config-if)# frame-lelay local-dlci Number -子接口配置:router(config-if)# interface Type Port.Subininterface-Number multipoint | point-to-point router(config-subif)# ip
4、 unnumbered Interface router(config-subif)# frame-lelay local-dlci Number 配置标准ACL:router(config)# access-list Access-List-Number permit | deny source source-mask router(config-if)# ip access-group Access-List-Number in | out 配置扩展ACL:router(config)# access-list Access-List-Number permit | deny Protoc
5、ol | Protocol-Number source source-wildcard Source-Port destination destination-wildcard Destination-Port established 配置命名ACL:router(config)# ip access-list standard | extended ACL-Name router(config std- | ext- nacl)# permit | deny IP-Access-List-Test-Conditions router(config std- | ext- nacl)# no
6、permit | deny IP-Access-List-Test-Conditions router(config std- | ext- nacl)# z router(config-if)# ip access-group ACL-Name | 1199 in | out 配置DCE时钟:router# show controllers Type Port router(confin-if)# clock rate 64000 配置PPP协议:router(config)# username Name password Set-Password-Here router(config-if
7、)# encapsulation ppp router(config-if)# ppp outhentication chap | chap pap | pap chap | pap router(config-if)# ppp pap sent-username Name password Password PAP单向认证配置实例:验证方:router-server(config)# username Client password 12345 router-server(config)# interface serial 0 router-server(config-if)# encaps
8、ulation ppp router-server(config-if)# ppp authentication pap router-server(config-if)# z 被验证方:router-client(config-if)# encapsulation ppp router-client(config-if)# ppp pap sent-username Client password 12345 router-client(config-if)# z PAP双向认证配置实例:路由器 A:routerA(config)# username B password 12345 rou
9、terA(config)# interface serial 0 routerA(config-if)# encapsulation ppp routerA(config-if)# ppp authentication pap routerA(config-if)# ppp pap sent-username A password 54321 routerA(config-if)# z 路由器 B:routerB(config)# username A password 54321 routerB(config)# interface serial 1 routerB(config-if)#
10、encapsulation ppp routerB(config-if)# ppp authentication pap routerB(config-if)# ppp pap sent-username B password 12345 routerB(config-if)# z CHAP单向认证配置实例:router-server(config)# username router-client password 12345 router-server(config-if)# ppp authentication chap router-client(config-if)# ppp auth
11、entication chap router-client(config-if)# ppp chap hostname router-client router-client(config-if)# ppp chap password 12345 CHAP双向认证配置实例:routerA(config)# username routerB password 12345 routerA(config-if)# ppp authentication chap routerA(config-if)# ppp chap hostname routerA routerA(config-if)# ppp
12、chap password 54321 routerB(config)# username routerA password 54321 routerB(config-if)# ppp authentication chap routerB(config-if)# ppp chap hostname routerB routerB(config-if)# ppp chap password 12345 Telnet使用:routerA# terminal monitor routerA# telnet IP-Address Router-Name routerB# exit | logout
13、routerB# + +再按 routerA# show sessions routerA# Connect-Number routerA# disconnect IP-Address Router-Name routerA# show user routerA# clear line 0 | 1 | 2 | 3 | 4 禁止任何Telnet到本机:router(config)# line vty 0 4 router(config-line)# access-class ACL-Number router(config)# z 设置主机名:router(config)# hostname S
14、et-Hostname 设置用户模式密码:router(config)# line console 0 router(config-line)# login router(config-line)# password Set-Password router(config-line)# z 设置Telnet密码:设置特权模式密码:router(config)# enable password Set-Password router(config)# enable secret Set-Password 给所有密码加密:router(config)# service password-ancryp
15、tion Set-Password-Here router(config)# no service password-ancryption 设置登录Banner:router(config)# banner motd 分隔符 Set-Banner-Information-Here 分隔符 设置接口的描述信息:router(config-if)# description Set-Port-Information-Here CDP的控制:router(config-if)# cdp enable router(config-if)# no cdp enable router(config)# cd
16、p run router(config)# no cdp run Ping的使用:router# ping IP-Address router# ping Protocol ip: Protocol-Type Target IP address:IP-Address Repeat count 5: Datagram size 100:-选择每个包的大小-Timeout in seconds 2:-设置每个包的超时时间-Extended commands n:y Sweep range of sizes n:Tracke的使用:router# trace IP-Address Host-Name
17、 为Cisco 4000路由器指定媒体类型:router(config-if)# media-type 10baset 更改路由器启动顺序:router(config)# boot system flash IOS-FileName router(config)# boot system tftp IOS-FileName TFTP-IP-Address router(config)# boot system rom 修改寄存器数值:router(config)# config-register Value 在ROM监视器中更改寄存器数值: o/r Value 路由器密码的恢复:冷关机,然后再
18、开机并在60秒内按+ 进入ROM监视器模式 o/r 0x2142 或 confreg 0x2142 I n router# copy startup-config running-config router(config)# enable secret New-Password router(config)# config-register 0x2102 router# copy running-config startup-config router# reload 配置名称主机入口:router(config)# ip host Set-Name TCP-Port-Number IP-Ad
19、dress IP-Address 2 定义DNS主机:router(config)# ip name-server Server-Address Server-Address 2 禁用DNS:router(config)# no ip domain-lookup 配置水平分割:router(config-if)# ip split-horizon router(config-if)# no ip split-horizon 配置静态路由:router(config)# ip route IP-Address Subnet-Mask Next-Hop-Address | Local-Out-Po
20、rt Distace -Distance范围:1255,相当于优先权,越小越好。RIP=120;DSPF=110;IGRP=100;EIGRP=90-配置缺省路由:router(config)# ip defoult-network IP-Address router(config)# ip route 0.0.0.0 0.0.0.0 Next-Hop-Address | Local-Out-Port Distace 其它命令:router# show version router# show running-config router# show startup-config router# show flash router# show interface
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1