Eui-64 format, Manual configuration, Configuring an ipv6 link-local address – H3C Technologies H3C S12500 Series Switches User Manual

Page 156

Advertising
background image

142

You can configure multiple IPv6 global unicast addresses with different prefixes on an interface.

A manually configured global unicast address takes precedence over an automatically generated
one. If a global unicast address has been automatically generated on an interface when you
manually configure another one with the same address prefix, the latter overwrites the previous. The

overwritten automatic global unicast address will not be restored even if the manual one is removed.

Instead, a new global unicast address will be automatically generated based on the address prefix

information in the RA message that the interface receives at the next time.

EUI-64 format

To configure an interface to generate an EUI-64 IPv6 address:

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Enter interface view.

interface interface-type
interface-number

N/A

3.

Configure the interface to

generate an IPv6 address
in EUI-64 format.

ipv6 address ipv6-address |
prefix-length eui-64

By default, no IPv6 global unicast
address is configured on an interface.

Manual configuration

To specify an IPv6 address manually for an interface:

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Enter interface view.

interface interface-type
interface-number

N/A

3.

Configure an IPv6 address
manually.

ipv6 address { ipv6-address
prefix-length
| ipv6-address |

prefix-length }

By default, no IPv6 global unicast
address is configured on an interface.

Configuring an IPv6 link-local address

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

Automatic generation—The switch automatically generates a link-local address for an interface
according to the link-local address prefix (FE80::/10) and the link-layer address of the interface.

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

An interface can have only one link-local address. To avoid link-local address conflicts, use the automatic

generation method.
Manual assignment takes precedence over automatic generation.

If you first use automatic generation and then manual assignment, the manually assigned link-local
address will overwrite the automatically generated one.

If you first use manual assignment and then automatic generation, the automatically generated
link-local address will not take effect and the link-local address is still the manually assigned one. If

you delete the manually assigned address, the automatically generated link-local address is

validated.

Advertising