Host – Allied Telesis AlliedWare Plus Operating System Version 5.4.4C (x310-26FT,x310-26FP,x310-50FT,x310-50FP) User Manual
Page 1704
![background image](/manuals/427254/1704/background.png)
Dynamic Host Configuration Protocol (DHCP) Commands
Software Reference for x310 Series Switches
64.6
AlliedWare Plus
TM
Operating System - Version 5.4.4C
C613-50046-01 REV A
host
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:
To remove the host at 192.168.1.5 with the MAC address 000a.451d.6e34 from
DHCP pool 1, use the commands:
Related Commands
Parameter
Description
IPv4 address of the DHCP client, in dotted decimal notation in
the format A.B.C.D
MAC address of the DHCP client, in hexadecimal notation in
the format HHHH.HHHH.HHHH
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
awplus#
configure terminal
awplus(config)#
ip dhcp pool 1
awplus(dhcp-config)#
no host 192.168.1.5 000a.451d.6e34