Cisco Cisco Packet Data Interworking Function (PDIF)
Context Configuration Mode Commands I-M
ip localhost ▀
Command Line Interface Reference, StarOS Release 18 ▄
2559
ip localhost
Configures or removes the static local host logical name to IP address mapping for the current context.
Product
All
Privilege
Security Administrator, Administrator
Mode
Exec > Global Configuration > Context Configuration
configure > context context_name
Entering the above command sequence results in the following prompt:
[context_name]host_name(config-ctx)#
Syntax
[ no ] ip localhost name ip_address
no
Specifies that the static mapping must be removed.
name
Specifies the logical host name (DNS) for the local machine on which the current context resides.
name
is an
alphanumeric string of 1 through 1023 characters formatted to be a valid IP host name.
ip_address
Specifies the IP address for the static mapping.
ip_address
must be expressed in IPv4 dotted-decimal or
IPv6 colon-separated-hexadecimal notation.
Usage
Avoid excessive DNS lookups across the network by statically mapping the logical host name to the local
host’s context.
host’s context.
Example
ip localhost localHostName 10.2.3.4
no ip localhost localHostName 10.2.3.4