![Alied Telesis GS970M/10 Скачать руководство пользователя страница 199](http://html1.mh-extra.com/html/alied-telesis/gs970m-10/gs970m-10_command-reference-manual_2896773199.webp)
C613-50163-01 Rev C
Command Reference for GS970M Series
199
AlliedWare Plus™ Operating System - Version 5.4.7-0.x
S
YSTEM
C
ONFIGURATION
AND
M
ONITORING
C
OMMANDS
HOSTNAME
hostname
Overview
This command sets the name applied to the device as shown at the prompt. The
hostname is:
•
displayed in the output of the
•
displayed in the CLI prompt so you know which device you are configuring
•
stored in the MIB object sysName
Use the
no
variant of this command to revert the hostname setting to its default.
For devices that are not part of an AMF network, the default is “awplus”.
Syntax
hostname
<hostname
>
no hostname [
<hostname
>]
Default
awplus
Mode
Global Configuration
Usage
Within an AMF network, any device without a user-defined hostname will
automatically be assigned a name based on its MAC address.
To efficiently manage your network using AMF, we strongly advise that you devise
a naming convention for your network devices and apply an appropriate
hostname to each device.
The name must also follow the rules for ARPANET host names. The name must start
with a letter, end with a letter or digit, and use only letters, digits, and hyphens.
Refer to RFC 1035.
Example
To set the system name to
HQ-Sales
, use the command:
awplus#
configure terminal
awplus(config)#
hostname HQ-Sales
This changes the prompt to:
HQ-Sales(config)#
To revert to the default hostname
awplus
, use the command:
HQ-Sales(config)#
no hostname
This changes the prompt to:
awplus(config)#
Parameter
Description
<hostname>
Specifies the name given to a specific device. This is also referred to as
the Node name in AMF output screens.