Router Commands

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

User EXEC Mode

*Router> enable Enter Privileged EXEC mode

Privileged EXEC Mode


*Router# Router# Router# Router# copy running-config startupconfig copy startup-config runningconfig erase startup-configuration *ping IP Copy the active configuration to NVRAM. Copy the configuration in NVRAM to RAM. Erase the configuration located in NVRAM. Ping to that address. !!!! echo replied . Timeout Uuuu unreachable Trace each hop to that address. Display statistics for all interfaces on a device. Show the time set in the router. Display currently loaded IOS version, hardware, and device information. Display the ARP table of the device. Display the saved configuration located in NVRAM. Display the contents of the currently running configuration file. Display IP statistics for interface(s) on a router. . . Switch- Flash .

Router# Router# Router# Router# Router# Router# Router# Router# Router# Router# Router# Router#

traceroute ip_address show interfaces show clock show version show arp *show startup-config *show running-config show ip interface Show ip interface brief *Show interfaces Show mac address table Show flash

Router# Router# Router# Router#

Show version Copy running-config start-up -config configure terminal Clock set 09:59:47 1 september 2009

. Enter terminal configuration mode

Global Configuration Mode


*Router(config )# *Router(config )# *Router(config )# *Router(config )# *Router(config )# *Router(config )# *Router(config )# *Router(config )# *Router(config )# *Router(config )# *Router(config )# *Router(config )# hostname CSMSrouter enable password hw02d009 enable secret delhii service password-encryption banner motd# zarlal # *line console 0 line vty 0 4 interface serial 0/0/0 Ip route 192.168.0.0 255.255.255.0 10.0.0.3 Assign a host name to device. Set an unencrypted enable password. Set a strongly encrypted enable password. Encrypt display of all passwords except secret. Sets a message-of-theday banner. Enter console line configuration mode. Enter virtual terminal (Telnet) line configuration mode. Enter interface configuration mode.

Exit End

Line Configuration Mode


*Router(config_ line) *login Enable password checking at login.

*Router(config_ *password gurvaljin65 Set line password. line) *Router(config_ Exit line) *Router(config_ End line) *Router(config) *line console 0 *Router(config_ *password gurvaljin65 line) *Router(config_ *login line) *Router(config_ Exit line) *Router(config) line vty 0 4 *Router(config_ *password nutsug89 line) *Router(config_ *login line) *Router(config_ Exit line)

Interface Configuration Mode


*Router(config_ if) *Router(config_ if) *Router(config_ if) *Router(config_ if) *Router(config_ if) *Router(config_ if) *Router(config_ if) *Router(config_ if) *ip address 192.168.0.56 255.255.255.0 *description bagshiinsuljee *clock rate value *no shutdown shutdown Exit End Set interface IP address and subnet mask. Set interface description. Set clock rate for DCE device. Set interface to up. Administratively set interface to down

You might also like