C613-50631-01 Rev A Command Reference for IE340 Series 3042
AlliedWare Plus™ Operating System - Version 5.5.3-0.x
DYNAMIC HOST CONFIGURATION PROTOCOL (DHCP) COMMANDS
HOST
(DHCP)
host (DHCP)
Overview This command adds a static host address to the DHCP address pool you are
configuring. The client with the matching MAC address is permanently assigned
this IP address. No other clients can request it.
The no variant of this command removes the specified host address from the
DHCP pool. Use the no host all command to remove all static host addresses from
the DHCP pool.
Syntax
host <ip-address> <mac-address>
no host <ip-address>
no host all
Mode DHCP Configuration
Usage Note that a network/mask must be configured using a network command before
issuing a host command. Also note that a host address must match a network to
add a static host address.
Examples To add the host at 192.168.1.5 with the MAC address 000a.451d.6e34 to DHCP pool
1, use the commands:
awplus# configure terminal
awplus(config)# ip dhcp pool 1
awplus(dhcp-config)# network 192.168.1.0/24
awplus(dhcp-config)# host 192.168.1.5 000a.451d.6e34
To remove the host at 192.168.1.5 with the MAC address 000a.451d.6e34 from
DHCP pool 1, use the commands:
awplus# configure terminal
awplus(config)# ip dhcp pool 1
awplus(dhcp-config)# no host 192.168.1.5 000a.451d.6e34
Related
Commands
lease
range
show ip dhcp pool
Parameter Description
<ip-address> IPv4 address of the DHCP client, in dotted decimal notation in the
format A.B.C.D
<mac-address> MAC address of the DHCP client, in hexadecimal notation in the
format HHHH.HHHH.HHHH