Hostname and Description Command List


Hostname and Description Command List

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
Router(config)#int s0/0
Router(config)#int Ethernet 0
Router(config)#int ether0
Router(config)#int FastEthernet 0/1
Router(config)#int Fa0/1
Router(config)#int Gigabit 0/1
Router(config)#int gi0/1

Go to interface configuration mode for the first serial interface. You can use abbreviations for the interface type, such as:

  • fa = FastEthernet
  • gi = Gigabit
  • s = Serial
  • e = Ethernet

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.

หมายเลขบันทึก: 316285เขียนเมื่อ 26 พฤศจิกายน 2009 14:15 น. ()แก้ไขเมื่อ 16 พฤษภาคม 2012 16:08 น. ()สัญญาอนุญาต: ครีเอทีฟคอมมอนส์แบบ แสดงที่มา-ไม่ใช้เพื่อการค้า-ไม่ดัดแปลงจำนวนที่อ่านจำนวนที่อ่าน:


ความเห็น (0)

ไม่มีความเห็น

พบปัญหาการใช้งานกรุณาแจ้ง LINE ID @gotoknow
ClassStart
ระบบจัดการการเรียนการสอนผ่านอินเทอร์เน็ต
ทั้งเว็บทั้งแอปใช้งานฟรี
ClassStart Books
โครงการหนังสือจากคลาสสตาร์ท