![H3C SR8800-F Configuration Manual Download Page 124](http://html2.mh-extra.com/html/h3c/sr8800-f/sr8800-f_configuration-manual_4025863124.webp)
108
Enabling the DHCP server on an interface
Perform this task to enable the DHCP server on an interface. Upon receiving a DHCP request on the
interface, the DHCP server assigns the client an IP address and other configuration parameters from
a DHCP address pool.
To enable the DHCP server on an interface:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter interface view.
interface interface-type interface-number
N/A
3.
Enable the DHCP server on
the interface.
dhcp select server
By default, the DHCP
server on the interface
is enabled.
Applying a DHCP address pool to a VPN instance
If a DHCP address pool is applied to a VPN instance, the DHCP server assigns IP addresses in this
address pool to clients in the VPN instance. Addresses in this address pool will not be assigned to
clients on the public network.
The DHCP server can obtain the VPN instance to which a DHCP client belongs from the following
information:
•
The client's VPN information stored in authentication modules, such as IPoE.
•
The VPN information of the DHCP server's interface that receives DHCP packets from the
client.
If both VPN instances can be obtained, the VPN information from authentication modules takes
priority over the VPN information of the receiving interface.
An MCE acting as the DHCP server can assign IP addresses not only to clients on public networks,
but also to clients on private networks. The IP address ranges of public and private networks or those
of private networks on the DHCP server cannot overlap. For more information about MCE, see
MPLS Configuration Guide
.
To apply a DHCP address pool to a VPN instance:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter DHCP address pool
view.
dhcp server ip-pool pool-name
By default, no DHCP address
pool exists.
3.
Apply the address pool to a
VPN instance.
vpn-instance
vpn-instance-name
By default, the address pool is
not applied to any VPN
instance.
Applying an address pool on an interface
Perform this task to apply a DHCP address pool on an interface.
Upon receiving a DHCP request from the interface, the DHCP server performs address allocation in
the following ways: