Ip/Ipv6 Map-Hostname - Mellanox Technologies Mellanox SX1018 Command Reference Manual

Ethernet managed blade switch
Hide thumbs Also See for Mellanox SX1018:
Table of Contents

Advertisement

ip/ipv6 map-hostname

{ip |ipv6} map-hostname
no {ip | ipv6} map-hostname
Maps between the currently-configured hostname and the loopback address
127.0.0.1.
The no form of the command clears the mapping.
Syntax Description
N/A
Default
IPv4 mapping is enabled by default
IPv6 mapping is disabled by default
Configuration Mode
Config
History
3.1.0000
Role
admin
Example
switch (config) # ip map-hostname
switch (config) # # show hosts
Hostname: switch
Name server: 9.9.9.9 (configured)
Name server: 10.211.0.121 (dynamic)
Name server: 172.30.0.126 (dynamic)
Name server: 10.4.0.135 (dynamic)
Domain name: mydomain.com (configured)
Domain name: lab.mtl.com (dynamic)
Domain name: vmlab.mtl.com (dynamic)
Domain name: yok.mtl.com (dynamic)
Domain name: mtl.com (dynamic)
IP 1.1.1.1 maps to hostname p
IP 127.0.0.1 maps to hostname localhost
IP 2.2.2.2 maps to hostname my-host
IPv6 2001::8f9 maps to hostname my-ipv6-host
IPv6 ::1 maps to hostname localhost6
Automatically map hostname to loopback address: yes
Automatically map hostname to IPv6 loopback address: yes
switch (config) #
switch (config) # ping my-host-name
PING localhost (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.078 ms
64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.052 ms
64 bytes from localhost (127.0.0.1): icmp_seq=3 ttl=64 time=0.058 ms
Related Commands
show hosts
Note
If no mapping is configured, a mapping between the hostname and the IPv4 loopback
address 127.0.0.1 will be added
The no form of the command maps the hostname to the IPv6 loopback address if there is no
statically configured mapping from the hostname to an IPv6 address (disabled by default)
Static host mappings are preferred over DNS results. As a result, with this option set, you
will not be able to look up your hostname on your configured DNS server; but without it
set, some problems may arise if your hostname cannot be looked up in DNS.
Mellanox® Technologies Confidential
Rev 1.6.9
Mellanox Technologies
48

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sx1018hp

Table of Contents