ip host

This command manages host-address maps.

Syntax

ip host host address "description"

no ip host host

no ip host *

Parameters

host
Specifies the hostname.
address
Specifies the IP address of the host.
description
Specifies the descriptive summary for the entry. Enclose the summary in double quotation marks.
*
Specifies all hosts.

Guidelines

The ip host command manages host-address maps.

Use the no ip host command to remove a host-address map or all host-address maps.

This command is equivalent to the static-host command in DNS Settings mode.

Examples

  • Map host loki-v4 to address 10.10.10.168 with a description of IPv4 address for loki.example.com.
    # ip host loki-v4 10.10.10.168
  • Map host loki-v6 to address FEDC:BA98:7654:3210:C:BA98:7654:3210 with a description of IPv6 address for loki.example.com.
    # ip host loki-v6 FEDC:BA98:7654:3210:C:BA98:7654:3210
  • Delete the map for host loki-v4.
    # no ip host loki-v4
  • Delete all maps.
    # no ip host *