Step
1.
Enter system view.
2.
Enter DHCP address pool
view.
3.
Configure a self-defined
DHCP option.
See
Table 2
Table 2 Common DHCP options
Option
Option name
3
Router Option
6
Domain Name Server Option
15
Domain Name
NetBIOS over TCP/IP Name
44
Server Option
NetBIOS over TCP/IP Node Type
46
Option
66
TFTP server name
67
Bootfile name
43
Vendor Specific Information
Enabling DHCP
Enable DHCP to validate other DHCP configurations.
To enable DHCP:
Step
1.
Enter system view.
2.
Enable DHCP.
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 an IP address and other configuration parameters from the DHCP
address pool to the DHCP client.
Configuration guidelines
Follow these guidelines when you enable the DHCP server on an interface:
for a description of common options and corresponding commands.
Command
system-view
dhcp enable
Command
system-view
dhcp server ip-pool pool-name
[ extended ]
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
29
Remarks
N/A
N/A
No self-defined DHCP option is
configured by default.
Command parameter
ip-address
ip-address
ascii
ip-address
hex
ascii
ascii
hex
Remarks
N/A
The default setting is disabled by
default.