Configuration considerations, Configuration procedure – H3C Technologies H3C S12500 Series Switches User Manual

Page 189

Advertising
background image

175

Configuration considerations

Configure the DHCPv6 server as follows:

Enable IPv6 and DHCPv6 server.

Create a prefix pool containing prefix 2001:0410::/32 with the length of the assigned prefix being
48, so that the server assigns clients the prefixes ranging 2001:0410::/48 to
2001:0410:FFFF::/48.

Create an address pool. Configure a static prefix in the address pool and have the prefix pool
referenced by the address pool. Configure other configuration parameters.

Apply the address pool to the interface through which the server is connected to the clients.

Enable the DHCPv6 server on the interface that connects to the clients and apply the address pool
to the interface.

Figure 71 Network diagram

Configuration procedure

# Enable IPv6 and DHCPv6 server.

<Switch> system-view

[Switch] ipv6

[Switch] ipv6 dhcp server enable

# Configure the IPv6 address of VLAN-interface 2.

[Switch] interface vlan-interface 2

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

[Switch-Vlan-interface2] quit

# Create and configure prefix pool 1.

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

# Create address pool 1.

[Switch] 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.

[Switch-dhcp6-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.

[Switch-dhcp6-pool-1] static-bind prefix 2001:0410:0201::/48 duid 00030001CA0006A40000

preferred-lifetime 86400 valid-lifetime 259200

Advertising