The DHCP local server enables you to optionally configure AAA-based authentication of standalone mode DHCP clients. In addition to providing increased security, AAA authentication also provides RADIUS-based input to IP address pool selection for standalone mode clients. By default, clients are not authenticated in standalone mode.
Typically, an incoming DHCP client does not provide a username—therefore, the DHCP local server constructs a username based on the user’s attachment parameters and optional DHCP parameters. AAA uses the constructed username to authenticate the incoming client and create the AAA subscriber record for the client. The information in the AAA subscriber record is then used to determine the IP address pool from which to assign the address for the DHCP client. You can include the following elements in the username:
|
Attachment Parameters |
DHCP Parameters |
|---|---|
|
domain |
circuit ID |
|
user prefix |
circuit type |
|
– |
MAC address |
|
– |
option 82 |
|
– |
virtual router name |
![]() |
Note: The nondomain portion of a constructed username must contain at least one character. Otherwise, the DHCP local server rejects the DHCP client without performing the AAA authentication request. |
When using authentication, AAA accepts the DHCP client as a subscriber—this enables you to use show commands to monitor configuration information and statistics about the client. You can also use the logout subscriber command to manage subscribers.
To configure AAA-based authentication for DHCP local server standalone mode clients:
![]() |
Caution: Configuring authentication on the DHCP local server requires that you first disable the DHCP local server for standalone mode. Doing so removes your entire DHCP local server configuration. Therefore, if you want to configure authentication, do so before you have otherwise configured the DHCP local server. |
- host1(config)#no service dhcp-local standalone
- host1(config)#service dhcp-local standalone
authenticate
- host1(config)#ip dhcp-local auth password
to4tooL8
- host1(config)#ip dhcp-local auth domain ISP1.com
- host1(config)#ip dhcp-local auth user-prefix
ERX4-Boston
Use the following keywords to include specific information:
- host1(config)#ip dhcp-local auth include virtual-router-name
- host1(config)#ip dhcp-local auth include circuit-type
- host1(config)#ip dhcp-local auth include circuit-identifier
host1(config)#show ip dhcp-local auth config
DHCP Local Server Authentication Configuration
User-Prefix : ERX4-Boston Domain : ISP1.com Password : to4TooL8 Virtual Router : included Circuit Type : included Circuit ID : included MAC Address : excluded Option 82 : excluded