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
- Configure the DHCP forwarding mode.
- Configure the DHCP server group.
- 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.
- In the global config mode, run the dhcp-server command to create a DHCP server group.
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.
- (Optional) Run the dhcp server mode command to configure the working mode of the DHCP server.
- Bind the DHCP server to the VLAN.
- In the global config mode, run the interface vlanif command to create a VLAN L3 interface.
- In the VLANIF mode, run the ip address command to configure the IP address of the VLAN L3 interface.
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.
- In the VLANIF mode, run the dhcp-server command to bind the DHCP server to the VLAN.
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
Email: Sales@Thunder-Link.com
Website: http://www.thunder-link.com
More related:
Introduction to MSTP_Prelude_Overview and History
Introduction to MSTP_Prelude_Overview and History
No comments:
Post a Comment