| Step 1 |
configuration terminal
Example:
switch# configuration terminal
switch(config)#
|
Enters the configuration terminal mode.
|
| Step 2 |
vrf context managment
Example:
switch(config)# vrf context management
switch(config)#
|
Specifies a configurable VRF name.
|
| Step 3 |
ip host name address1 [address2... address6]
Example:
switch# ip host cisco-rtp 192.0.2.1
switch(config)#
|
Defines up to six static host name-to-address mappings in the host name cache.
|
| Step 4 |
ip domain name name [use-vrf vrf-name]
Example:
switch(config)# ip domain-name myserver.com
switch(config)#
|
(Optional) Defines the default domain name server that Cisco NX-OS uses to complete unqualified host names. You can optionally define a VRF that Cisco NX-OS uses to resolve this domain name server if it cannot be resolved in the VRF that you configured this domain name under.
Cisco NX-OS appends the default domain name to any host name that does not contain a complete domain name before starting a domain-name lookup.
|
| Step 5 |
ip domain-list name [use-vrf vrf-name]
Example:
switch(config)# ip domain-list mycompany.com
switch(config)#
|
(Optional) Defines additional domain name servers that Cisco NX-OS can use to complete unqualified host names. You can optionally define a VRF that Cisco NX-OS uses to resolve this domain name server if it cannot be resolved in the VRF that you configured this domain name under.
Cisco NX-OS uses each entry in the domain list to append that domain name to any host name that does not contain a complete domain name before starting a domain-name lookup. Cisco NX-OS continues this for each entry in the domain list until it finds a match.
|
| Step 6 | ip name-server server-address1
[server-address2... server-address6] [use-vrf vrf-name]
Example:
switch(config)# ip name-server 192.0.2.22
|
(Optional) Defines up to six name servers. The address can be either an IPv4 address or an IPv6 address.
You can optionally define a VRF that Cisco NX-OS uses to reach this name server if it cannot be reached in the VRF that you configured this name server under.
|
| Step 7 | ip domain-lookup
Example:
switch(config)# ip domain-lookup
|
(Optional) Enables DNS-based address translation. Enabled by default.
|
| Step 8 | show hosts
Example:
switch(config)# show hosts
|
(Optional) Displays information about DNS.
|
| Step 9 |
exit
Example:
switch(config)# exit
switch#
|
Exits configuration mode and returns to EXEC mode.
|
| Step 10 |
copy running-config startup-config
Example:
switch# copy running-config startup-config
switch#
|
(Optional) Copies the running configuration to the startup configuration.
|