Configuration Guide Configuring DHCPConfiguring DHCP
address and hardware address or identifier. A hardware address is a MAC address. A client identifier
includes a network medium type and a MAC address. A Microsoft client is usually identified by a client
identifier rather than a MAC address. For the codes of medium types, refer to the Address Resolution
Protocol Parameters section in the RFC 1700. The Ethernet type is 01.
Configuration
Example
Dynamic IP Address Pool
Configure address pool VLAN 1 with IP address 20.1.1.0 and subnet mask 255.255.255.0.
The default gateway is 20.1.1.1.
The lease time is 1 day.
Ruijie(config)# ip dhcp pool vlan1
Ruijie(dhcp-config)# network 20.1.1.0 255.255.255.0
Ruijie(dhcp-config)# default-router 172.16.1.254
Ruijie(dhcp-config)# lease 1 0 0
Run the show run command to display the configuration.
Ruijie(config)#show run | begin ip dhcp
ip dhcp pool vlan1
network 20.1.1.0 255.255.255.0
hardware-address 00d0.df34.32a3 Ethernet
default-router 20.1.1.1
lease 1 0 0
Manual Binding
The host address is 172.16.1.101 and the subnet mask is 255.255.255.0.
The host name is Billy.rg.com.
The default gateway is 172.16.16.254.
The MAC address is 00d0.df34.32a3.
Ruijie(config)# ip dhcp pool Billy
Ruijie(dhcp-config)# host 172.16.1.101 255.255.255.0
Ruijie(dhcp-config)# client-name Billy
Ruijie(dhcp-config)# hardware-address 00d0.df34.32a3 Ethernet
Ruijie(dhcp-config)# default-router 172.16.1.254
Ruijie(dhcp-config)# dns-server 172.16.1.253
Ruijie(dhcp-config)# dns-server 172.16.1.253