Verifying the configuration – H3C Technologies H3C S12500 Series Switches User Manual

Page 192

Advertising
background image

178

# Configure the IPv6 address of interface VLAN-interface 2.

[Switch] interface vlan-interface 2

[Switch-Vlan-interface2] ipv6 address 1::1/64

[Switch-Vlan-interface2] quit

# Create address pool 1.

[Router] ipv6 dhcp pool 1

# In address pool 1, bind IPv6 address 1::A/124 with the client whose DUID is

FF00010006498D3322000102030405, and bind 1::B/124 with the client whose DUID is
00030001CA0006A40000. Set their preferred lifetime to one day and valid lifetime to three days.

[Switch-dhcp6-pool-1] static-bind address 1::A/124 duid FF00010006498D3322000102030405

preferred-lifetime 86400 valid-lifetime 259200

[Switch-dhcp6-pool-1] static-bind address 1::B/124 duid 00030001CA0006A40000

preferred-lifetime 86400 valid-lifetime 259200

[Switch-dhcp6-pool-1] quit

# Enable the DHCPv6 server on interface VLAN-interface 2, apply address pool 1 to the interface,
configure the address pool to support desired address assignment and rapid address assignment, and

set the precedence to the highest.

[Switch] interface vlan-interface 2

[Switch-Vlan-interface2] ipv6 dhcp server apply pool 1 allow-hint preference 255

rapid-commit

Verifying the configuration

# Display DHCPv6 server configuration information on VLAN-interface 2.

[Switch-Vlan-interface2] display ipv6 dhcp server Vlan-interface 2

Using pool: 1

Preference value: 255

Allow-hint: Enabled

Rapid-commit: Enabled

# Display information about address pool 1.

[Switch-Vlan-interface2] display ipv6 dhcp pool 1

Pool: 1

Static bindings:

DUID: FF00010006498D3322000102030405

IAID: Not configured

Address: 1::A/124

Preferred lifetime 86400, valid lifetime 2592000

DUID: 00030001CA0006A40000

IAID: Not configured

Address: 1::B/124

Preferred lifetime 86400, valid lifetime 2592000

# After the clients have obtained IPv6 addresses, display IPv6 address binding information on the
DHCPv6 server.

[Switch-Vlan-interface2] display ipv6 dhcp server ip-in-use address 1::A

Pool: 1

Client: FE80::A8FF:A1E0:FE19:0

Type: Static(C)

DUID: FF00010006498D3322000102030405

Advertising