[ Contents] [ Prev] [ Next] [ Index] [ Report an Error]

Creating Unique Usernames for DHCP Clients

You can configure the extended DHCP application to include additional information in the username that is passed to the external AAA authentication service when the DHCP client logs in. This additional information enables you to construct usernames that uniquely identify subscribers.

Note: If you do not include a username in the authentication configuration, the router does not perform authentication; however, the IP address is provided by the local pool if it is configured.

When you use the DHCPv6 local server, you must configure authentication and the client username; otherwise client login fails.

The following list describes the optional information that you can include as part of the username:

The router creates the unique username by including the specified additional information in the following order, with the fields separated by a delimiter.

For DHCP local server and DHCP relay agent:

user-prefix[delimiter]mac-address[delimiter]logical-system-name[delimiter]
routing-instance-name[delimiter]circuit-type[delimiter]option-82[delimiter]
option-60@domain-name

For DHCPv6 local server:

user-prefix[delimiter]mac-address[delimiter]logical-system-name[delimiter]
routing-instance-name[delimiter]circuit-type[delimiter]relay-agent-remote-id[delimiter]
relay-agent-subscriber-id@domain-name

To configure a unique username:

  1. Specify that you want to configure authentication.
  2. Specify that you want to include optional information in the username. (DHCP local server, DHCPv6 local server, and DHCP relay agent all support the username-include statement.)
    [edit system services dhcp-local-server authentication]
    user@host# set username-include
  3. (Optional) Specify the optional information you want to include in the username.
    [edit system services dhcp-local-server authentication username-include]
    user@host# set username-include circuit-type
    user@host# set username-include domain-name isp55.com
    user@host# set username-include mac-address
    user@host# set username-include user-prefix wallybrown

    The previous username-include configuration produces this unique username:

    wallybrown.0090.1a01.1234.enet@isp55.com

Related Topics


[ Contents] [ Prev] [ Next] [ Index] [ Report an Error]