Compartilhar via


IPv6 adu (Compact 2013)

3/26/2014

The ipv6 adu (address update) command adds or removes a unicast or anycast address assignment on an interface. If you do not specify an address type, ipv6 adu defaults to unicast.

Syntax

ipv6 adu ifindex/address[/prefix] [lifetime valid[/preferred]] [anycast | unicast]

Options

The following table describes each ipv6 adu option. These options are not case-sensitive.

Option

Option

Description

ifindex

Indicates the interface index number for which to add or remove an address assignment.

address

Indicates the IPv6 address to add or remove from the interface.

prefix

Indicates the IPv6 prefix for the address. If you do not specify the prefix, ipv6 adu uses the default /64 prefix for address. Note that you specify prefix only for unicast addresses; if you specify prefix for an anycast address, ipv6 adu exits with an error message. For anycast, the length will always be 128.

lifetime

valid/preferred

Specifies the lifetime of the address in seconds. You can specify a valid lifetime and a preferred lifetime (for more about valid and preferred lifetimes, see RFC 2462). If you do not specify a lifetime, the lifetime is infinite. If you specify only a valid lifetime, then the preferred lifetime is equal to the valid lifetime. If you specify the valid lifetime and the preferred lifetime, then preferred must be less than or equal to valid. If you specify a lifetime of zero (0) seconds, the address is removed. You can abbreviate lifetime as life.

For anycast addresses, the only valid lifetime values are zero (0) and infinite.

anycast

Specifies that the address to add or remove is an anycast address. If you do not specify the address type, the default is unicast.

unicast

Specifies that the address to add or remove is a unicast address. If you do not specify the address type, the default is unicast.

Example

To add the unicast address 2001:db8:616d:6b72:636d:: to interface index 2, type the following command:

\> ipv6 adu 2/2001:db8:616d:6b72:636d::

To remove the unicast address 2001:db8:616d:6b72:636d:: from interface index 2, type the following command:

\> ipv6 adu 2/2001:db8:616d:6b72:636d:: life 0

See Also

Reference

IPv6