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:
The client's VPN information stored in authentication modules, such as IPoE.
The VPN information of the DHCP server's interface that receives DHCP packets from the client.
The VPN information from authentication modules takes priority over the VPN information of the receiving interface.
To apply a DHCP address pool to a VPN instance:
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Create a DHCP address pool and enter its view. | dhcp server ip-pool pool-name | By default, no DHCP address pool exists. |
3. Apply the address pool to a VPN instance. | vpn-instance vpn-instance-name | By default, no VPN instance is applied to the address pool. |