To this point, you have configured only a host name on R1 and the Catalyst 1900 switch. The other lab routers have the router prompt of Router>. In the lab, you will give each router a host name as a means of identifying the router.
To begin, configure a host name on each router. Host names are useful in that they identify the router and help you know which router you are working on. Because R1 is already configured with a hostname of R1, you will reverse Telnet to the remaining lab routers, configure a host name, and then save the configuration. In addition, remember that the terminal server has an established reverse Telnet session to each lab router. Thus, you will reverse Telnet to each lab router by the connection number. To configure the host name, enter global configuration mode and use the following command:
Router(config)# hostname { name }
After you have saved the configuration, remember to issue the escape sequence Ctrl-Shift-6, x to get back to the terminal server and proceed to the next router. Example 6-1 demonstrates how to configure the host name for R2 through R6 and save the configuration.
Termserver #2 [Resuming connection 2 to r2 ... ] Router> enable Router# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)# hostname R2 R2(config)# exit R2# %SYS-5-CONFIG_I: Configured from console by console R2# copy running-config startup-config Building configuration... [OK] R2# Ctrl-Shift-6, x _______________________________________________________________________ Termserver# 3 [Resuming connection 3 to r3 ... ] Router> enable Router# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)# hostname R3 R3(config)# exit R3# %SYS-5-CONFIG_I: Configured from console by console R3# copy running-config startup-config Building configuration... [OK] R3# _______________________________________________________________________ Termserver# 4 [Resuming connection 4 to r4 ... ] Router> enable Router# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)# hostname R4 R4(config)# exit R4# %SYS-5-CONFIG_I: Configured from console by console R4# copy running-config startup-config Building configuration... [OK] R4# _______________________________________________________________________ Termserver# 5 [Resuming connection 5 to r5 ... ] Router> enable Router# configure terminal Enter configuration commands, one per line. End with CNTL/Z Router(config)# hostname R5 R5(config)# exit R5# %SYS-5-CONFIG_I: Configured from console by console R5# copy running-config startup-config Building configuration... [OK] R5# _______________________________________________________________________ Termserver# 6 [Resuming connection 6 to r6 ... ] Router> enable Router# configure terminal Enter configuration commands, one per line. End with CNTL/Z Router(config)# hostname R6 R6(config)# exit R6# %SYS-5-CONFIG_I: Configured from console by console R6# copy running-config startup-config Building configuration... [OK] R6# Termserver#
Now each router has been assigned its respective host name.
Top |