display ip host

Syntax

display ip host [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display ip host to display the host names and corresponding IPv4 addresses in the static domain name resolution table.

Examples

# Display the host names and corresponding IPv4 addresses in the static domain name resolution table.

<Sysname> display ip host
HostAgeFlagsAddress
My0static1.1.1.1
Aa0static2.2.2.4

Table 22: Command output

Field

Description

Host

Host name.

Age

Time to live. 0 means that the static mapping will never age out.

You can only manually remove the static mappings between host names and IPv4 addresses.

Flags

Mapping type.

Static represents static IPv4 domain name resolution.

Address

Host IPv4 address.