The vpn-instance command binds an IP address pool to a VPN instance.
The undo vpn-instance command restores the default setting.
By default, an IP address pool is not bound to any VPN instance.
Parameter |
Description |
Value |
---|---|---|
vpn-instance-name |
Specifies the name of a VPN instance. |
The value must be an existing VPN instance name. |
Usage Scenario
This command applies to DHCP servers. To apply DHCP services in a VPN instance, you need to run the vpn-instance command to bind the created IP address pool to the VPN instance.
Prerequisites
A VPN instance has been created using the ip vpn-instance command.
Precautions
The VPN instance bound to the IP address pool on the DHCP server must be the same as the VPN instance bound to the DHCP server group on the DHCP relay agent; otherwise, users in the IP address pool cannot go online using this DHCP server group.
# Bind the address pool global1 to the VPN instance huawei.
<HUAWEI> system-view [HUAWEI] ip vpn-instance huawei [HUAWEI-vpn-instance-huawei] ipv4-family [HUAWEI-vpn-instance-huawei-af-ipv4] quit [HUAWEI-vpn-instance-huawei] quit [HUAWEI] ip pool global1 [HUAWEI-ip-pool-global1] vpn-instance huawei