恢复cisco router密码
1. 重启,按住break,进入rom moniter模式 2. rommon 1>confreg 0×142 3. 重启,进入特区模式后copy start run 4. 重设密码
1. 重启,按住break,进入rom moniter模式 2. rommon 1>confreg 0×142 3. 重启,进入特区模式后copy start run 4. 重设密码
要在路由器上做NAT,并且配置DHCP的命令 //配置DHCP ip dhcp excluded-address 192.168.1.1 192.168.1.100 ! ip dhcp pool office network 192.168.1.0 255.255.255.0 default-router 192.168.1.1 dns-server 8.8.8.8 8.8.4.4 //配置NAT //外部地址 int fa0/0 ip add 1.1.1.2 255.255.255.248 ip nat outside //内部地址 int fa0/1 ip add 192.168.1.1 255.255.255.0 ip nat inside //路由 ip route 0.0.0.0 0.0.0.0 1.1.1.1 //NAT转换 ip nat pool Net 1.1.1.2 1.1.1.7 netmask [...]
刚买的Cisco路由器或者交换机的日期或者时间可能不对,需要修改日期和时间 有两种方法,一种是直接修改日期时间,一种是跟NTP(Network Time Protocol)服务器同步 1.直接修改日期时间,在特权模式下,不用进config t,输入 clock set 16:16:16 20 April 2010 2.跟NTP服务器同步,可以点击这里查找离自己服务器较近的NTP服务器地址,这样延迟比较小,相对来说比较精确,中国的服务器点击这里,然后再配置模式下输入 clock timezone GMT 8 //在哪个时区就填哪个 ntp server 211.233.84.186 ntp server 122.226.192.4 这里可以多配置多个NTP服务器地址 然后show clock看看日期和时间应该都正确了 还有一种是适合局域网内路由器交换机时间同步的配置 服务器端: conf t ntp autentication-key 1 md5 ccc 10 //NTP认证,1是Key number,ccc是密码,10是密码加密类型 ntp authenticate //开启NTP认证 ntp trusted-key 1 //NTP信任的Key number ntp source vlan1 //设置ntp时钟原的端口或IP地址 ntp update-calendar //允许NTP定期更新calendar ntp [...]
最近调试路由器,原来的配置乱七八糟的,一条条删除太麻烦了,恢复出厂设置然后自己在配置比较省事 1.首先配置寄存器值为0×2102 router#configure terminal router(config)#config-register 0×2102 router(config)#end 如果输入show version, 将会显示(will be 0×2102 at next reload) 2.删除当前的start-up的设置,write erase 3.重启,reload,问要不要存当前系统配置,选no 重启后就是什么配置都不带的路由器了
近期评论