SROS Command Line Interface Reference Guide

DHCP Pool Command Set

 

 

host <address> [<subnet mask> or <prefix length>]

Use the host command to specify the IP address and subnet mask for a manual binding to a Dynamic Host Configuration Protocol (DHCP) client. Use the no form of this command to remove the configured client address.

Syntax Description

<address>

Specifies the IP address (in dotted decimal notation) for a manual binding to a

 

DHCP client.

<subnet mask>

Optional. Specifies the network mask (subnet) for a manual binding to a DHCP

 

client.

 

If the subnet mask is left unspecified, the DHCP server examines its address

 

pools to obtain an appropriate mask. If no valid mask is found in the address

 

pools, the DHCP server uses the Class A, B, or C natural mask.

<prefix length>

Optional. Alternately, the prefix length may be used to specify the number of bits

 

that comprise the network address. The prefix length must be preceded by a

 

forward slash ( / ). For example, to specify an IP address with a subnet mask of

 

255.255.0.0, enter /16 after the address.

Default Values

By default, there are no specified host addresses.

Command Modes

(config-dhcp)#

DHCP Pool

Usage Examples

The following examples show two different ways to specify a client with IP address 12.200.5.99 and a

21-bit subnet mask:

(config)#ip dhcp-server pool MyPool (config-dhcp)#host 12.200.5.99 255.255.248.0

or

(config)#ip dhcp-server pool MyPool (config-dhcp)#host 12.200.5.99 /21

5991-2114

© Copyright 2005 Hewlett-Packard Development Company, L.P.

364

Page 364
Image 364
HP 7000 dl Router manual Host address subnet mask or prefix length