Nov 27, 2009

Useful Router commands and configuration

Router (Router commands) working with two main ports, configuration and communication port. We manage all router setting using configuration port. Here are some useful router commands to manage router configuration.
Set Line Console Password
router>enable
router#configure terminal
router(config)#line console 0
router(config-line)#login
router(config-line)#password submask
router(config-line)#exit
router(config)#exit
Remove Console password
router>enable
router#configure terminal
router(config)#line console 0
router(config-line)#no login
router(config-line)#no password
router(config-line)#exit
router(config)#exit
Remove Secret Password
router>enable
router#configure terminal
router(config)#no enable secret
router(config)#exit
How to check Configuration Register Value
router>enable
router#show version
How to Administratively shutdown Router's Interface
router>enable
router#configure terminal
router(config)#int s0/0
router(config-if)#shutdown
To Enable Router's Serial Interface
router#configure terminal
router(config)#int s0/0
router(config-if)#no shutdown
To check Serial Interface
router>enable
router(config)#show interfaces s0/0
To set Clock rate on Router's Serial Interface
router>enable
router#configure terminal
router(config)#interface s0/0
router(config-if)#clock rate 64000
 DTE/DCE Status
router>enable
router#show controllers s0/0
To Save Running Configuratoin
router#copy running-config startup-config
 IOS uploading from Router to TFTP Server
router#copy flash: tftp
 Backup Startup Configuration to TFTP
router#copy startup-config tftp
To Save Running Configuration
router#write memory
Deletion of NVRAM Configuration
router#write erase
To check NVRAM Configuration
router#show staratup-config

0 comments

Post a Comment