Information Technology Reference
In-Depth Information
Table 1-2
Basic Router Configuration Command Syntax
Configuration Task
Command Syntax
Naming the router
Router(config)# hostname name
Setting passwords
Router(config)# enable secret password
Router(config)# line console 0
Router(config-line)# password password
Router(config-line)# login
Router(config)# line vty 0 4
Router(config-line)# password password
Router(config-line)# login
Configuring a message-of-the-day banner
Router(config)# banner motd # message #
Configuring an interface
Router(config)# interface type number
Router(config-if)# ip address address mask
Router(config-if)# description description
Router(config-if)# no shutdown
Saving changes on a router
Router# copy running-config startup-config
Examining the output of show commands
Router# show running-config
Router# show ip route
Router# show ip interface brief
Router# show interfaces
Applying a Basic Configuration
The following exercise will walk you through a basic configuration.
First, enter global configuration mode.
Router# config t
Next, apply a unique host name to the router. Use R1 for this example.
Router(config)# hostname R1
Now, configure the password that is to be used to enter privileged EXEC mode. Use class as the pass-
word.
Router(config)# enable secret class
Next, configure the console and Telnet lines with the password cisco. The console commands follow:
R1(config)# line console 0
R1(config-line)# password cisco
R1(config-line)# login
The Telnet lines use similar commands:
R1(config)# line vty 0 4
R1(config-line)# password cisco
R1(config-line)# login
Search WWH ::




Custom Search