IP address assignment includes specifying such basic information as a gateway address and address segments, as well as configuring static binding.
The DHCP server function has been enabled using the dhcp server enable command on an interface if the interface needs to be used as a DHCP server.
After an address pool is created on the DHCP server, a gateway address and an address segment need to be specified, with the IP addresses in the address segment belonging to the gateway address segment. By default, all IP addresses in the address segment can be assigned to DHCP clients. If the NetBIOS server and DNS server reside in the address segment, fixed IP addresses need to be bound to the servers. Before such binding, the two IP addresses need to be removed from the address segment so that they will not be dynamically assigned to other DHCP clients.
The type of the packets sent by the DHCP server as a reply is specified.
A VPN instance is configured for the address pool.
If a VPN has the DHCP service, the address pool created on the DHCP server needs to be bound to a VPN instance.
Return to the system view.
The DHCP server is enabled to use the destination IP address in the packet forwarded by the DHCP relay 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.
The DHCP server is enabled to assign IP addresses based on the Option 82 suboption Link Selection.
The DHCP server is enabled to fill the Option 82 suboption Server Identifier Override in Option 54.
The maximum number of ping packets that a DHCP server sends and the maximum timeout period of each ping reply are set.
Before assigning an IP address to a DHCP client, the DHCP server must ping the IP address to check whether this IP address is being used. This prevents address conflicts.
The configuration is committed.