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

NE40E V800R010C10SPC500 Configuration Guide - User Access 01

This is NE40E V800R010C10SPC500 Configuration Guide - User Access
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 a DHCPv4 Server Group

Configuring a DHCPv4 Server Group

A DHCPv4 server group is required only when a remote address pool is used to assign IP addresses to users that use a BAS interface for access.

Usage Scenario

The NE40E can be used as a DHCPv4 server to assign IP addresses to users. A remote DHCPv4 server can also be used with the NE40E functioning as a DHCPv4 relay agent to assign IP addresses to users.

When IP addresses are allocated by a remote DHCPv4 server, you need to configure the IP address of the remote DHCPv4 server on the NE40E. This allows the NE40E to communicate with the DHCPv4 server. The NE40E manages DHCPv4 servers by using DHCPv4 server groups.

NOTE:

A DHCPv4 server group is required only when the remote address pool is used to assign IP addresses to BAS-side users.

Pre-configuration Tasks

None.

Creating a DHCPv4 Server Group

DHCPv4 servers can work in load balancing or master/backup, or polling mode.

Context

Perform the following steps on the router:

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run dhcp-server group group-name

    A DHCPv4 server group is created and the DHCPv4 server group view is displayed.

  3. Run dhcp-server ip-address [ vpn-instance vpn-instance ] [ weight weight-value ]

    A DHCPv4 server is configured.

    A master DHCPv4 server and seven backup DHCPv4 servers can be configured in a DHCPv4 server group.

  4. (Optional) Run dhcp-server algorithm { loading-share | master-backup | polling [ check-loose ] }

    The algorithm for selecting DHCPv4 servers is set.

    When there are two servers in a DHCPv4 server group, you can specify the algorithm from the load balancing, master/backup mode, or polling for selecting DHCPv4 servers.

    • Load balancing: The NE40E distributes the load according to the weights of servers.
    • Master/backup: The NE40E specifies one server as the master server and the other as the backup server.
    • Polling: The NE40E sends request packets to all servers and selects the server that receives the packets first. Subsequent packets are sent to only the selected server, except the discover and select request packets.

  5. (Optional) Run release-agent

    The DHCPv4 release agent function is configured.

    With the DHCPv4 release agent function, the NE40E, instead of the user, sends a DHCPv4 release packet to the DHCPv4 server when the user goes offline.

  6. (Optional) Run dhcp rebind forward-mode all

    The NE40E is configured to send DHCP Rebind packets to all DHCPv4 servers in a DHCPv4 server group.

  7. (Optional) Run dhcp-server giaddr { interface interface-type interface-number | ip-address [ vpn-instance vpn-instance ] } [ forward-rui-slave ]

    The GiAddr address of packets sent by a DHCPv4 server group is configured.

  8. Run quit

    Return to the system view.

  9. (Optional) Run access user-ip-address trust dhcp-server user-type ppp

    The device is enabled to perform loose check on IP addresses assigned by a server when a remote address pool is used to assign IP addresses to PPP and L2TP users.

  10. (Optional) Run dhcp-server [ ip-address [ vpn-instance vpn-instance ] ] { dead-count dead-count | timeout timeout-value | dead-time dead-time }*

    The maximum number of times at which the DHCPv4 server does not send response packets is set. After the number of times specified by dead-count is exceeded, the DHCPv4 server is set to Down.

    The command is used to reduce the number of status (Up/Down) switchovers for a DHCPv4 server on the live network. If the command is configured, the DHCPv4 server goes Down only after the number of times at which the DHCPv4 server does not send response packets exceeds a specified value.

  11. (Optional) Run dhcp-server [ ip-address [ vpn-instance vpn-instance ] ] nak-count nak-count-value

    The maximum number of times at which the router receive NAK packets is set. After the number of times specified by nak-count is exceeded, the DHCPv4 server is set to Down.

  12. (Optional) Run dhcp option-82 agent-remote-id strip

    The router is enabled to delete the remote-id sub-attribute encapsulated into the Option 82 attribute of a received DHCP Request message.

  13. Run commit

    The configuration is committed.

Associating the IP Address Pool and the DHCPv4 Server Group

Only the remote IP address pool needs to be associated with the DHCPv4 server group.

Context

Perform the following steps on the router:

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run ip pool pool-name bas remote

    The remote address pool view is displayed.

  3. Run dhcp-server group group-name

    The address pool is associated with a DHCPv4 server group.

  4. (Optional) Run remote-ip lease manage

    The lease management function is enabled for the remote address pool.

    If some clients do not respond to ARP probe packets sent by the router, ARP probe is disabled on access interfaces on the router. In this case, if a client is powered off or has gone offline unexpectedly, the router cannot sense that the client is offline, because the client does not send any Release packet. As a result, the IP address used by the user cannot be released from the remote address pool. To prevent this problem, enable the lease management function for the remote address pool.

    NOTE:
    If destination IP addresses of lease packets sent by a DHCP server to users are user IP addresses instead of gateway IP addresses, do not enable the lease management function for the remote address pool. Because the router directly forwards these packets to users without updating the leases, users will go offline after the leases expire.

  5. Run commit

    The configuration is committed.

Verifying the DHCPv4 Server Group Configuration

After configuring DHCPv4 server groups, you can view the configurations of all DHCPv4 server groups.

Prerequisites

DHCPv4 server groups have been configured.

Procedure

  • Run the display dhcp-server group [ group-name ] command to check the configuration of the DHCPv4 server group.

Example

Run the display dhcp-server group command, and you can view information about all DHCPv4 server groups.

<HUAWEI> display dhcp-server group
  Group-Name          : remote
  Release-Agent       : Support
  Primary-Server      : -
  Vpn instance        : --
  Weight              : 0
  Status              : -
  Secondary-Server    : -
  Vpn instance        : --
  Weight              : 0
  Status              : -
  Algorithm           : master-backup
  Source              : --
  Giaddr              : -- 
  Rebind forward mode : all
  Group-Name          : g1
  Release-Agent       : Support
  Primary-Server      : -
    Vpn instance      : --
  Weight              : 0
  Status              : -
  Secondary-Server    : -
    Vpn instance      : --
  Weight              : 0
  Status              : -
  Algorithm           : master-backup
  Source              : --
  Giaddr              : -- 
  2 DHCP server group(s) in total
Translation
Download
Updated: 2019-01-03

Document ID: EDOC1100055031

Views: 17234

Downloads: 70

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