|
Command |
Command Description |
Command Syntax |
3.1.1 |
configure terminal |
This command is used to switch from enable mode to one of the
configuration modes. |
configure terminal |
3.1.2 |
hostname |
This command is used to give the router a unique name. |
hostname hostname |
|
router rip |
To configure the Routing Information Protocol (RIP) routing process,
use the
router rip
global configuration command. |
router rip |
|
interface serial 0 |
Use the interface global configuration command to configure an
interface type and enter interface configuration mode. |
interface type number |
3.1.3 |
line console 0 |
To identify a specific line for configuration and begin the line
configuration command collection mode, use the line global
configuration command. Entering the line command with the optional
line type (aux, console , tty , or vty ) designates the line number as
a relative line number. Relative line numbers always begin numbering
at zero and define the type of line. |
line [aux | console | tty |
vty ] line-number [ending-line-number] |
|
password |
To specify a password on a line, use the
password
line configuration command. Use the no form of this command to remove
the password. |
password password |
|
login |
To enable password checking at login, use the
login
line configuration
command. |
login [local | tacacs] |
|
line vty 0 4 |
To identify a specific line for configuration and begin the line
configuration command collection mode, use the line global
configuration command. Entering the line command with the optional
line type (aux , console , tty , or vty ) designates the line number
as a relative line number. Relative line numbers always begin
numbering at zero and define the type of line. |
line [aux | console | tty |
vty ] line-number [ending-line-number] |
|
show startup-config |
This command allows you to view the configuration file "startup-config"
in the NVRAM. |
show startup-config |
|
service password-encryption |
The
service password-encryption
command applies a weak encryption to
all unencrypted passwords. |
service password-encryption |
3.1.4 |
show ? |
The command
show ?
provides a list of available show commands. |
show ? |
|
show interfaces |
Use the
show interfaces
EXEC command to display statistics for all
interfaces configured on the router or access server. |
show interfaces {type number} |
|
show interfaces serial 0/1 |
Use the
show interfaces
EXEC command to display statistics for all
interfaces configured on the router or access server. |
show interfaces {type number} |
|
show controllers serial |
Use the
show controllers
serial privileged EXEC command to display
information that is specific to the interface hardware. |
show controllers serial
[slot/port] |
|
show hosts |
To display the default domain name, the style of name lookup service,
a list of name server hosts, and the cached list of host names and
addresses, use the show hosts EXEC command. |
show hosts |
|
show clock |
Shows the time set in the router. |
show clock |
|
show users |
Displays all users who are connected to the router. |
show users |
|
show history |
Displays a history of commands that have been entered. |
show history |
|
show arp |
Displays the arp table of the router. |
show arp |
|
show protocols |
Use the
show protocols
EXEC command to display the configured
protocols. |
show protocols |
3.1.5 |
interface serial 0/0 |
Use the interface global configuration command to configure an
interface type and enter interface configuration mode. |
interface type slot/port |
|
ip address <ip address> <netmask> |
To set IP addresses for an interface, use the ip address interface
configuration command. The secondary keyword designates an IP address
as an auxiliary address. |
ip address
ip-address mask
[secondary] |
|
clock rate 56000 |
Use the clock rate (or clockrate) interface configuration command to
configure the clock rate for the hardware connections on serial
interfaces such as network interface modules (NIMs) and interface
processors to an acceptable bit rate. |
clock rate
speed-in-
bits-per-second
|
|
no shutdown |
To disable an interface, use the
shutdown
configuration command. To restart a disabled interface, use the no
form of this command. This should be done on all interfaces in use as
they are shutdown by default. |
no shutdown |
3.1.6 |
erase startup-config |
To erase a file system, use the erase EXEC command. The erase nvram:
command replaces the write erase command and the
erase startup-config
command. |
erase {filesystem:| start-up config} |
|
copy running-config startup-config |
To copy any file from a source to a destination, use the copy EXEC
command. Use the /erase option to erase the destination file system
before copying. |
copy {flash | ftp | nvram | running-config | startup-config | system
| tftp} {flash | ftp | nvram | running-config | startup-config |
system | tftp} |
3.1.7 |
shutdown |
To disable an interface, use the
shutdown
configuration command. To
restart a disabled interface, use the no form of this command. This
should be done on all interfaces in use as they are shutdown by
default. |
shutdown |
|
interface fastethernet 0/0 |
Use the interface global configuration command to configure an
interface type and enter interface configuration mode. |
interface type slot/port
|
3.2.4 |
description |
To add a description to an interface configuration, use the
description interface configuration command. |
description string
|
3.2.5 |
banner motd # # |
To specify a message-of-the-day (MOTD) banner, use the
banner motd
global configuration command. |
banner motd d message d |
|
clock timezone |
To set the time zone for display purposes, use the
clock timezone
global
configuration command. To set the time to Coordinated Universal
Time (UTC), use the no form of this command. |
clock timezone zone hours
[minutes] |
3.2.6 |
ip host |
To define a static host name-to-address mapping in the host cache, use
the
ip host
global configuration command. To remove the
name-to-address mapping, use the no form of this command. |
ip host name-of-host
[tcp-port-number] ip-address [ip-address2 ...
address8] |
3.2.7 |
show hosts |
To display the default domain name, the style of name lookup service,
a list of name server hosts, and the cached list of host names and
addresses, use the
show hosts
EXEC command. |
show hosts |
3.2.9 |
copy running-config tftp |
To copy any file from a source to a destination, use the
copy
EXEC
command. Use the /erase option to erase the destination file system
before copying. |
copy {flash | ftp | nvram | running-config | startup-config | system
| tftp} {flash | ftp | nvram | running-config | startup-config |
system | tftp} |
|
copy tftp running-config |
To copy any file from a source to a destination, use the
copy
EXEC
command. Use the /erase option to erase the destination file system
before copying. |
copy {flash | ftp | nvram | running-config | startup-config | system
| tftp} {flash | ftp | nvram | running-config | startup-config |
system | tftp} |