H3C Technologies H3C S7500E Series Switches User Manual

Page 132

Advertising
background image

13-13

Follow these steps to configure an IPv6 unicast address:

To do...

Use the command...

Remarks

Enter system view

system-view

Enter interface view

interface interface-type

interface-number

Manually assign an

IPv6 address

ipv6 address { ipv6-address

prefix-length |

ipv6-address/prefix-length }

Adopt the EUI-64

format to form an

IPv6 address

ipv6 address

ipv6-address/prefix-length eui-64

Configure an

IPv6

aggregatable

global unicast

address or

site-local

address

Adopt stateless

address

autoconfiguration

ipv6 address auto

One of the three commands

is required.

By default, no site-local

address or aggregatable

global unicast address is

configured for an interface.

Automatically

generate a link-local

address for the

interface

ipv6 address auto link-local

Configure an

IPv6 link-local

address

Manually assign a

link-local address for

the interface

ipv6 address ipv6-address

link-local

Optional

By default, after an IPv6

site-local address or

aggregatable global unicast

address is configured for an

interface, a link-local address

will be generated

automatically.

z

An interface can have only one link-local address, but can have multiple global unicast addresses

with different prefixes and site-local addresses.

z

After an IPv6 site-local address or aggregatable global unicast address is configured for an

interface, a link-local address is generated automatically. The automatically generated link-local

address is the same as the one generated by using the ipv6 address auto link-local command. If

a link-local address is manually assigned to an interface, this manual link-local address takes

effect. If the manually assigned link-local address is removed, the automatically generated

link-local address takes effect.

z

Manual assignment takes precedence over automatic generation. That is, if you first adopt

automatic generation and then manual assignment, the manually assigned link-local address will

overwrite the automatically generated one. If you first adopt manual assignment and then

automatic generation, the automatically generated link-local address will not take effect and the

link-local address of an interface is still the manually assigned one. If you delete the manually

assigned address, the automatically generated link-local address is validated.

Advertising