beautypg.com

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

Page 190

background image

176

# Configure the DNS server address as 2:2::3.

[Switch-dhcp6-pool-1] dns-server 2:2::3

# Configure the domain name as aaa.com.

[Switch-dhcp6-pool-1] domain-name aaa.com

# Configure the SIP server address as 2:2::4, and the domain name of the SIP server as bbb.com.

[Switch-dhcp6-pool-1] sip-server address 2:2::4

[Switch-dhcp6-pool-1] sip-server domain-name bbb.com

[Switch-dhcp6-pool-1] quit

# Enable the DHCPv6 server on VLAN-interface 2, apply address pool 1 to the interface, configure the
address pool to support the desired prefix assignment and rapid prefix 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 the DHCPv6 server configuration information on VLAN-interface 2.

[Switch-Vlan-interface2] display ipv6 dhcp server interface 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: 00030001CA0006A40000

IAID: 0xA1A1A1A1

Prefix: 2001:410:201::/48

Preferred lifetime 86400, valid lifetime 2592000

Prefix pool: 1

Preferred lifetime 86400, valid lifetime 2592000

DNS server addresses:

2:2::3

Domain name:

aaa.com

SIP server addresses:

2:2::4

SIP server domain names:

bbb.com

# Display information about prefix pool 1.

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

Prefix: 2001:410::/32

Assigned length: 48

Total prefix number: 65536

Available: 65535

In-use: 0