During initial setup, you can configure a host name for your device (i.e. router or switch). This is the name that appears in the EXEC prompt. Unlike the device itself, interfaces do not have specific names that change the prompt. However, you can add a description to the configuration file that helps you identify the interface.
Use . . . |
To . . . |
Router(config)#hostname <name> |
Change the host name of the router |
Router(config)#int serial 0/0 |
Go to interface configuration mode for the first serial interface. You can use abbreviations for the interface type, such as:
|
Router(config-if)#description <description text> |
Set a description for a specific interface |
Examples
The following set of commands sets the hostname of the router to ATL1:
Router#config t
Router(config)#hostname ATL1
ATL1(config)#
The following set of commands adds a description of ATL to NYC for the first serial interface on the router:
Router(config)#int ser 0
Router(config-if)#description ATL to NYC
Note: To undo any configuration change, use the same command preceded by the no keyword followed by the command. For example, to remove a description from an interface, use the following command:
Router(config-if)#no description
Notice that in many cases you can leave off additional parameters when using the no command.
ไม่มีความเห็น