Basic Router Commands E-mail

 

How To Basic Router Operations

To get to User Mode Press ENTER and a password if required.  
To get to Privileged Mode Router> enable
To get back to User Mode Router# disable
To Exit the Router Router> exit or logoff
Break Key

<shift>+<ctrl>+6 ‘x’

To move to the beginning of the command line Ctrl+A
To move to the end of the command line Ctrl+E
To move forward one character Ctrl+F [or right arrow key]
To move back one character Ctrl+B [or left arrow key]
To repeat the previous command Ctrl+P [or up arrow key]
To repeat the most recent (last) command  Ctrl+N [or down arrow key]
To move back one word Esc+B
To move forward one word Esc+F
To erase a word Ctrl+W
To erase a line Ctrl+U
To redisplay a line Ctrl+R
Ends configuration mode and returns to privileged mode Router# Ctrl+Z
To auto complete a command <tab>
To show the command buffer Router> show history
To set the command buffer size Router> terminal history size
To disable advanced editing features Router> terminal no editing
To re-enable advanced editing features Router> terminal editing
   
   

 

Viewing Router Information

 

View IOS version Router# show version
View current configuration file (RAM) Router# show running-config

View saved configuration file (NVRAM) Router#

show startup-config
View IOS version, size of IOS, and free space in FLASH Router# show flash
View CPU utilization Router# show processes cpu

View info about programs in RAM Router#

show processes
Display interfaces on router and their status Router# show interface
Display the ip interfaces on router and their status Router# show ip interface
Display which protocols are configured on the router Router# show protocol

Display ip protocol info Router#

show ip protocol
   

 

Cisco Discovery Protocol

 

View info of neighboring Cisco devices (routers, switches,etc) Router# show cdp neighbors [ show cdp neighbor detail]
View interface info, default encap, cdp update and holdtime freq Router# show cdp interface
View a neighbors details Router# show cdp entry RouterB

View cdp update and holdtime frequency Router#

show cdp

Change update frequency Router#

cdp timer 90 [60 sec is default]
Change how long to hold a CDP entry of a neighbor for Router# cdp holdtime 240
Turn off CDP on an interface Router(config-if)# no cdp enable

CDP is enabled globally [CDP is enabled by default] Router(config)#

cdp run
   

 

Managing Configuration Files

 

Run the initial configuration dialog Router# setup
Reboot the router and reload the startup config from NVRAM Router# reload
Enter global configuration mode Router# config terminal
Copy configuration file in RAM to NVRAM Router# copy running-config startup-config
Copy configuration file in NVRAM to RAM Router# copy startup-config running-config

Erase the configuration file in NVRAM [run initial config dialog] Router#

erase startup-config
Copy startup config file from TFTP to NVRAM Router# copy tftp startup-config
Copy startup config file from NVRAM to TFTP Router# copy startup-config tftp
Copy startup config file from TFTP to RAM Router# copy tftp running-config
Copy running config file from RAM to TFTP Router# copy running-config tftp
Backup IOS to file server Router# copy flash tftp
Upgrade the IOS from the file server Router# copy tftp flash

Tell router which IOS file in Flash to boot from Router(config)#

 boot system flash (ios_filename)

Tell router which IOS to request from the TFTP server (fallback) Router(config)#

boot system tftp (ios_filename) tftp_ip_address

Tell router to boot from IOS in ROM Router(config)#  boot rom

 

Router Password Commands

 

Set the enable secret password [to enter privileged mode] Router(config)#

enable secret Rimmer
Set the enable password Router(config)# enable Rimmer
Set the password for Telnet Router(config)# line vty 0 4 ;0 4 specifies num of telnet sessions
Router(config-line)# login
Router(config-line)# password Holly
Set the console port password Router(config)# line con 0
Router(config-line)# login
Router(config-line)# password Holly
Set the auxiliary password Router(config)# line aux 0

Router(config-line)#

login
Router(config-line)# password Holly

Passwords can be encrypted Routerconfig)#

service password-encryption
To de-encrypt the passwords Routerconfig)# no service password-encryption

 

Router Identification Commands

 

Message of the day Router(config)#  banner motd # You are in… #
Give the router a hostname Router(config)# hostname RouterC
   

 

Router Auto-Install Commands

 

Router broadcasts to get its own TCP/IP address using BOOTP
Router broadcasts again to locate the file server IP addr using TFTP

Router attempts TFTP to get the IP-to-Hostname mapping file

 

If above fails, fallback to 8.3 DOS compatible filename conven

 

Network-confg

 
Cisconet.cfg  

Router attempts TFTP to get its specific Hostname running config

 

If above fails, fallback to 8.3 DOS compatibile filename conven

 

{Hostname}-confg

 

{Hostname}.cfg

 

Note: {Hostname}is determined by parsing network-confg file and checking all Hostnames listed against own IP address

 

Configuring a Serial Interface

Is it DCE or DTE? Router# show controller serial 1

Enter sub interface mode Router(config)#

interface serial 1
Set clock rate on DCE Router(config-if)# clock rate 64000 [or clockrate 64000]
Set the bandwidth Router(config-if)# bandwidth 64

Enable the interface Router(config-if)#

no shutdown

Check interface status Router#

show interface serial 1
Router# show ip interface brief
   
Router Commands IT World Zone
Website Promotion Service Directory Submission Services
Gaming Zone Router Commands
 
Next >

 

 


AYC World News

Copyright © 2007-2009 AYCZone All Rights Reserved. Powered by AYCommunication

HomeSitemapWeb DirectoryContact usSubmit Articles
Chewable tablets: If you are taking the chewable tablets, chew them well before swallowing with water. Controlling high blood sugar helps prevent kidney damage, blindness, nerve problems, loss of limbs, and sexual function problems. This drug works by blocking the action of certain natural chemicals order cialis your treatment may be a sign of lactic acidosis. However, seek immediate medical attention if you notice any symptoms of a serious allergic reaction, including: order cialis your symptoms do not improve within several days. Remember that your doctor has prescribed this medication because he or she has judged that the benefit to you is greater than the risk of side effects. Your medication dosage may need to be increased. Cimetidine is a nonprescription drug that is order cialis clearly needed during pregnancy. Before using this medication, tell your doctor or pharmacist of all prescription and nonprescription herbal products you may use, especially of: anti diabetic order cialis or feet, decreased sexual ability, reversible hair loss, mental mood changes, aching swollen joints, butterfly shaped rash on the nose and cheeks, trouble breathing, cough, unexplained or sudden weight gain, increased thirst, increased urination.