List of Router Configuration Commands: Router (User Exec Mode) To
List of Router Configuration Commands: Router (User Exec Mode) To
Router> enable
Router# (Privileged exec mode)
Router# disable
Router>
Router>enable
Router#config terminal
Router(config)# (Global Configuration Mode)
Router(config)# exit
Router#exit (returned to Privileged exec Mode, putting exit one more time to
return one step back)
Router>
Router(config)#end
Router>
Router(config)#router rip
Router(config-router)#
Router(config)#line console 0
Router(config-line)#login
Router(config-line)#password <password> (note: if login command is omitted, the
router will not prompt for a password even though a password is set)
Telnet Password:
Telnet password secures remote access to the router using a telnet application. By
default, a password is required to establish a telnet connection to a router on
the virtual teletype (vty)
lines.
Router(config)#line vty 0 4
Router (config-line)#login
Router(config-line)#password <password>
Aux Password:
An aux password controls user-mode access to the auxilliary port. The auxilliary
port can be used to connect a modem to the router. Modems are commonly used to
provide out of band access to a Cisco router.
Router(config)#line aux 0
Router(config-line)#login
Router(config-line)#password <password>
Enable Password:
The enable password command allows you to set a password to restrict access to
privileged exec mode. The enable password is stored in the configuration file as a
plain text. If you require the enable password to be encrypted you should use the
enable secret command instead.
Enable Secret:
To avoid the displaying of passwords within the configuration files, enable secret
command is used.
For example, to configure a router to display a message, �You have accessed the
router�,
Router(config)#banner motd $ You have accessed the router.$ (note: $dollar symbol
is the delimiting character)
Show Commands:
Show commands provide information that helps troubleshoot the configuration or
performance of the router.
Show startup-config- Displays the saved configuration of the router stored in the
NVRAM. The startup configuration is copied into RAM each time the router boots.
Show version � Displays the configuration of the system hardware, the ios version,
the system image filename and the current configuration register setting.
Configuring Interfaces:
Router(config)#int serial 0
Router(config-if)#
Router(config)#int ethernet 0
Router(config-if)#
Enabling interface:
Router(config-if)#no shutdown
disabling interface:
Router(config-if)#shutdown
By default all interfaces on a cisco router are shutdown, to enable interface you
must issue the no shutdown command.
Data circuit-teminating equipment (DCE) and data terminal equipment (DTE) are the
modes where serial interface operate. On a live network, the DCE interface,
provided by the service provider, is typically a connection to the channel service
unit/data service unit (CSU/DSU) and is responsible for providing clocking
information. In the lab environment, you might connect a DCE cable to a router to
simulate a carrier line. Cisco routers are DTE devices by default; therefore, if a
DCE cable is attached to the router, you need to provide clocking on the DTE
interface of the router by issuing the following clock rate command with the
required speed:
Router(config)#int s1
Router(config-if)#ip address 192.168.1.1 255.255.255.0
Router(config-if)#clock rate 64000
Router(config-if)#no shutdown
Router(config-if)#exit
Interface Description:
Router(config)#int ethernet 0
Router(config-if)# description Skydome Lan Communication Building
Router(config-if)# exit
To view the cable connected to the interface show controller command in the
privileged exec mode is used.
Bandwidth Command:
Router(config)#int s1
Router(config-if)#bandwidth 64
IP Address Command
Router(config)#int S1
Router(config-if)#ip address 192.168.1.12 255.255.255.0
File Systems
Flash � stores the IOS image
TFTP- stores the IOS image and the configuration file
NVRAM � Stores the startup configuration file
RAM � stores the running IOS image, running configuration, and routing table.
Copy Command:
copy <source> <destination>
Deleting a file:
R1(config)#int Fa0/0
R1(config-if)#no shutdown
R1(config-if)#int Fa0/0.10
R1(config-if)#encapsulation dot1q 10
R1(config-subif)#ip address 172.18.10.1 255. 255.255.0
R1(config-subif)#exit
R1(config-if)#int Fa0/0.20
R1(config-if)#encapsulation dot1q 20
R1(config-subif)#ip address 172.18.20.1 255. 255.255.0
R1(config-subif)#exit
R1(config-if)#int Fa0/0.30
R1(config-if)#encapsulation dot1q 30
R1(config-subif)#ip address 172.18.30.1 255. 255.255.0
R1(config-subif)#exit
R1(config-if)#int Fa0/0.40
R1(config-if)#encapsulation dot1q 40
R1(config-subif)#ip address 172.18.40.1 255. 255.255.0
R1(config-subif)#exit
R1(config-if)#int Fa0/0.50
R1(config-if)#encapsulation dot1q 50
R1(config-subif)#ip address 172.18.50.1 255. 255.255.0
R1(config-subif)#exit
R1(config-if)#int Fa0/0.60
R1(config-if)#encapsulation dot1q 60
R1(config-subif)#ip address 172.18.60.1 255. 255.255.0
R1(config-subif)#exit
R1(config-if)#int Fa0/0.70
R1(config-if)#encapsulation dot1q 70
R1(config-subif)#ip address 172.18.70.1 255. 255.255.0
R1(config-subif)#end
R1#copy running-config startup-config
<PIXTEL_MMI_EBOOK_2005>3##########################################################
#</PIXTEL_MMI_EBOOK_2005>