< Home

ip-alloc

Function

The ip-alloc command configures an IP address allocated to an IKE user.

The undo ip-alloc command deletes an IP address allocated to an IKE user.

By default, the IP address allocated to an IKE user is not configured.

Format

ip-alloc ipv4-address mask ip-mask

undo ip-alloc

Parameters

Parameter

Description

Value

ipv4-address

Specifies the IPv4 address allocated to an IKE user.

The value is in dotted decimal notation.

mask ip-mask

Specifies the mask of the IPv4 address allocated to an IKE user.

The value is in dotted decimal notation.

Views

IKE user view

Default Level

2: Configuration level

Usage Guidelines

In a point-to-multipoint scenario, to simplify the configuration and maintenance of network resources (IP addresses and addresses of DNS servers) of branch gateways, you can deploy the network resources on the headquarters gateway. When a branch gateway initiates IKEv2 negotiation and establishes an IPSec tunnel with the headquarters gateway, the headquarters gateway can push the network resources to the branch gateway through IKEv2. The service-scheme command can be used on an IKE peer to reference a service scheme so that an IP address can be pushed to a branch gateway, but the specified IP address cannot be provided for a branch. You can run the ip-alloc command to configure an IP address allocated to a branch.

Example

# Configure an IP address allocated to an IKE user.

<sysname> system-view
[sysname] ike user-table 10
[sysname-ike-user-table-10] user user1
[sysname-ike-user-table-10-user1] ip-alloc 10.1.1.1 mask 255.255.255.0
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >