< Home

Web: Example for Configuring a DHCPv6 Relay

This section provides an example for configuring a DHCPv6 client to obtain an IPv6 address from a DHCPv6 server through a DHCPv6 relay.

Networking Requirements

As shown in Figure 1, according to the network planning, the IPv6 address assigned to the DHCPv6 client is not on the same network segment as the IPv6 address of the DHCPv6 server. A DHCPv6 relay needs to be deployed between the DHCPv6 client and server so that the client can obtain an IPv6 address and other network configurations from the server.

Figure 1 Networking diagram for configuring a DHCPv6 relay

Procedure

  1. Set IP addresses for interfaces on the FW and assign the interfaces to security zones.

    1. Choose Network > Interface.
    2. Click of GE0/0/1 and set required parameters.

      Zone

      trust

      IPv6

      IPv6

      Select Enable Protocol.

      IPv6 Address

      fc00:2::1/64

    3. Click OK.
    4. Configure GE0/0/2 based on the preceding step.

      Zone

      dmz

      IPv6

      IPv6

      Select Enable Protocol.

      IPv6 Address

      fc00:3::1/64

  2. Configure the FW as a DHCPv6 relay.

    1. Choose Network > DHCP Server > Service.
    2. Click Add and set parameters as follows:

    3. Click OK.

  3. Configure security policies to permit traffic as desired.

    1. Choose Policy > Security Policy > Security Policy.

    2. Click Add to configure a security policy to permit DHCP packet exchanges.

      Name

      dhcpv6

      Source Zone

      trust,local

      Destination Zone

      local,dmz

      Action

      Allow

    3. Click OK.

Verification

Check whether the DHCPv6 client has obtained an IPv6 address. If no, check the configurations.

Configuration Scripts

#
ipv6
#
interface GigabitEthernet0/0/1
 ipv6 enable
 ipv6 address FC00:2::1/64
 dhcpv6 relay destination FC00:3::2
#
interface GigabitEthernet0/0/2
 ipv6 enable
 ipv6 address FC00:3::1/64
#
firewall zone trust
 set priority 85
 add interface GigabitEthernet0/0/1
#
firewall zone dmz 
 set priority 50 
 add interface GigabitEthernet0/0/2
#
security-policy
  rule name dhcpv6
    source-zone trust
    source-zone local
    destination-zone local
    destination-zone dmz
    action permit
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >