为Cisco 4000路由器指定媒体类型:
1. router(config-if)# media-type 10baset < -- 使AUI(默认)失效,改为使用RJ-45-- >
2. router(config-if)# ^z
更改路由器启动顺序:
1. router(config)# boot system flash IOS-FileName
2. router(config)# boot system tftp IOS-FileName TFTP-IP-Address
3. router(config)# boot system rom
4. router(config)# ^z
修改寄存器数值:
1. router(config)# config-register Value < --Cisco 出厂默认Value=0x2102,Value范围:0x2100(进入ROM监视器),0x2101(使系统从ROM启动),0x2102~0x210F(使系统从NVRAM启动)。0x1=0x2101,从最小位开始改变-- >
在ROM监视器中更改寄存器数值:
1. > o/r Value
路由器密码的恢复:
冷关机,然后再开机并在60秒内按< Ctrl>+ 进入ROM监视器模式
1. > o/r 0x2142 < --25xx 型路由器-- > 或 > confreg 0x2142 < --16xx 型路由器-- >
2. router > I
3. router > n
4. router > enable
5. router# copy startup-config running-config
6. router# configure terminal
7. router(config)# enable secret New-Password
8. router(config)# config-register 0x2102
9. router(config)# ^z
10. router# copy running-config startup-config
11. router# reload
配置名称-主机入口:
1. router(config)# ip host Set-Name [ TCP-Port-Number ] IP-Address [ IP-Address 2 ]...
2. router(config)# ^z
定义DNS主机:
1. router(config)# ip name-server Server-Address [ Server-Address 2 ]...
2. router(config)# ^z
禁用DNS:
1. router(config)# no ip domain-lookup
2. router(config)# ^z
配置水平分割:
1. router(config-if)# ip split-horizon
2. router(config-if)# no ip split-horizon
3. router(config-if)# ^z
配置静态路由:
1. router(config)# ip route IP-Address Subnet-Mask [ Next-Hop-Address | Local-Out-Port ] [Distace ]
2. < --Distance 范围:1~255,相当于优先权,越小越好。 RIP = 120 ; DSPF = 110 ; IGRP = 100 ; EIGRP = 90 -- >
3. router(config)# ^z
配置缺省路由:
1. router(config)# ip defoult-network IP-Address < -- 动态缺省路由-- >
2. router(config)# ip route 0.0.0.0 0.0.0.0 [ Next-Hop-Address | Local-Out-Port ] [Distace ] < -- 静态缺省路由-- >
3. router(config)# ^z





