Chapter 4
Configuring the Router
•
•
•
•
•
•
•
Configuring the Router Hostname
The hostname is used in CLI prompts and default configuration filenames. If you do not configure the
router hostname, the router uses the factory-assigned default hostname "Router."
Do not expect capitalization and lower casing to be preserved in the hostname. Uppercase and lowercase
characters are treated as identical by many Internet software applications. It may seem appropriate to
capitalize a name as you would ordinarily do, but conventions dictate that computer names appear in all
lowercase characters. For more information, see the RFC 1178, Choosing a Name for Your Computer.
The name must also follow the rules for Advanced Research Projects Agency Network (ARPANET)
hostnames. They must start with a letter, end with a letter or digit, and have as interior characters only
letters, digits, and hyphens. Names must be 63 characters or fewer. For more information, see the RFC
1035, Domain Names—Implementation and Specification.
SUMMARY STEPS
1.
2.
3.
4.
5.
DETAILED STEPS
Command or Action
Step 1
enable
Example:
Router> enable
Step 2
configure terminal
Example:
Router# configure terminal
Step 3
hostname name
Example:
Router(config)# hostname myrouter
OL-18712-01
Specifying a Default Route or Gateway of Last Resort, page 4-15
Configuring IP Routing and IP Protocols, page 4-15
Configuring Virtual Terminal Lines for Remote Console Access, page 4-18
Configuring the Auxiliary Line, page 4-19
Verifying Network Connectivity, page 4-21
Saving Your Router Configuration, page 4-22
Saving Backup Copies of Configuration and System Image, page 4-22
enable
configure terminal
hostname name
Verify that the router prompt displays your new hostname.
end
Performing the Initial Configuration on the Router
(Required)
(Optional)
(Required)
(Required)
Purpose
Enables privileged EXEC mode.
Enter your password if prompted.
•
Enters global configuration mode.
Specifies or modifies the hostname for the network server.
Cisco 2900 and 3900 Series Hardware Installation
(Required)
(Required)
(Optional)
4-9