Verifying the configuration – H3C Technologies H3C SecPath F1000-E User Manual

Page 742

Advertising
background image

717

[SecPath-GigabitEthernet0/1] ipv6 address 1::1/64

[SecPath-GigabitEthernet0/1] quit

# Create and configure prefix pool 1.

[SecPath] ipv6 dhcp prefix-pool 1 prefix 2001:0410::/32 assign-len 48

# Create address pool 1.

[SecPath] ipv6 dhcp pool 1

# Apply prefix pool 1 to address pool 1, and set the preferred lifetime to one day, the valid lifetime to
three days.

[SecPath-ipv6-dhcp-pool-1] prefix-pool 1 preferred-lifetime 86400 valid-lifetime 259200

# Configure static prefix 2001:0410:0201::/48 in address pool 1, and set the client DUID as
00030001CA0006A40000, the preferred lifetime to one day, and the valid lifetime to three days.

[SecPath-ipv6-dhcp-pool-1] static-bind prefix 2001:0410:0201::/48 duid

00030001CA0006A40000 preferred-lifetime 86400 valid-lifetime 259200

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

[SecPath-ipv6-dhcp-pool-1] dns-server 2:2::3

# Configure the domain name as aaa.com.

[SecPath-ipv6-dhcp-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.

[SecPath-ipv6-dhcp-pool-1] sip-server address 2:2::4

[SecPath-ipv6-dhcp-pool-1] sip-server domain-name bbb.com

[SecPath-ipv6-dhcp-pool-1] quit

# Apply address pool 1 to GigabitEthernet 0/1, configure the address pool to support the desired prefix
assignment and rapid prefix assignment, and set the precedence to the highest.

[SecPath] interface GigabitEthernet 0/1

[SecPath-GigabitEthernet 0/1] ipv6 dhcp server apply pool 1 allow-hint preference 255

rapid-commit

Verifying the configuration

# After the preceding configuration is complete, display the DHCPv6 server configuration information on
GigabitEthernet 0/1.

[SecPath-GigabitEthernet 0/1] display ipv6 dhcp server interface GigabitEthernet 0/1

Using pool: 1

Preference value: 255

Allow-hint: Enabled

Rapid-commit: Enabled

# Display the information of address pool 1.

[SecPath-GigabitEthernet0/1] display ipv6 dhcp pool 1

DHCPv6 pool: 1

Static bindings:

DUID: 00030001CA0006A40000

IAID: A1A1A1A1

Prefix: 2001:410:201::/48

preferred lifetime 86400, valid lifetime 2592000

Prefix pool: 1

Advertising