Tuesday, March 8, 2016

Configuring the DHCP for Huawei OLT – the Standard DHCP Mode

How to configure the DHCP for Huawei OLT, you should know configure the standard DHCP mode, option60 mode and the MAC address segment mode.
This topic is applicable to the scenario for specifying the corresponding DHCP server groups for different users of the VLAN (the VLAN that is used when the service ports are created).
Procedure
  1. Configure the DHCP forwarding mode.
In the global config mode, run the dhcp mode layer-3 standard command to configure the DHCP relay mode to standard L3 DHCP relay mode (layer-3, standard). If keyword VLAN is selected and VLANID is entered, this configuration takes effect only for this VLAN.
  1. Configure the DHCP server group.
    1. In the global config mode, run the dhcp-server command to create a DHCP server group.
      • group-number: Indicates the number of the DHCP server group. It identifies a server group. You can run the display dhcp-server all-group command to query the DHCP server groups that are already configured and select a DHCP server group number that is not used by the system.
      • ip-addr: Indicates the IP address of the DHCP server in the DHCP server group. Up to four IP addresses can be entered.
 NOTICE:
The IP address of the DHCP server configured here must be the same as the IP address of the DHCP server on the network side.
  1. (Optional) Run the dhcp server mode command to configure the working mode of the DHCP server.
The DHCP servers in the DHCP server group can work in the load balancing mode or active/standby mode. By default, they work in the load balancing mode.
  1. Bind the DHCP server to the VLAN.
    1. In the global config mode, run the interface vlanif command to create a VLAN L3 interface.
The VLAN ID must be the same as the ID of the VLAN described in the prerequisite.
  1. In the VLANIF mode, run the ip address command to configure the IP address of the VLAN L3 interface.
After the configuration is completed, this IP address is used as the source IP address for forwarding the IP packets in the VLAN at L3.
 NOTICE:
  • If only an L2 device exists between the MA5600 and the DHCP server, the IP address of the VLAN L3 interface needs to be in the same subnet as the IP address of the DHCP server.
  • If the upper-layer device of the MA5600 is an L3 device, the IP address of the VLAN L3 interface and the IP address of the DHCP server can be in different subnets; however, a route must exist between the VLAN L3 interface and the DHCP server.
  1. In the VLANIF mode, run the dhcp-server command to bind the DHCP server to the VLAN.
This command requires parameter group-number, the value of which is the number of the created DHCP server group.
Example
Assume that server group 1 contains two DHCP servers working in active/standby mode, with the maximum response time of 20s, the maximum count of response timeout of 10, the IP address of the primary server 10.1.1.9 and the IP address of the secondary server 10.1.1.10. To bind server group 1 to users in VLAN 2 (with the IP address of the L3 interface 10.1.1.101), do as follows:
huawei(config)#dhcp mode layer-3 standard
huawei(config)#dhcp server mode backup 20 10
huawei(config)#dhcp-server 1 ip 10.1.1.9 10.1.1.10
huawei(config)#interface vlanif 2
huawei(config-if-vlanif2)#ip address 10.1.1.101 24
huawei(config-if-vlanif2)#dhcp-server 1

Telephone: 852-30623083
           Supports@Thunder-link.com            

No comments:

Post a Comment