Pages

Thursday, September 21, 2017

Reset CISCO Router Password

## Reset CISCO Router Password ##

** Connect console cable directly with router
and open Hyper Terminal or Tera Term  or Putty or any others

** Press two times "break" button to enter rommon mode

Alt + b == for TeraTerm software to break

Ctrl + Break == for Hyper terminal

Ctrl + Break == for terminal

rommon 1>

** change config register from 0x2102 to 0x2142 to bypass passowrd

rommon 1> confreg 0x2142

** type reset to restart router or poweroff-on manually
rommon 2> reset

** type "no" or Ctrl+C to skip setup procedure
and finally press enter for login

router>
router>enable
router#
router# configure memory
router# configure terminal
router(config)#
router(config)# enable secret newpassowrd
router(config)#
router(config)#config-register 0x2102
router(config)# exit
router#
router# write  or copy running-config startup-config

** if you want to erase all previous configureations then follow bellow

router#
router# write erase
Erasing the nvram filesystem will remove all configuration files! Continue? [confirm]
<Press Enter key>
router#
Router#reload
Do you want to reload the internal AP ? [yes/no]: yes
Proceed with reload? [confirm]

...
Would you like to enter the initial configuration dialog? [yes|no] no <Press Enter key>
–OR–
Do you want to save the configuration of the AP? [yes|no] no <Press Enter key>

Wednesday, September 20, 2017

Juniper FULL Backup Restore



Taking backup file to ftp server (ftp.tayabkhan.com) from Juniper Router:

Login to router as root

root@mx-10-Router> start shell
%
% df -h
% cd /config
% ls
% ftp ftp.tayabkhan.com
Connected to ftp.tayabkhan.com.
220 (vsFTPd 2.2.2)
Name (ftp.tayabkhan.com: root): ftpusername
331 Please specify the password.
Password: ftp-password
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> bin
200 Switching to Binary mode.
ftp> put juniper.conf.gz juniper.conf.gz-today
local: juniper.conf.gz remote: juniper.conf.gz-today
200 PORT command successful. Consider using PASV.
150 Ok to send data.
100% |********************************|  4811       00:00 ETA 226 Transfer complete.
4811 bytes sent in 0.00 seconds (2.20 MB/s)

% ls

*** Goto FTP server and find backup config file juniper.conf.gz-today

----------------------------------------------
## Restore configuration file to Juniper Router

** root Login to desired router to restore
root@mx-10-Router> start shell
%
% df -h
% cd /var/tmp
% ls
% ftp ftp.tayabkhan.com
Connected to ftp.tayabkhan.com.
220 (vsFTPd 2.2.2)
Name (ftp.tayabkhan.com: root): ftpusername
331 Please specify the password.
Password: ftp-password
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> bin
200 Switching to Binary mode.
ftp> lcd /var/tmp
Local directory now /var/tmp
ftp> get juniper.conf.gz-today
local: juniper.conf.gz-today remote: juniper.conf.gz-today
200 PORT command successful. Consider using PASV.
150 Opening BINARY mode data connection for juniper.conf.gz-today (4811 bytes).
100% |*************************************************|  4811       00:00 ETA
226 Transfer complete.
4811 bytes received in 0.00 seconds (4.09 MB/s)

ftp> exit
% cd /var/tmp
% ls
% mv 
 mv juniper.conf.gz-today /config/juniper.conf.gz
% cli
tayab@MX-10-Router> 
tayab@MX-10-Router>configure
tayab@MX-10-Router# 
** To reset all configuration (if needed) tayab@MX-10-Router# load factory-default
tayab@MX-10-Router# load replace juniper.conf.gz
tayab@MX-10-Router# commit 
*** Hard reboot needed for smooth service






Sunday, September 10, 2017

WHM cPanel multiple ip send email and multiple php version for separate website



**** WHM allow/use seperate ip for seperate domain to send email
Search -> Add a New IP Address
192.168.10.2 -> submit
Search -> Show/Edit Reserved IPs
can see added ip 192.168.10.2

Search ->  Exim Configuration Manager
   -> Basic Editor ->
Search -> mailips
ON--- Reference /etc/mailips for outgoing SMTP connections [?]

vi /etc/mailips
tayabkhan.com: 192.168.10.2

restart exim service



**** WHM multiple PHP version for multible website
Search ->   MultiPHP Manager

Select domain and select php version and apply.