beautypg.com

Configuration procedure, Verifying the configuration – H3C Technologies H3C S5560 Series Switches User Manual

Page 209

background image

194

Configuration procedure

You must configure the DHCPv6 server first before configuring the DHCPv6 client. For information about

configuring DHCPv6 server, see "

Configuring the DHCPv6 server

."

# Configure an IPv6 address for VLAN-interface 2 that connects to the DHCPv6 server.

system-view

[Switch] interface vlan-interface 2

[Switch-Vlan-interface2] ipv6 address 1::2/48

# Configure VLAN-interface 2 to use DHCPv6 to obtain an IPv6 prefix and other configuration
parameters. Configure the interface to support DHCPv6 rapid prefix assignment. Enable the DHCPv6

client to assign an ID to the obtained IPv6 prefix.

[Switch-Vlan-interface2] ipv6 dhcp client pd 1 rapid-commit

[Switch-Vlan-interface2] quit

Verifying the configuration

# Display the DHCPv6 client information. The output shows that the client has obtained an IPv6 prefix
and other configuration parameters from the DHCPv6 server.

[Switch] display ipv6 dhcp client

Vlan-interface2:

Type: Stateful client requesting prefix

State: OPEN

IAID: 0xf0019

Client DUID: 00030001000fe2ff0000

Preferred server:

Reachable via address: FE80::200:5EFF:FE0A:2303

Server DUID: 00030001000fe20a0a00

Prefix: 12:34::/32

Preferred lifetime 90 sec, valid lifetime 90 sec

T1 45 sec, T2 72 sec

Will expire on Feb 4 2013 at 15:37:20 (80 seconds left)

DNS server addresses:

2000::FF

Domain name:

example.com

SIP server addresses:

2:2::4

SIP server domain names:

bbb.com

# Display information about the dynamic IPv6 prefix. The output shows that the client has obtained an
IPv6 prefix.

[Switch] display ipv6 prefix 1

Number: 1

Type : Dynamic

Prefix: 12:34::/32

Preferred lifetime 90 sec, valid lifetime 90 sec

This manual is related to the following products: