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

S2720, S5700, and S6720 V200R013C00

This document describes the configurations of IP Service, including IP address, ARP, DHCP, DHCP policy VLAN, DNS, mDNS gateway, mDNS relay, UDP Helper, IP performance optimization, IPv6, DHCPv6, IPv6 DNS, IPv6 over IPv4 tunnel, and IPv4 over IPv6 tunnel.
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).
Maintaining DHCP

Maintaining DHCP

Viewing Statistics About DHCP Messages

Context

Statistics about received and sent DHCP messages provide useful information for fault locating during routine maintenance.

Procedure

  • Run the display dhcp server statistics command to check statistics about DHCP messages sent and received on a DHCP server.
  • Run the display dhcp relay statistics command to check statistics about DHCP messages sent and received on a DHCP relay agent.
  • Run the display dhcp client statistics [ interface interface-type interface-number ] command to check statistics about DHCP messages sent and received on a DHCP client.
  • Run the display dhcp statistics command to view statistics about DHCP messages sent and received on a device.
  • Run the display dhcp configuration command to check configuration information about the DHCP public module.

Clearing Statistics About DHCP Messages

Context

Before collecting statistics about DHCP messages during routine maintenance, clear the existing statistics.

DHCP statistics cannot be restored after they are cleared. Exercise caution when performing this operation.

Procedure

  • Run the reset dhcp server statistics command to clear statistics about DHCP messages sent and received on a DHCP server.
  • Run the reset dhcp relay statistics command to clear statistics about DHCP messages sent and received on a DHCP relay agent.
  • Run the reset dhcp client statistics [ interface interface-type interface-number ] command to clear statistics about DHCP messages sent and received on a DHCP client.
  • Run the reset dhcp statistics command to clear statistics about DHCP messages sent and received on a device.

Resetting a DHCP Address Pool

Context

To force a DHCP server to re-allocate IP addresses to clients or to set IP addresses in an address pool to idle (idle IP addresses will be preferentially allocated), reset an address pool.

Procedure

  • Run the following commands to reset address pools on the device.

    • Interface address pool:

      reset ip pool interface interface-name { start-ip-address [ end-ip-address ] | all | conflict | expired | used }

    • Global address pool:

      reset ip pool name ip-pool-name { start-ip-address [ end-ip-address ] | all | conflict | expired | used }

  • Configure a DHCP relay agent to request a DHCP server to release IP addresses of clients.

    After a DHCP relay agent is configured to request the DHCP server to release IP addresses of clients, it sends DHCP Release messages to the specified DHCP server. After receiving the message, the DHCP server restores specified IP addresses to the idle status. Released IP addresses can then be allocated to other clients. Run the following commands to configure the DHCP relay agent to request the DHCP server to release IP addresses of clients:

    1. Enter the system view.

      system-view

    2. Enter the interface or sub-interface view.

      interface interface-type interface-number[.subinterface-number ]
      NOTE:

      Only the S5720EI, S5720HI, S5730HI, S6720EI, S6720HI, and S6720S-EI support sub-interfaces.

    3. (Optional) On an Ethernet interface, run undo portswitch

      The interface is switched to Layer 3 mode.

      By default, an Ethernet interface works in Layer 2 mode.
      NOTE:

      Only the S5720EI, S5720HI, S5730HI, S6720EI, S6720HI, and S6720S-EI support switching between Layer 2 and Layer 3 modes.

    4. Run the dhcp relay release client-ip-address mac-address [ vpn-instance vpn-instance-name ] [ server-ip-address ] command to request the DHCP server to release IP addresses allocated to DHCP clients.

      NOTE:

      The parameter vpn-instance vpn-instance-name cannot be configured in the interface view.

      • When you run the preceding command in the system view:
        • If no DHCP server is specified, the DHCP relay agent sends DHCP Release messages to all DHCP servers connected to DHCP relay-enabled interfaces.
        • If a DHCP server is specified, the DHCP relay agent sends DHCP Release messages to only the specified DHCP server.
      • When you run the preceding command in the interface view:
        • If no DHCP server is specified, the DHCP relay agent sends DHCP Release messages to the DHCP server connected to this interface.
        • If a DHCP server is specified, the DHCP relay agent sends DHCP Release messages to only the specified DHCP server.

Locking a DHCP Address Pool

Context

When a DHCP server is migrated, address pools on the DHCP server need to be transferred to a DHCP server on the live network. To prevent impacting clients that have obtained IP address from the to-be-migrated DHCP server, lock the address pools on the DHCP server. After the migration, new users apply for IP addresses from the new address pool.

Procedure

  1. Run the system-view command to enter the system view.
  2. Run the ip pool ip-pool-name command to enter the global address pool view.
  3. Run the lock command to lock the address pool.

    By default, address pools on a device are not locked.

Forcing a DHCP Client to Release and Renew Its IP Address

If a DHCP client obtains its IP address dynamically, you can force the client to release and renew its IP address, which is useful during certain troubleshooting procedures.

The commands used to release and renew an IP address depend on the operating system running on the client. For details about the commands to run, see the documentation of your operating system. The commands for some common operating systems are as follows:

  • Release an IP address.

    • For Windows 7, run the ipconfig/release command.
    • For MS-DOS of Windows 98, run the winipcfg/release command.
    • For Unix-like operating systems, run the dhclient –r command.
  • Renew an IP address lease or apply for a new IP address.

    • For Windows 7, run the ipconfig/renew command.
    • For MS-DOS of Windows 98, run the winipcfg/renew command.
    • For Unix-like operating systems, run the dhclient command.

Withdrawing the Fixed IP Addresses Assigned to Clients

Withdraw the IP addresses assigned to clients on the device functioning as the DHCP server. For example, in an address pool with a mask length of 24 in the network segment 10.1.1.0, withdraw the IP address 10.1.1.5 assigned to a client. You can run the display ip pool { interface interface-pool-name | name ip-pool-name } used command to check static binding relationships between the clients and IP addresses.

  • Configuration in the global address pool:

    1. Withdraw the IP address 10.1.1.5.

      <HUAWEI> reset ip pool name pool1 10.1.1.5
    2. Cancel the static binding relationship.

      <HUAWEI> system-view
      [HUAWEI] ip pool pool1
      [HUAWEI-ip-pool-pool1] undo static-bind ip-address 10.1.1.5
  • Configuration in the interface address pool:

    1. Withdraw the IP address 10.1.1.5.

      <HUAWEI> reset ip pool interface vlanif100 10.1.1.5
    2. Cancel the static binding relationship.

      <HUAWEI> system-view
      [HUAWEI] interface vlanif 100
      [HUAWEI-Vlanif100] undo dhcp server static-bind ip-address 10.1.1.5
Translation
Download
Updated: 2019-04-20

Document ID: EDOC1100065678

Views: 25050

Downloads: 163

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