Chapter 15: DHCP Server with Port-Based IP Assignment
330
awplus# configure terminal
awplus(config)# ip dhcp pool P1
awplus(dhcp-config)# dns-server 192.168.1.1
DOMAIN-NAME
The command to add a domain name to the DHCP pool is DOMAIN-
NAME.
This command specifies the domain name a client should use when
resolving host names using the DNS.
Here is the format of the command:
domain-name <
domain-name
>
The domain-name parameter is the domain name you want to assign to
the DHCP pool. Valid characters are any printable character. The name
should not contain spaces.
Use the NO form of this command to remove the domain name from the
DHCP pool.
This example adds the domain name Branch-Office to pool P1.
awplus# configure terminal
awplus(config)# ip dhcp pool P1
awplus(dhcp-config)# domain-name Branch-Office
Defining Ports’
IP Addresses
Offered DHCP
Service
The command to enable DHCP service to assign IP address(es) on a
switch port is DHCP-OFFER IP.
This command enables DHCP service on a switch port and defines the IP
address that will be offered on this port.
Here is the format of the command:
dhcp-offer ip <
x.x.x.x
> [<x.x.x.x>]
Where <
x.x.x.x
> is one IPv4 address (in dotted decimal notation), and
<
x.x.x.x
> [<x.x.x.x>] is an IPv4 address range. The first IP address
is the low end of the range; the second IP address is the high end.
Use the NO form of this command to disable DHCP service on a switch
port.
Disabling DHCP service on a port removes all lease bindings for the
port.
This command is performed from Interface Configuration mode.