< Home

ip-pool (service scheme view)

Function

The ip-pool command sets the IP address pool bound to a service scheme or moves the location of a configured IP address pool bound to a service scheme.

The undo ip-pool command deletes the IP address pool bound to a service scheme. If no parameter is specified, all the IP address pools bound to a service scheme are deleted.

By default, no IP address pool is bounded in a service scheme.

Format

ip-pool pool-name [ move-to new-position ]

undo ip-pool [ pool-name ]

Parameters

Parameter

Description

Value

pool-name

Specifies the IP address pool name.

The IP address pool must already exist.

move-to new-position

Moves the location of a configured IP address pool bound to a service scheme.

The location must already exist in service scheme.

Views

Service scheme view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

This command limits the range of IP addresses of users in a service scheme. The ip-pool command is used to reference the configured address pool to a service scheme. An IP address pool is configured using the ip pool (system view) command.

Prerequisites

A global IP address pool has been created using the ip pool (system view) command and the address range in the IP address pool has been specified using the network (IP address pool view) or section (IP address pool view) command.

Precautions

  • You are advised to bind an IP address pool to a service scheme and run the network (IP address pool view) or section (IP address pool view) command to specify an address range in the IP address pool.
  • You are advised to run the ppp ipcp remote-address forced command to prevent the peer end from using its own IP address when configuring the FW to assign an IP address to the peer end.
The principles of the preceding two suggestions are as follows:
  1. When an IP address is assigned from an IP address pool, the assigned IP address is the end IP address of the idle IP address list. When an IP address is released from an IP address pool, the IP address is added to the front of the idle IP address list to prevent repeated assignment of the same IP address.
  2. When multiple IP address pools are bound to a service scheme and the IP addresses in the first IP address pool are exhausted, IP addresses in the second IP address pool are assigned. If only one idle IP address is left in the first IP address pool, the system may repeatedly request to release the IP address.
  3. When multiple sections are configured in an IP address pool and the IP addresses of the first section are exhausted, the IP addresses in the second section are assigned. If only one idle IP address is left in the first section, the system may repeatedly request to release the IP address.
  4. If the ppp ipcp remote-address forced command is not run, the terminal may not apply for an IP address from the IP address pool but directly use the cached IP address to go online. As a result, an IP address conflict occurs when the IP address pool assigns the IP address to a new user. As a result, the new user fails to go online.

Example

# Set the IP address pool pool1 for the service scheme svcscheme1.

<sysname> system-view
[sysname] ip pool pool1
[sysname-ip-pool-pool1] network 192.168.100.0 mask 24
[sysname-ip-pool-pool1] quit
[sysname] aaa
[sysname-aaa] service-scheme svcscheme1
[sysname-aaa-service-svcscheme1] ip-pool pool1

# Change the position of the IP address ippool1 in the service scheme svcscheme1.

<sysname> system-view
[sysname] ip pool ippool1
[sysname-ip-pool-ippool1] network 192.168.100.0 mask 24
[sysname-ip-pool-ippool1] quit
[sysname] ip pool ippool2
[sysname-ip-pool-ippool2] network 192.168.200.0 mask 24
[sysname-ip-pool-ippool2] quit
[sysname] aaa
[sysname-aaa] service-scheme svcscheme1
[sysname-aaa-service-svcscheme1] ip-pool ippool1
[sysname-aaa-service-svcscheme1] ip-pool ippool2
[sysname-aaa-service-svcscheme1] ip-pool ippool1 move-to 2
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >