Table Of Contents
RADIUS Attribute 104
First Published: March 1, 2004Last Updated: September 8, 2009
The RADIUS Attribute 104 feature allows private routes (attribute 104) to be specified in a RADIUS authorization profile. The private routes affect only packets that are received on an individual interface. The routes are stored apart from the global routing table and are not injected into any routing protocols for redistribution.
Finding Feature Information
Your software release may not support all the features documented in this module. For the latest feature information and caveats, see the release notes for your platform and software release. To find information about the features documented in this module, and to see a list of the releases in which each feature is supported, see the "Feature Information for RADIUS Attribute 104" section.
Use Cisco Feature Navigator to find information about platform support and Cisco IOS and Catalyst OS software image support. To access Cisco Feature Navigator, go to http://tools.cisco.com/ITDIT/CFN/jsp/index.jsp. An account on Cisco.com is not required.
Prerequisites for RADIUS Attribute 104
•You must be using a Cisco RADIUS server.
•You should be familiar with configuring RADIUS.
•You should be familiar with policy-based routing (PBR) and private routes.
•You should be familiar with configuring access control lists (ACLs).
•Before using the RADIUS Attribute 104 feature, you must configure RADIUS AAA authorization and RADIUS route download.
•The following memory bytes are required:
–One route map—50 bytes.
–One match-set clause—600 bytes.
–One extended ACL—366 bytes.
–For N number of attribute 104s, the memory requirement is (600+366)*N+50=1000*N(approximate) per user.
Restrictions for RADIUS Attribute 104
•If you already have PBR locally (statically) configured under the interface, and you specify attribute 104, the locally configured PBR will be disabled.
•If a pseudo next-hop address is involved, there must be a route available in the routing table for the next-hop address. If a route is not available, the packet will not be policy routed.
•Policy routing does not order the match-set clauses and relies on the first match, so you should specify the attributes in the order in which you want them to be matched.
•Metric numbers cannot be used in the attribute.
Information About RADIUS Attribute 104
Before using the RADIUS Attribute 104 feature, you should understand the following concepts:
Policy-Based Routing: Background
PBR provides a mechanism for the forwarding, or routing of, data packets on the basis of defined policies. The policies are not wholly dependent on the destination address but rather on other factors, such as type of service, source address, precedence, port numbers, or protocol type.
Policy-based routing is applied to incoming packets. All packets that are received on an interface that has policy-based routing enabled are considered for policy-based routing. The router passes the packets through enhanced packet filters called route maps. On the basis of the criteria that are defined in the route maps, the packets are forwarded to the appropriate next hop.
Each entry in a route map statement contains a combination of match clauses and set clauses or commands. The match clauses define the criteria for whether appropriate packets meet the particular policy (that is, whether the conditions are met). The set clauses provide instruction for how the packets should be routed after they have met the match criteria. The match clause specifies which set of filters a packet must match for the corresponding set clause to be applied.
Attribute 104 and the Policy-Based Route Map
This section discusses the attribute 104 feature and how it works with policy-based route maps.
RADIUS Attribute 104 Overview
Using the RADIUS Attribute 104 feature, you can specify private routes in your RADIUS authorization profile. The private routes you specify will affect only packets that are received on an individual interface. The routes are stored apart from the global routing table and are not injected into any routing protocols for redistribution.
Permit Route Map
Route map statements can be marked as "permit" or "deny." If the statement is marked "permit," the set clause is applied to the packets that match the match criteria. For attribute 104, when you are configuring the route map, you need to mark the route map as "permit," as follows. See "Related Documents" section for where to find information on configuring a route map.
Default Private Route
The policy routing process proceeds through the route map until a match is found. If no match is found in the route map, the global routing table is consulted. If you have specified a default route in your user profile, any further routes beyond the default route are effectively ignored.
Route Map Order
You need to specify route maps on the server in the order that you want them to be applied.
How to Apply RADIUS Attribute 104
This section contains the following procedures:
Applying RADIUS Attribute 104 to Your User Profile
You can apply RADIUS attribute 104 to your user profile by adding the following to the RADIUS server database.
1. Apply RADIUS attribute 104 to your user profile.
The following is a sample user profile that creates three private routes that are associated with the caller:username Password="ascend"; User-Service=Framed-UserFramed-Protocol=PPP,Framed-Address=10.1.1.1,Framed-Netmask=255.0.0.0,Ascend-Private-Route="172.16.1.1/16 10.10.10.1"Ascend-Private-Route="192.168.1.1/32 10.10.10.2"Ascend-Private-Route="10.20.0.0/1 10.10.10.3"Ascend-Private-Route="10.0.0.0/0 10.10.10.4"
Using the above profile, the private routing table for the connection contains the following routes, including a default route:Destination/Mask Gateway172.16.1.1/16 10.10.10.119188.8.131.52/32 10.10.10.210.20.20.20/1 10.10.10.310.0.0.0/0 10.10.10.4
Verifying Route Maps
You can use the following show commands to verify the route maps that have been configured.
2. show ip policy
3. show route-map [map-name | dynamic [dynamic-map-name | application [application-name]] | all]
Troubleshooting the RADIUS Profile
If your private route configuration is not working properly, you may want to reread the section ""Policy-Based Routing: Background" section." This section may help you determine what is happening to the packets. In addition, the following debug commands can be used to troubleshoot your RADIUS profile.
2. debug radius
3. debug aaa per-user
4. debug ip policy
Configuration Examples for RADIUS Attribute 104
This section includes the following configuration example:
Route-Map Configuration in Which Attribute 104 Has Been Applied: Example
The following output is a typical route-map configuration to which attribute 104 has been applied:Router# show route-map dynamicroute-map AAA-01/08/04-14:13:59.542-1-AppSpec, permit, sequence 0, identifier 1639994476Match clauses:ip address (access-lists): PBR#1 PBR#2Set clauses:Policy routing matches: 0 packets, 0 bytesroute-map AAA-01/08/04-14:13:59.542-1-AppSpec, permit, sequence 1, identifier 1640264784Match clauses:ip address (access-lists): PBR#3 PBR#4Set clauses:Policy routing matches: 0 packets, 0 bytesroute-map AAA-01/08/04-14:13:59.542-1-AppSpec, permit, sequence 2, identifier 1645563704Match clauses:ip address (access-lists): PBR#5 PBR#6length 10 100Set clauses:ip next-hop 10.1.1.1ip gateway10.1.1.1Policy routing matches: 0 packets, 0 bytesCurrent active dynamic routemaps = 1
The following sections provide references related to RADIUS Attribute 104 feature.
Related Topic Document Title
"Configuring RADIUS" feature module.
Configuring policy-based routing
"Classifying Network Traffic" feature module.
Configuring access control lists
"IP Access List Overview" feature module.
Configuring RADIUS AAA authorization and RADIUS route download
"RADIUS Route Download" feature module.
Quality of Service (QoS) commands (for policy-based routing commands)
MIBs MIBs Link
To locate and download MIBs for selected platforms, Cisco IOS releases, and feature sets, use Cisco MIB Locator found at the following URL:
Feature Information for RADIUS Attribute 104
Table 1 lists the release history for this feature.
Not all commands may be available in your Cisco IOS software release. For release information about a specific command, see the command reference documentation.
Use Cisco Feature Navigator to find information about platform support and software image support. Cisco Feature Navigator enables you to determine which Cisco IOS and Catalyst OS software images support a specific software release, feature set, or platform. To access Cisco Feature Navigator, go to http://tools.cisco.com/ITDIT/CFN/jsp/index.jsp. An account on Cisco.com is not required.
Note Table 1 lists only the Cisco IOS software release that introduced support for a given feature in a given Cisco IOS software release train. Unless noted otherwise, subsequent releases of that Cisco IOS software release train also support that feature.
Cisco and the Cisco Logo are trademarks of Cisco Systems, Inc. and/or its affiliates in the U.S. and other countries. A listing of Cisco's trademarks can be found at www.cisco.com/go/trademarks. Third party trademarks mentioned are the property of their respective owners. The use of the word partner does not imply a partnership relationship between Cisco and any other company. (1005R)
Any Internet Protocol (IP) addresses and phone numbers used in this document are not intended to be actual addresses and phone numbers. Any examples, command display output, network topology diagrams, and other figures included in the document are shown for illustrative purposes only. Any use of actual IP addresses or phone numbers in illustrative content is unintentional and coincidental.
© 2004-2009 Cisco Systems, Inc. All rights reserved.