ip-pool mode priority

Function

The ip-pool mode priority command configures a device to prefer a local or remote IP address pool in a domain.

The undo ip-pool mode priority command deletes the preference configured for an IP address pool in a domain.

By default, a device selects an IP address pool for Layer 3 DHCP users based on its gateway address and preferentially selects a local address pool for Layer 2 DHCP and PPP users.

This command is supported only on the NetEngine 8000 F1A.

Format

ip-pool mode priority { local [ layer2-subscriber ] | remote [ layer2-subscriber [ ipoe | pppoe ] ] }

undo ip-pool mode priority [ local layer2-subscriber | remote layer2-subscriber [ ipoe | pppoe ] ]

Parameters

Parameter Description Value
local

Indicates that a local IP address pool takes precedence during address pool allocation.

-

layer2-subscriber

Indicates Layer 2 common users.

-

remote

Indicates that a remote IP address pool takes precedence during address pool allocation.

-

ipoe

Indicates IPoE users.

-

pppoe

Indicates PPPoE users.

-

mode

Specifies a mode in which an IP address pool assigns IP addresses.

Only mode is currently available.

Views

AAA domain view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
aaa write

Usage Guidelines

Usage Scenario

To configure a device to prefer a local or remote IP address pool in a domain, run the ip-pool priority mode command. To delete the preference, run the undo ip-pool priority mode command.

When Layer 2 or Layer 3 users access a device, they must be assigned IP addresses from an IP address pool in a domain. You can run the ip-pool priority mode command to configure the device to preferentially select a desired IP address pool.

Precautions

This command is supported only on the admin VS.

If a device is configured to prefer a remote address pool in a domain for address assignment, IP addresses can only be assigned from a remote address pool for vCPE users.

Example

# Configure a device to prefer a remote IP address pool in a domain when the device assigns IP addresses to Layer 2 PPPoE users.
<HUAWEI> system-view
[~HUAWEI] aaa
[~HUAWEI-aaa] domain huawei
[*HUAWEI-aaa-domain-huawei] commit
[~HUAWEI-aaa-domain-huawei] ip-pool mode priority remote layer2-subscriber pppoe
# Configure a device to prefer a local IP address pool in a domain when the device assigns IP addresses to Layer 3 users.
<HUAWEI> system-view
[~HUAWEI] aaa
[~HUAWEI-aaa] domain huawei
[*HUAWEI-aaa-domain-huawei] commit
[~HUAWEI-aaa-domain-huawei] ip-pool mode priority local
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >