HP VPN Firewall Appliances Access Control Command Reference

Table Of Contents
41
Related commands
host name
host name
Use host name to add a host name to a host address object.
Use undo host name to remove a host name from a host address object.
Use undo host to restore the default.
Syntax
host name host-name
undo host [ name ]
Default
A host address object has no host IP address or host name members.
Views
Host address object view
Default command level
2: System level
Parameters
name host-name: Specifies a host name, a case-insensitive string of 1 to 60 characters.
Usage guidelines
A host address object can comprise host IP addresses or a host name, but only one type of them. To add
a host name to a host address object with a host IP address member, for example, you must remove the
host IP address member first.
A host address object can comprise only one host name. If you execute the host name command multiple
times, the most recent configuration takes effect.
Examples
# Add host name pc3 to host address object hosttestname on the default VD.
<Sysname> system-view
[Sysname] object network host hosttestname
[Sysname-object-network-hosttestname] host name pc3
# Add host name pc3 to host address object hosttestname on VD virdev.
<Sysname> system-view
[Sysname] switchto vd virdev
[Sysname-vsys-virdev] object network host hosttestname
[Sysname-vsys-virdev-object-network-hosttestname] host name pc3
Related commands
host address
mac-address
Use mac-address to add a MAC address to a MAC address object.