48
Static DNS
Configuration
Commands
ip host
DNS C
ONFIGURATION
Syntax
ip host hostname ip-address
undo ip host hostname [ ip-address ]
View
System view
Parameter
hostname: Name of the host. It is a character string that consists of 1 to 20
characters, including letters, numbers, "_" or ",", and it must contain at least one
letter.
ip-address: Host IP address (the corresponding IP address to the host name) in
dotted decimal notation.
Description
Use the ip host command to configure the host name and the host IP address.
Use the undo ip host command to cancel the host name and the host IP address.
By default, Host name and corresponding IP address are null.
Related command: display ip host.
Example
# Set swtich1's IP address to be 10.110.0.1.
[SW8800] ip host switch1 10.110.0.1
C
OMMANDS