H3C Technologies H3C S3100 Series Switches User Manual

Page 917

Advertising
background image

1-14

z

Manual configuration: IPv6 site-local addresses or global unicast addresses are configured

manually.

IPv6 link-local addresses can be acquired in either of the following ways:

z

Automatic generation: The device automatically generates a link-local address for an interface

according to the link-local address prefix (FE80::/64) and the link-layer address of the interface.

z

Manual assignment: IPv6 link-local addresses can be assigned manually.

Table 1-5 Configure an IPv6 unicast address

To do...

Use the command...

Remarks

Enter system view

system-view

Enter VLAN interface view

interface interface-type
interface-number

Manually assign an
IPv6 address

ipv6 address { ipv6-address
prefix-length
|
ipv6-address/prefix-length }

Configure an IPv6
global unicast
address or site-local
address

Adopt the EUI-64
format to form an
IPv6 address

ipv6 address
ipv6-address/prefix-length eui-64

Use either command

By default, no site-local
address or global
unicast address is
configured for an
interface.

Note that the prefix
specified by the
prefix-length argument
in an EUI-64 address
cannot exceed 64 bits
in length.

Automatically
generate a link-local
address

ipv6 address auto link-local

Configure an IPv6
link-local address

Manually assign a
link-local address for
an interface.

ipv6 address ipv6-address
link-local

Optional

By default, after an
IPv6 site-local address
or global unicast
address is configured
for an interface, a
link-local address will
be generated
automatically.

Advertising