No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Configuration Guide - IP Service

CloudEngine 8800, 7800, 6800, and 5800 V200R003C00

This document describes the configurations of IP Service, including IP address, ARP, DHCP, DNS, IP performance optimization, IPv6, DHCPv6, and IPv6 DNS.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Configuring the Global Address Pool

Configuring the Global Address Pool

Context

The global address pool attributes include the IP address range, IP address lease, IP addresses not to be automatically allocated, and IP addresses to be statically bound to MAC addresses. IP addresses in the global address pool can be assigned dynamically or bound manually as required.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run dhcp enable

    DHCP is enabled.

    By default, the DHCP function is disabled.

  3. Run ip pool ip-pool-name

    A global address pool is created and the global address pool view is displayed.

    By default, no global address pool exists on the switch.

  4. Run gateway-list ip-address &<1-8>

    The egress gateway address is configured for the global address pool of a DHCP server.

    By default, no egress gateway address is specified.

    NOTE:

    When a DHCP client connects to the server or host outside the network segment, data must be forwarded through the egress gateway.

    To load balance traffic and improve network reliability, configure multiple gateways. An address pool can be configured with a maximum of eight gateway addresses. Gateway addresses cannot be subnet broadcast addresses.

  5. Run network ip-address [ mask { mask | mask-length } ]

    The range of IP addresses that can be allocated dynamically in the global address pool is specified.

    By default, no network segment address for a global address pool is specified.

    An address pool can contain only one address segment. The address range of the address pool is set by the mask.

    NOTE:

    When configuring the range of dynamically assignable IP addresses in the global address pool, ensure that the range is the same as the network segment on which the DHCP server interface address or the DHCP relay agent interface address resides. This avoids incorrect assignment of IP addresses.

  6. (Optional) Run lease { day day [ hour hour [ minute minute ] ] | unlimited }

    The IP address lease is set.

    By default, the IP address lease is one day.

    Different address pools on a DHCP server can be set with different IP address leases, but the IP addresses in one address pool must be configured with the same lease.

  7. (Optional) Run excluded-ip-address start-ip-address [ end-ip-address ]

    The IP addresses that cannot be automatically allocated in the global address pool are configured.

    By default, all IP addresses in the address pool can be automatically assigned to clients.

    Some IP addresses in the global address pool are reserved for other services, for example, the IP address of the DNS server cannot be allocated to clients. If you run this command multiple times, you can set multiple IP address ranges that cannot be automatically allocated in the DHCP address pool.

  8. (Optional) Run static-bind ip-address ip-address mac-address mac-address

    An IP address in the global address pool is statically bound to the MAC address of a DHCP client.

    By default, the IP address in a global address pool is not bound to any MAC address.

    When a client requires a fixed IP address, bind an idle IP address in the address pool to the client MAC address.

    NOTE:

    When the IP address in the global address pool is statically bound to a MAC address, the IP address must be in the range of IP addresses that can be allocated dynamically.

  9. (Optional) Run next-server ip-address

    The server IP address for DHCP clients is configured.

    By default, no server IP address is specified.

  10. (Optional) Run vpn-instance vpn-instance-name

    The IP address pool is bound to a VPN instance.

    By default, an IP address pool is not bound to any VPN instance.

  11. (Optional) Run lock

    The IP address pool is locked.

    By default, the IP address pool is unlocked.

  12. Run quit

    The system view is displayed.

  13. (Optional) Run dhcp server identifier dest-ip

    The DHCP server is enabled to use the destination IP address in the packet forwarded by the DHCP relay as the server identifier.

    By default, the DHCP server uses the inbound interface IP address in a DHCP request as the server identifier.

    This command is used when a DHCP client is connected to a DHCP relay (first PE) over a VPN and the DHCP relay sends a DHCP request to the DHCP server (second PE). The DHCP server assigns an IP address to the DHCP client over the VPN.

    The server IP address specified by the DHCP server is generally the IP address of a non-public interface on the DHCP server, but the DHCP request is received by a public interface on the DHCP server. By default, the DHCP server uses the inbound interface IP address in the DHCP request (public interface IP address) as the server identifier. As a result, the DHCP client fails to extend the lease. To address this problem, run the dhcp server identifier dest-ip command to enable the DHCP server to use the destination IP address in the packet forwarded by the DHCP relay as the server identifier.

  14. (Optional) Run dhcp server bootp

    The DHCP server is configured to respond to BOOTP requests.

    By default, a DHCP server does not respond to BOOTP requests.

  15. (Optional) Run dhcp server bootp automatic

    The DHCP server is configured to dynamically allocate IP addresses to BOOTP clients.

    By default, the DHCP server does not dynamically allocate IP addresses to BOOTP clients.

    When the device functions as the DHCP server, the device can allocate IP addresses to BOOTP clients if the BOOTP clients reside on the same network as the DHCP server. You can run the dhcp server bootp automatic command to dynamically allocate IP addresses. You can also run the static-bind ip-address ip-address mac-address mac-address command to allocate IP addresses to BOOTP clients in the static binding mode.

  16. Run commit

    The configuration is committed.

Translation
Download
Updated: 2019-05-08

Document ID: EDOC1100004354

Views: 68986

Downloads: 147

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next