vpn-instance (IP address pool view)

Function

The vpn-instance command configures a VPN instance for an address pool.

The undo vpn-instance command deletes the configuration.

By default, no VPN instance is configured for an address pool.

Format

vpn-instance vpn-instance-name

undo vpn-instance

Parameters

Parameter Description Value
vpn-instance-name

Specifies the name of the VPN instance to which a specified address pool belongs.

The value is a string of 1 to 31 case-sensitive characters, spaces not supported. In addition, the VPN instance name must not be _public_. When double quotation marks are used around the string, spaces are allowed in the string.

Views

IP address pool view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
dhcp write

Usage Guidelines

Usage Scenario

VPNs are specifically constructed for interconnections within an office or between offices. To configure a VPN instance for an IP address pool, run the vpn-instance command.

Prerequisites

A VPN instance has been created using the ip vpn-instance command.

Precautions

A DHCP client can go online through the DHCP server only when the VPN instance bound to the DHCP server address pool is the same as that bound to the DHCP relay server group.

Example

# Configure a VPN instance named vpn1 for an address pool named huawei.
<HUAWEI> system-view
[~HUAWEI] ip vpn-instance vpn1
[*HUAWEI-vpn-instance-vpn1] ipv4-family
[*HUAWEI-vpn-instance-vpn1-af-ipv4] quit
[*HUAWEI-vpn-instance-vpn1] quit
[*HUAWEI] ip pool huawei server
[*HUAWEI-ip-pool-huawei] commit
[~HUAWEI-ip-pool-huawei] vpn-instance vpn1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >