Tuesday, November 9, 2010

Router Commands


Routing:
Routing is a process of moving the data (packets) through an inter network. Routing performs the two basic tasks.
·         Define the paths for a packet and then forward the packets on the basis of defined paths.
·         Routing can also be defined as the communication between two or more logically and physical networks and packet transfer is brought by a router.
Router Commands Overview:
We can learn about
·         Router commands
·         Configurations
·         Privileged mode commands
·         Routing protocols
·         Cisco labs
·         Network configurations
Keyboard Shortcuts
CTRL-N
-show next command
CTRL-P
-show previous command
SHIFT-CTRL-6
-Break

Configuring the Router
sh running-config
-details the running configuration file (RAM)
sh startup-config
-displays the configuration stored in NVRAM
setup
-Will start the automatic setup; the same as when you first boot the router
config t
-use to execute configuration commands from the terminal
config mem
-executes configuration commands stored in NVRAM; copies startup-config to running-config
config net
-used to retrieve configuration info from a TFTP server
copy running-config startup-config
-copies saved config in running config (RAM) to NVRAM or "write memory" for IOS under ver.11
copy startup
-copies from non-volatile (NVRAM) to current running config (RAM)
boot system flash <put file filename here>
-tells router which IOS file in flash to boot from
boot system tftp
-tells router which IOS file on the tftp server to boot from
boot system rom
-tell router to boot from ROM at next boot
copy flash tftp
-Copies flash to tftp server
copy tftp flash
-Restores flash from tftp server
copy run tftp
-Copies the current running-config to tftp server
copy tftp run
-Restores the running-config from tftp server

General Commands
no shutdown
-enables the interface
reload
-restarts the router
sh ver
-Cisco IOS version, uptime of router, how the router started, where system was loaded from, the interfaces the POST found, and the configuration register
sh clock
-shows date and time on router
sh history
-shows the history of your commands
sh debug
-shows all debugging that is currently enabled
no debug all
-turns off all debugging
sh users
-shows users connected to router
sh protocols
-shows which protocols are configured
banner motd # Your customized message here #
-Set/change banner
hostname <give router name>
-use to configure the hostname of the router
clear counters
-clear interface counters

                To be continued..

No comments:

Post a Comment