Step 1 |
enable
|
Enables privileged EXEC mode.
|
Step 2 |
configure
terminal
Router# configure terminal
|
Enters global configuration mode.
|
Step 3 |
class-map
type
control
[match-all |match-any |match-none ] class-map-name
Router(config)# class-map type control match-all class1
|
Creates or modifies a control class map, which defines the conditions under which the actions of a control policy map will
be executed, and enters control class map mode.
|
Step 4 |
available
{authen-status | authenticated-domain | authenticated-username | dnis | media | mlp-negotiated | nas-port | no-username | protocol | service-name | source-ip-address | timer | tunnel-name | unauthenticated-domain | unauthenticated-username }
Router(config-control-classmap)# available nas-port
|
(Optional) Creates a condition that evaluates true if the specified subscriber identifier is locally available.
|
Step 5 |
greater-than
[not ] nas-port {adapter adapter-number | channel channel-number | ipaddr ip-address | port port-number | shelf shelf-number | slot slot-number | sub-interface sub-interface-number | type interface-type | vci vci-number | vlan vlan-id | vpi vpi-number }
Router(config-control-classmap)# greater-than nas-port type atm vpi 200 vci 100
|
(Optional) Creates a condition that evaluates true if the subscriber network access server (NAS) port identifier is greater
than the specified value.
|
Step 6 |
greater-than-or-equal
[not ]nas-port {adapter adapter-number | channel channel-number | ipaddr ip-address | port port-number | shelf shelf-number | slot slot-number | sub-interface sub-interface-number | type interface-type | vci vci-number | vlan vlan-id | vpi vpi-number }
Router(config-control-classmap)# greater-than-or-equal nas-port vlan 10
|
(Optional) Creates a condition that evaluates true if the specified subscriber NAS port identifier is greater than or equal
to the specified value.
|
Step 7 |
less-than
[not ] nas-port {adapter adapter-number | channel channel-number | ipaddr ip-address | port port-number | shelf shelf-number | slot slot-number | sub-interface sub-interface-number | type interface-type | vci vci-number | vlan vlan-id | vpi vpi-number }
Router(config-control-classmap)# less-than nas-port type atm vpi 200 vci 105
|
(Optional) Creates a condition that evaluates true if the specified subscriber NAS port identifier is less than the specified
value.
|
Step 8 |
less-than-or-equal
[not ] nas-port {adapter adapter-number | channel channel-number | ipaddr ip-address | port port-number | shelf shelf-number | slot slot-number | sub-interface sub-interface-number | type interface-type | vci vci-number | vlan vlan-id | vpi vpi-number }
Router(config-control-classmap)# less-than-or-equal nas-port ipaddr 10.10.10.10
|
(Optional) Creates a condition that evaluates true if the specified subscriber NAS port identifier is less than or equal to
the specified value.
|
Step 9 |
match
authen-status
{authenticated | unauthenticated }
Router(config-control-classmap)# match authen-status authenticated
|
(Optional) Creates a condition that evaluates true if a subscriber’s authentication status matches the specified authentication
status.
|
Step 10 |
match
authenticated-domain
{domain-name | regexp regular-expression }
Router(config-control-classmap)# match authenticated-domain cisco.com
|
(Optional) Creates a condition that evaluates true if a subscriber’s authenticated domain matches the specified domain.
|
Step 11 |
match
authenticated-username
{username | regexp regular-expression }
Router(config-control-classmap)# match authenticated-username regexp "admin@.*com"
|
(Optional) Creates a condition that evaluates true if a subscriber’s authenticated username matches the specified username.
|
Step 12 |
match
dnis
{dnis | regexp regular-expression }
Router(config-control-classmap)# match dnis reg-exp 5551212
|
(Optional) Creates a condition that evaluates true if a subscriber’s Dialed Number Identification Service number (DNIS number,
also referred to as called-party number ) matches the specified DNIS number.
|
Step 13 |
match
media
{async | atm | ether | ip | isdn | mpls | serial }
Router(config-control-classmap)# match media atm
|
(Optional) Creates a condition that evaluates true if a subscriber’s access media type matches the specified media type.
|
Step 14 |
match
mlp-negotiated
{no | yes }
Router(config-control-classmap)# match mlp-negotiated yes
|
(Optional) Creates a condition that evaluates true or false depending on whether the subscriber’s session was established
using multilink PPP negotiation.
|
Step 15 |
match
nas-port
{adapter adapter-number | channel channel-number | circuit-id name | ipaddr ip-address | port port-number | remote-id name | shelf shelf-number | slot slot-number | sub-interface sub-interface-number | type {async | atm | basic-rate | enm | ether | fxo | fxs | none | primary-rate | synch | vlan | vty } | vci vci-number | vlan vlan-id | vpi vpi-number }
Router(config-control-classmap)# match nas-port type ether slot 3
|
(Optional) Creates a condition that evaluates true if a subscriber’s NAS port identifier matches the specified value.
|
Step 16 |
match
no-username
{no | yes }
Router(config-control-classmap)# match no-username yes
|
(Optional) Creates a condition that evaluates true or false depending on whether or not a subscriber’s username is available.
|
Step 17 |
match
protocol
{atom | ip | pdsn | ppp | vpdn }
Router(config-control-classmap)# match protocol ip
|
(Optional) Creates a condition that evaluates true if a subscriber’s access protocol type matches the specified protocol type.
|
Step 18 |
match
service-name
{service-name | regexp regular-expression }
Router(config-control-classmap)# match service-name service1
|
(Optional) Creates a condition that evaluates true if the service name associated with a subscriber matches the specified
service name.
|
Step 19 |
match
source-ip-address
ip-address
subnet-mask
Router(config-control-classmap)# match source-ip-address 10.10.10.10 255.255.255.255
|
(Optional) Creates a condition that evaluates true if a subscriber’s source IP address matches the specified IP address.
|
Step 20 |
match
timer
{timer-name | regexp regular-expression }
Router(config-control-classmap)# match timer TIMERA
|
(Optional) Creates a condition that evaluates true upon expiry of a specified policy timer.
|
Step 21 |
match
tunnel-name
{tunnel-name | regexp regular-expression }
Router(config-control-classmap)# match tunnel-name regexp L.*
|
(Optional) Creates a condition that evaluates true if a subscriber’s virtual private dialup network (VPDN) tunnel name matches
the specified tunnel name.
|
Step 22 |
match
unauthenticated-domain
{domain-name | regexp regular-expression }
Router(config-control-classmap)# match unauthenticated-domain example.com
|
(Optional) Creates a condition that evaluates true if a subscriber’s unauthenticated domain name matches the specified domain
name.
|
Step 23 |
match
unauthenticated-username
{username | regexp regular-expression }
Router(config-control-classmap)# match unauthenticated-username regexp examplename1
|
(Optional) Creates a condition that evaluates true if a subscriber’s unauthenticated username matches the specified username.
|
Step 24 |
match
vrf
{vrf-name | regexp regular-expression}
Router(config-control-classmap)# match vrf regexp examplename2
|
(Optional) Creates a condition that evaluates true if a subscriber’s VPN routing and forwarding (VRF) matches the specified
VRF.
|