Step
3.
Configure a self-defined
DHCP option.
Table 2 Description of common options
Option
Option name
3
Router Option
6
Domain Name Server Option
15
Domain Name
NetBIOS over TCP/IP Name Server
44
Option
NetBIOS over TCP/IP Node Type
46
Option
66
TFTP server name
67
Bootfile name
43
Vendor Specific Information
Enabling DHCP
Enable DHCP before performing other configurations.
To enable DHCP:
Step
1.
Enter system view.
2.
Enable DHCP.
Enabling the DHCP server on an interface
With the DHCP server enabled on an interface, upon receiving a client's request, the DHCP server will
assign an IP address from its address pool to the DHCP client.
Configuration guidelines
Follow these guidelines when you enable the DHCP server on an interface:
If a DHCP relay agent exists between the DHCP server and client, the DHCP server, regardless of
•
whether the subaddress keyword is used, selects an IP address from the address pool containing the
primary IP address of the DHCP relay agent's interface (connected to the client) for a requesting
client.
When the DHCP server and client communicate without Layer 3 forwarding:
•
With the keyword subaddress specified, the DHCP server will preferably assign an IP address
from an address pool that resides on the same subnet as the primary IP address of the server
Command
option code { ascii ascii-string |
hex hex-string&<1-16> |
ip-address ip-address&<1-8> }
Corresponding command
gateway-list
dns-list
domain-name
nbns-list
netbios-type
tftp-server
bootfile-name
N/A
Command
system-view
dhcp enable
48
Remarks
No DHCP option is configured by
default.
Command parameter
ip-address
ip-address
ascii
ip-address
hex
ascii
ascii
hex
Remarks
N/A
Disabled by default