迈普路由器重置密码

时间:2024-04-17 08:10:58

router>
00:13:43: %SYS-5-LOGIN_OK:  (tty0) is entered by client () OK
router>en
password:
Monitor version 1.15 is Booting (press ctrl+c to enter monitor mode) ....

Welcome to Monitor v1.15

Monitor:>dir

Listing Directory /flash:
-rwxrwxrwx  1 0       0             3097 Jan  1  1980 history
drwxrwxrwH  1 0       0             2048 Jan  1  1980 mpssh/
drwxrwxrwx  1 0       0             2048 Jan  1  1980 snmp/
-rwxrwxrwx  1 0       0           102281 Jan  1  1980 logging
-rwxrwxrwx  1 0       0               12 Jan  1  1980 PKISTORE
-rwxrwxrwx  1 0       0             2261 Jan  1  1980 startup
-rwxrwxrwx  1 0       0          9677189 Dec 22  2011 rp8-i-6.2.86.bin
-rwxrwxrwx  1 0       0                4 Jan  1  1980 secret

Monitor:>del startup

WARNING:
The Data of file \'/flash/startup\' will be lost! if OS is deleted,the system will

hangup!

Please confirm to continue?(Y/N)y

Deleting... OK!

Monitor:>

Monitor version 1.15 is Booting (press ctrl+c to enter monitor mode) .....
Now start loading system and application programs,
Loading system and application programs, please wait for a while...

Use boot parameter 0:
Loading file /flash/rp8-i-6.2.86.bin ...
Uncompressing MPROS image

####################################################################################

####################################################################################

####################################################################################

####################################################################################

##################################################################### OK
Starting at 0x200000...

router>
00:01:22: %SYS-5-LOGIN_OK:  (tty0) is entered by client () OK
router>en
router#conf t
router(config)#
00:02:02: %SYS-5-CONFIG_IN:  Enter configuration commands, one per line.  End with

CNTL+Z.
router(config)#enable password 123456
router(config)#interface fastethernet 0
router(config-if-fastethernet0)#ip address <外网地址> <掩码>
router(config-if-fastethernet0)#exit
router(config)#end
00:05:10: %SYS-5-CONFIG_OUT: Configured from console by user  on console ()
router#wr
Are you sure to overwrite /flash/startup (Yes|No)?y
Building Configuration...done
Write to startup file ... OK
router#exit
router>en
password:
router#
router#conf t
router(config)#
00:09:16: %SYS-5-CONFIG_IN:  Enter configuration commands, one per line.  End with

CNTL+Z.
router(config)#ip access-list extended haixun
router(config-ext-nacl)# 10 permit ip any any
router(config-ext-nacl)# 20 remark acl@允许所有内部主机地址进行地址转换!
router(config-ext-nacl)# exit
router(config)#interface fastethernet0
router(config-if-fastethernet0)# ip nat outside
router(config-if-fastethernet0)# exit
router(config)#
router(config)#interface fastethernet1
router(config-if-fastethernet1)# ip address <路由地址> <掩码>
router(config-if-fastethernet1)# ip nat inside
router(config-if-fastethernet1)# exit
router(config)#ip nat inside source list haixun interface fastethernet0 overload
router(config)#ip route 0.0.0.0 0.0.0.0 118.112.183.129
router(config)#ip route 192.168.1.0 255.255.255.240 192.168.100.250
router(config)#ip route 192.168.1.16 255.255.255.240 192.168.100.250
router(config)#ip route 192.168.1.32 255.255.255.240 192.168.100.250
router(config)#ip route 192.168.1.48 255.255.255.240 192.168.100.250
router(config)#ip route 192.168.1.64 255.255.255.240 192.168.100.250
router(config)#ip route 192.168.1.96 255.255.255.240 192.168.100.250
router(config)#ip route 192.168.1.112 255.255.255.240 192.168.100.250
router(config)#ip route 192.168.1.128 255.255.255.240 192.168.100.250
router(config)#ip route 192.168.1.144 255.255.255.240 192.168.100.250
router(config)#ip route 192.168.1.160 255.255.255.224 192.168.100.250
router(config)#ip route 192.168.1.192 255.255.255.248 192.168.100.250
router(config)#ip route 192.168.1.200 255.255.255.248 192.168.100.250
router(config)#ip route 192.168.3.0 255.255.255.0 192.168.100.250
router(config)#ip dhcp pool dhcphaixun
router(dhcp-config)# range 192.168.1.2 192.168.1.254 255.255.255.0
router(dhcp-config)# default-router 192.168.1.1
router(dhcp-config)# dns-server 61.139.2.69
router(dhcp-config)# exit
router(config)#end
00:13:13: %SYS-5-CONFIG_OUT: Configured from console by user  on console ()
router#show run