hostname
hostname <hostname> Sets a static system hostname. | ||
Syntax Description | hostname | String |
Default | Default hostname | |
Configuration Mode | config | |
History | 1.5 | |
Example | ufmapl [ mgmt-sa ] (config) # hostname ufmapl-hostname ufmapl-hostname [ mgmt-sa ] (config) # | |
Related Commands | show hosts | |
Notes | "." is not permitted as a valid character of the hostname. |
ip name-server
ip name-server <IPv4/IPv6 address> Sets the static name server. | ||
Syntax Description | N/A | |
Default | N/A | |
Configuration Mode | config | |
History | 1.5 | |
Example | ufmapl [ mgmt-sa ] (config) # ip name-server 9.9.9.9 | |
Related Commands | show hosts | |
Notes |
ip domain-list
ip domain-list <domain_name> Sets the static domain name. | ||
Syntax Description | domain_name | String |
Default | N/A | |
Configuration Mode | config | |
History | 1.5 | |
Example | ufmapl [ mgmt-sa ] (config) # ip domain-list mydomain2.com | |
Related Commands | show hosts | |
Notes |
|
{ip | ipv6} host
{ip | ipv6} host <hostname> <ip-address> Sets the static domain name. | ||
Syntax Description | hostname | String |
ip-address | IPv4 or IPv6 address | |
Default | N/A | |
Configuration Mode | config | |
History | 1.5 | |
Example | ufmapl [ mgmt-sa ] (config) # ip host test-host 1.2.3.4 ufmapl [ mgmt-sa ] (config) # ipv6 host my-ipv6-host 2001::8f9 | |
Related Commands | show hosts | |
Notes |
{ip | ipv6} map-hostname
{ip | ipv6} map-hostname Maps between the currently-configured hostname and the loopback address 127.0.0.1. | ||
Syntax Description | N/A | |
Default | IPv4 mapping is enabled by default IPv6 mapping is disabled by default | |
Configuration Mode | config | |
History | 1.5 | |
Example | ufmapl [ mgmt-sa ] (config) # ip map-hostname | |
Related Commands | show hosts | |
Notes |
|
show hosts
show hosts Displays hostname, DNS configuration, and static host mappings. | ||
Syntax Description | N/A | |
Default | N/A | |
Configuration Mode | Any configuration mode | |
History | 1.5 | |
Example | ufmapl [ mgmt-sa ] (config) # show hosts Hostname: ufmapl Name servers: 9.9.9.9 configured 10.211.0.121 (DHCP on eth0) Domain names: mydomain2.com configured lab.mydomain.com dynamic (DHCP on eth0) vmlab.mydomain.com dynamic (DHCP on eth0) tok.mydomain.com dynamic (DHCP on eth0) mydomain.com dynamic (DHCP on eth0) Static IPv4 host mappings: 10.7.144.133 --> ufmapl1 127.0.0.1 --> localhost Static IPv6 host mappings: ::1 --> localhost6 fcfc:fcfc:209:36:a6bf:1ff:fe00:9c20 --> ufmapl1 Automatically map hostname to loopback address: yes Automatically map hostname to IPv6 loopback address: no ufmapl [ mgmt-sa ] (config) # | |
Related Commands | show hosts | |
Notes |