Applying a DHCP address pool to a VPN instance

About applying a DHCP address pool to a VPN instance

If a DHCP address pool is applied to a VPN instance, the DHCP server assigns IP addresses in this address pool to clients in the VPN instance. Addresses in this address pool will not be assigned to clients on the public network.

The DHCP server can obtain the VPN instance to which a DHCP client belongs from the following information:

If both VPN instances can be obtained, the VPN information from authentication modules takes priority over the VPN information of the receiving interface.

An MCE acting as the DHCP server can assign IP addresses not only to clients on public networks, but also to clients on private networks. The IP address ranges of public and private networks or those of private networks on the DHCP server cannot overlap. For more information about MCE, see MPLS Configuration Guide.

Procedure

  1. Enter system view.

    system-view

  2. Enter DHCP address pool view.

    dhcp server ip-pool pool-name

  3. Apply the address pool to a VPN instance.

    vpn-instance vpn-instance-name

    By default, the address pool is not applied to any VPN instance.