ipv6 host

Syntax

ipv6 host hostname ipv6-address

undo ipv6 host hostname [ ipv6-address ]

View

System view

Default level

2: System level

Parameters

hostname: Specifies the host name, a string of up to 255 characters. The character string can contain letters, numbers, underscores (_), hyphens (-), or dots (.) and must contain at least one letter.

ipv6-address: Specifies the IPv6 address.

Description

Use ipv6 host to configure a mapping between host name and IPv6 address.

Use undo ipv6 host to remove a mapping between host name and IPv6 address.

No mappings are created by default.

Each host name can correspond to only one IPv6 address. The IPv6 address you last assign to the host name will overwrite the previous one if there is any.

Related commands: display ipv6 host.

Examples

# Configure the mapping between a host name and an IPv6 address.

<Sysname> system-view
[Sysname] ipv6 host aaa 2001::1