Configuration Examples
This section contains examples of creating dynamic usernames and shows the usernames that are generated. The examples all use the following IP policy, interface profile, and route map:
host1(config)#ip policy-list restrictAccesshost1(config-policy-list)#classifier-group *host1(config-policy-list-classifier-group)#filterhost1(config-policy-list-classifier-group)#exithost1(config-policy-list)#exithost1(config)#An interface profile that references the restrictAccess policy. host1(config)#profile atlInterfaceProfilehost1(config-profile)#ip policy input restrictAccesshost1(config-profile)#ip policy output restrictAccesshost1(config-profile)#exithost1(config)#A route map that references the interface profile and the atlServiceProfile service profile. host1(config)#route-map atlRouteMaphost1(config-route-map)#set interface-profile atlInterfaceProfilehost1(config-route-map)#set ip service-profile atlServiceProfilehost1(config-route-map)#exithost1(config)#Each example shows the configuration of a service profile that enables RADIUS authentication.
Username with ATM Circuit Identifier and No Circuit Type
This example shows the steps to configure a service profile for a username that includes the ATM circuit identifier, but does not include the circuit type.
host1(config)#ip service-profile atlServiceProfilehost1(config-service-profile)#user-prefix xyzcorp.atlhost1(config-service-profile)#domain eastcoasthost1(config-service-profile)#include hostnamehost1(config-service-profile)#include circuit-identifier atmhost1(config-service-profile)#exithost1(config)#The example generates the following username:
The circuit identifier indicates a user at slot 2, port 3, with a virtual path identifier (VPI) of 32 and a virtual channel identifier (VCP) of 100.
Username with VLAN Circuit Identifier and Circuit Type
This example shows the steps to configure a service profile for a username that includes a VLAN circuit identifier and the circuit type.
host1(config)#ip service-profile atlServiceProfilehost1(config-service-profile)#user-prefix xyzcorp.atlhost1(config-service-profile)#domain eastcoasthost1(config-service-profile)#include hostnamehost1(config-service-profile)#include circuit-identifier vlan prepend-circuit-typehost1(config-service-profile)#exitThe example generates the following username:
![]()
The circuit identifier indicates a user on slot 1, port 0, no stacked vlan, and a vlan ID of 45.
Username with MAC Address
This example shows the steps to configure a service profile that generates a username that includes a MAC address.
NOTE: Including a MAC address in a username works only for DHCP users. It does not work for IP subscribers that have statically configured IP addresses.
host1(config)#ip service-profile atlServiceProfilehost1(config-service-profile)#user-prefix xyzcorp.atlhost1(config-service-profile)#domain eastcoasthost1(config-service-profile)#include hostnamehost1(config-service-profile)#include circuit-identifier vlanhost1(config-service-profile)#include mac-addresshost1(config-service-profile)#include dhcp-option 82 agent-circuit-idhost1(config-service-profile)#exithost1(config)#The example generates the following username, which includes the MAC address:
![]()