- Configuring Asynchronous Serial Traffic Over UDP
- Modem Signal and Line States
- Configuring X.25 on ISDN Using AO/DI
- Configuring ISDN BRI
- Leased and Switched BRI Interface for ETSI NET3
- ISDN BCAC and Round-Robin Channel Selection Enhancements
- Configuring ISDN Special Signaling
- Configuring Snapshot Routing
- Reliable Static Routing Backup Using Object Tracking
- Configuring Dial Backup for Serial Lines
- Configuring Dial Backup with Dialer Profiles
- Dialer Watch Connect Delay
- Configuring Cisco Easy IP ..
- Configuring Virtual Profiles
- Configuring Virtual Template Interfaces
- Configuring Media-Independent PPP and Multilink PPP
- Customer Profile Idle Timer Enhancements for Interesting Traffic
- Troubleshooting Enhancements for Multilink PPP over ATM Link Fragmentation and Interleaving
- Configuring PPP Callback
- Configuring ISDN Caller ID Callback
- Configuring BACP
- Large-Scale Dial-Out (LSDO) VRF Aware
- Finding Feature Information
- Contents
- Prerequisites for Configuring Virtual Profiles
- Restrictions for Configuring Virtual Profiles
- Information About Configuring Virtual Profiles
Configuring Virtual Profiles
First Published: December 15, 1997
Last Updated: November 20, 2014
A virtual profile is a unique application that can create and configure a virtual access interface dynamically when a dial-in call is received and that can tear down the interface dynamically when the call ends.
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 Configuring Virtual Profiles” 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://www.cisco.com/go/cfn. An account on Cisco.com is not required.
Contents
Prerequisites for Configuring Virtual Profiles
Cisco recommends that unnumbered addresses be used in virtual template interfaces to ensure that duplicate network addresses are not created on virtual access interfaces (VAIs).
Restrictions for Configuring Virtual Profiles
The virtual-profile command was removed from Cisco IOS Release 12.2(34)SB and 12.2(33)XNE, because Cisco 10000 series routers do not support the full VAIs these releases create and configuration errors could occur.
Information About Configuring Virtual Profiles
This section provides information about virtual profiles for use with virtual access interfaces and how virtual profiles work. Virtual profiles run on all Cisco IOS platforms that support Multilink PPP (MLP). Virtual profiles interoperate with Cisco dial-on-demand routing (DDR), MLP, and dialers such as ISDN. To configure virtual profiles, you should understand the following concepts:
Virtual Profiles Overview
Virtual profiles support these encapsulation methods:
Any commands for these encapsulations that can be configured under a serial interface can be configured under a virtual profile stored in a user file on an authentication, authorization, and accounting (AAA) server and a virtual profile virtual template configured locally. The AAA server daemon downloads them as text to the network access server and is able to handle multiple download attempts.
The configuration information for a virtual profiles virtual access interface can come from a virtual template interface or from user-specific configuration stored on a AAA server, or both.
If a B interface is bound by the calling line identification (CLID) to a created virtual access interface cloned from a virtual profile or a virtual template interface, only the configuration from the virtual profile or the virtual template takes effect. The configuration on the D interface is ignored unless successful binding occurs by PPP name. Both the link and network protocols run on the virtual access interface instead of the B channel, unless the encapsulation is PPP.
Moreover, in previous releases of Cisco IOS software, downloading a profile from an AAA server and creating and cloning a virtual access interface was always done after the PPP call answer and link control protocol (LCP) up processes. The AAA download is part of authorization. But in the current release, these operations must be performed before the call is answered and the link protocol goes up. This restriction is a new AAA nonauthenticated authorization step. The virtual profile code handles multiple download attempts and identifies whether a virtual access interface was cloned from a downloaded virtual profile.
When a successful download is done through nonauthenticated authorization and the configuration on the virtual profile has encapsulation PPP and PPP authentication, authentication is negotiated as a separate step after LCP comes up.
The per-user configuration feature also uses configuration information gained from a AAA server. However, per-user configuration uses network configurations (such as access lists and route filters) downloaded during Network Control Protocol (NCP) negotiations.
Two rules govern virtual access interface configuration by virtual profiles, virtual template interfaces, and AAA configurations:
- Each virtual access application can have at most one template to clone from but can have multiple AAA configurations to clone from (virtual profiles AAA information and AAA per-user configuration, which in turn might include configuration for multiple protocols).
- When virtual profiles are configured by virtual template, its template has higher priority than any other virtual template.
DDR Configuration of Physical Interfaces
Virtual profiles fully interoperate with physical interfaces in the following DDR configuration states when no other virtual access interface application is configured:
- Dialer profiles are configured for the interface—The dialer profile is used instead of the virtual profiles configuration.
- DDR is not configured on the interface—Virtual profiles overrides the current configuration.
- Legacy DDR is configured on the interface—Virtual profiles overrides the current configuration.
Note If a dialer interface is used (including any ISDN dialer), its configuration is used on the physical interface instead of the virtual profiles configuration.
Multilink PPP Effect on Virtual Access Interface Configuration
As shown in Table 1 , exactly how a virtual access interface will be configured depends on the following three factors:
- Whether virtual profiles are configured by a virtual template, by AAA, by both, or by neither. In the table, these states are shown as “VP VT only,” “VP AAA only,” “VP VT and VP AAA,” and “No VP at all,” respectively.
- The presence or absence of a dialer interface.
- The presence or absence of MLP. The column label “MLP” is a stand-in for any virtual access feature that supports MLP and clones from a virtual template interface.
In Table 1 , “(Multilink VT)” means that a virtual template interface is cloned if one is defined for MLP or a virtual access feature that uses MLP.
|
No Dialer |
Dialer |
No Dialer |
Dialer |
---|---|---|---|---|
(Multilink VT)1 |
Dialer2 |
The order of items in any cell of the table is important. Where VP VT is shown above VP AAA, it means that first the virtual profile virtual template is cloned on the interface, and then the AAA interface configuration for the user is applied to it. The user-specific AAA interface configuration adds to the configuration and overrides any conflicting physical interface or virtual template configuration commands.
Interoperability with Other Features That Use Virtual Templates
Virtual profiles also interoperate with virtual access applications that clone a virtual template interface. Each virtual access application can have at most one template to clone from but can clone from multiple AAA configurations.
The interaction between virtual profiles and other virtual template applications is as follows:
- If virtual profiles are enabled and a virtual template is defined for it, the virtual profile virtual template is used.
- If virtual profiles are configured by AAA alone (no virtual template is defined for virtual profiles), the virtual template for another virtual access application (virtual private dialup networks or VPDNs, for example) can be cloned onto the virtual access interface.
- A virtual template, if any, is cloned to a virtual access interface before the virtual profiles AAA configuration or AAA per-user configuration. AAA per-user configuration, if used, is applied last.
How Virtual Profiles Work—Four Configuration Cases
This section describes virtual profiles and the various ways that they can work with virtual template interfaces, user-specific AAA interface configuration, and MLP or another feature that requires MLP.
Virtual profiles separate configuration information into two logical parts:
- Generic—Common configuration for dial-in users plus other router-dependent configuration. This common and router-dependent information can define a virtual template interface stored locally on the router. The generic virtual template interface is independent of and can override the configuration of the physical interface on which a user dialed in.
- User-specific interface information—Interface configuration stored in a user file on an AAA server; for example, the authentication requirements and specific interface settings for a specific user. The settings are sent to the router in the response to the request from the router to authenticate the user, and the settings can override the generic configuration. This process is explained more in the section “Virtual Profiles Configured by AAA” later in this chapter.
These logical parts can be used separately or together. Four separate cases are possible:
- Case 1: Virtual Profiles Configured by Virtual Template—Applies the virtual template.
- Case 2: Virtual Profiles Configured by AAA—Applies the user-specific interface configuration received from the AAA server.
- Case 3: Virtual Profiles Configured by Virtual Template and AAA Configuration—Applies the virtual template and the user-specific interface configuration received from the AAA server.
- Case 4: Virtual Profiles Configured by AAA, and a Virtual Template Defined by Another Application—Applies the other application’s virtual template interface and then applies the user-specific interface configuration received from the AAA server.
Note All cases assume that AAA is configured globally on the router, that the user has configuration information in the user file on the AAA server, that PPP authentication and authorization proceed as usual, and that the AAA server sends user-specific configuration information in the authorization approval response packet to the router.
The cases also assume that AAA works as designed and that the AAA server sends configuration information for the dial-in user to the router, even when virtual profiles by virtual template are configured.
Case 1: Virtual Profiles Configured by Virtual Template
In the case of virtual profiles configured by virtual template, the software functions as follows:
- If the physical interface is configured for dialer profiles (a DDR feature), the router looks for a dialer profile for the specific user.
- If a dialer profile is found, it is used instead of virtual profiles.
- If a dialer profile is not found for the user, or legacy DDR is configured, or DDR is not configured at all, virtual profiles create a virtual access interface for the user.
The router applies the configuration commands that are in the virtual template interface to create and configure the virtual profile. The template includes generic interface information and router-specific information, but no user-specific information. No matter whether a user dialed in on a synchronous serial, an asynchronous serial, or an ISDN interface, the dynamically created virtual profile for the user is configured as specified in the virtual template.
Then the router interprets the lines in the AAA authorization approval response from the server as Cisco IOS commands to apply to the virtual profile for the user.
Data flows through the virtual profile, and the higher layers treat it as the interface for the user.
For example, if a virtual template included only the three commands ip unnumbered ethernet 0, encapsulation ppp, and ppp authentication chap, the virtual profile for any dial-in user would include those three commands.
In Figure 1, the dotted box represents the virtual profile configured with the commands that are in the virtual template, no matter which interface the call arrives on.
Figure 1 Virtual Profiles by Virtual Template
See the “Configuring Virtual Profiles by Virtual Template” section for configuration tasks for this case.
Case 2: Virtual Profiles Configured by AAA
In this case, no dialer profile (a DDR feature) is defined for the specific user and no virtual template for virtual profiles is defined, but virtual profiles by AAA are enabled on the router.
During the PPP authorization phase for the user, the AAA server responds as usual to the router. The authorization approval contains configuration information for the user. The router interprets each of the lines in the AAA response from the server as Cisco IOS commands to apply to the virtual profile for the user.
Note If MLP is negotiated, the MLP virtual template is cloned first (this is the second row), and then interface-specific commands included in the AAA response from the server for the user are applied. The MLP virtual template overrides any conflicting interface configuration, and the AAA interface configuration overrides any conflicting configuration from both the physical interface and the MLP virtual template.
The router applies all the user-specific interface commands received from the AAA server.
Suppose, for example, that the router interpreted the response by the AAA server as including only the following two commands for this user:
In Figure 2, the dotted box represents the virtual profile configured only with the commands received from the AAA server, no matter which interface the incoming call arrived on. On the AAA RADIUS server, the attribute-value (AV) pair might have read as follows, where “\n” means to start a new command line:
Figure 2 Virtual Profiles by AAA Configuration
See the “Configuring Virtual Profiles by AAA Configuration” section for configuration tasks for this case.
Case 3: Virtual Profiles Configured by Virtual Template and AAA Configuration
In this case, no DDR dialer profile is defined for the specific user, a virtual template for virtual profiles is defined, virtual profiles by AAA is enabled on the router, the router is configured for AAA, and a user-specific interface configuration for the user is stored on the AAA server.
The router performs the following tasks in order:
1. Dynamically creates a virtual access interface cloned from the virtual template defined for virtual profiles.
2. Applies the user-specific interface configuration received from the AAA server.
If any command in the user’s configuration conflicts with a command on the original interface or a command applied by cloning the virtual template, the user-specific command overrides the other command.
Suppose that the router had the virtual template as defined in Case 1 and the AAA user configuration as defined in Case 2. In Figure 3 the dotted box represents the virtual profile configured with configuration information from both sources, no matter which interface the incoming call arrived on. The ip address command has overridden the ip unnumbered command.
Figure 3 Virtual Profiles by Both Virtual Template and AAA Configuration
See the “Configuring Virtual Profiles by Both Virtual Template and AAA Configuration” section for configuration tasks for this case.
Case 4: Virtual Profiles Configured by AAA, and a Virtual Template Defined by Another Application
In this case, no DDR dialer profile is defined for the specific user, virtual profiles by AAA are configured on the router but no virtual template is defined for virtual profiles, and a user-specific interface configuration is stored on the AAA server. In addition, a virtual template is configured for some other virtual access application (a VPDN, for example).
The router performs the following tasks in order:
1. Dynamically creates a virtual access interface and clones the virtual template from the other virtual access application onto it.
2. Applies the user-specific interface configuration received from the AAA server.
If any command in the virtual template conflicts with a command on the original interface, the template overrides it.
If any command in the AAA interface configuration for the user conflicts with a command in the virtual template, the user AAA interface configuration conflicts will override the virtual template.
If per-user configuration is also configured on the AAA server, that network protocol configuration is applied to the virtual access interface last.
How to Configure Virtual Profiles
To configure virtual profiles for dial-in users, perform the tasks in one of the first three sections and then troubleshoot the configuration by performing the tasks in the last section:
- Configuring Virtual Profiles by Virtual Template (as required)
- Configuring Virtual Profiles by AAA Configuration (as required)
- Configuring Virtual Profiles by Both Virtual Template and AAA Configuration (as required)
- Troubleshooting Virtual Profile Configurations (as required)
Note Do not define a DDR dialer profile for a user if you intend to define virtual profiles for the user.
Configuring Virtual Profiles by Virtual Template
To configure virtual profiles by virtual template, complete these two tasks:
- Creating and Configuring a Virtual Template Interface
- Specifying a Virtual Template Interface for Virtual Profiles
Note The order in which these tasks is performed is not crucial. However, both tasks must be completed before virtual profiles are used.
Creating and Configuring a Virtual Template Interface
Because a virtual template interface is a serial interface, all the configuration commands that apply to serial interfaces can also be applied to virtual template interfaces, except shutdown and dialer commands.
To create and configure a virtual template interface, use the following commands:
Other optional PPP configuration commands can be added to the virtual template configuration. For example, you can add the ppp authentication chap command.
Specifying a Virtual Template Interface for Virtual Profiles
To specify a virtual template interface as the source of information for virtual profiles, use the following command:
|
|
---|---|
Specifies the virtual template interface as the source of information for virtual profiles. |
Configuring Virtual Profiles by AAA Configuration
To configure virtual profiles by AAA only, complete these three tasks in any order. All tasks must be completed before virtual profiles are used.
- On the AAA server, create user-specific interface configurations for each of the specific users to use this method. See your AAA server documentation for more detailed configuration information about your AAA server.
- Configure AAA on the router, as described in the Cisco IOS Security Configuration Guide.
- Specify AAA as the source of information for virtual profiles.
To specify AAA as the source of information for virtual profiles, use the following command:
If you also want to use per-user configuration for network protocol access lists or route filters for individual users, see the chapter “Configuring Per-User Configuration” in this publication. In this case, no virtual template interface is defined for virtual profiles.
Configuring Virtual Profiles by Both Virtual Template and AAA Configuration
Use of user-specific AAA interface configuration information with virtual profiles requires the router to be configured for AAA and requires the AAA server to have user-specific interface configuration AV pairs. The relevant AV pairs (on a RADIUS server) begin as follows:
The information that follows the equal sign (=) could be any Cisco IOS interface configuration command. For example, the line might be the following:
Use of a virtual template interface with virtual profiles requires a virtual template to be defined specifically for virtual profiles.
To configure virtual profiles by both virtual template interface and AAA configuration, complete the following tasks in any order. All tasks must be completed before virtual profiles are used.
- On the AAA server, create user-specific interface configurations for each of the specific users to use this method. See your AAA server documentation for more detailed configuration information about your AAA server.
- Configure AAA on the router, as described in the Cisco IOS Security Configuration Guide publication.
- Creating and configuring a virtual template interface, described later in this chapter.
- Specifying virtual profiles by both virtual templates and AAA, described later in this chapter.
Creating and Configuring a Virtual Template Interface
To create and configure a virtual template interface, use the following commands:
Because the software treats a virtual template interface as a serial interface, all the configuration commands that apply to serial interfaces can also be applied to virtual template interfaces, except shutdown and dialer commands. Other optional PPP configuration commands can also be added to the virtual template configuration. For example, you can add the ppp authentication chap command.
Specifying Virtual Profiles by Both Virtual Templates and AAA
To specify both the virtual template interface and the AAA per-user configuration as sources of information for virtual profiles, use the following commands:
|
|
|
---|---|---|
Defines the virtual template interface as the source of information for virtual profiles. |
||
Specifies AAA as the source of user-specific configuration for virtual profiles. |
If you also want to use per-user configuration for network protocol access lists or route filters for individual users, see the Configuring per-User Configuration feature.
Troubleshooting Virtual Profile Configurations
To troubleshoot the virtual profiles configurations, use any of the following debug commands:
Configuration Examples for Virtual Profiles
The following sections provide examples for the four cases described in this chapter:
- Virtual Profiles Configured by Virtual Templates: Example
- Virtual Profiles Configured by AAA Configuration: Example
- Virtual Profiles Configured by Virtual Templates and AAA Configuration: Example
- Virtual Profiles Configured by AAA Plus a VPDN Virtual Template on a VPDN Home Gateway: Example
In these examples, BRI 0 is configured for legacy DDR, and interface BRI 1 is configured for dialer profiles. Note that interface dialer 0 is configured for legacy DDR. Interface dialer 1 is a dialer profile.
The intention of the examples is to show how to configure virtual profiles. In addition, the examples show the interoperability of DDR and dialer profiles in the respective cases with various forms of virtual profiles.
The same user names (User1 and User2) occur in all these examples. Note the different configuration allowed to them in each of the four examples.
User1 is a normal user and can dial in to BRI 0 only. User2 is a privileged user who can dial in to BRI 0 and BRI 1. If User2 dials into BRI 1, the dialer profile will be used. If User2 dials into BRI 0, virtual profiles will be used. Because User1 does not have a dialer profile, only virtual profiles can be applied to User1.
To see an example of a configuration using virtual profiles and the Dynamic Multiple Encapsulations feature, see the “Multiple Encapsulations over ISDN” example in the chapter “Configuring Peer-to-Peer DDR with Dialer Profiles.”
Virtual Profiles Configured by Virtual Templates: Example
The following example shows a router configured for virtual profiles by virtual template. (Virtual profiles do not have any interface-specific AAA configuration.) Comments in the example draw attention to specific features or ignored lines.
In this example, the same virtual template interface applies to both users; they have the same interface configurations.
Virtual Profiles Configured by AAA Configuration: Example
The following example shows the router configuration for virtual profiles by AAA and the AAA server configuration for user-specific interface configurations. User1 and User2 have different IP addresses.
In the AAA configuration cisco-avpair lines, “\n” is used to indicate the start of a new Cisco IOS command line.
AAA Configuration for User1 and User2
Virtual Profiles Configured by Virtual Templates and AAA Configuration: Example
The following example shows how virtual profiles can be configured by both virtual templates and AAA configuration. User1 and User2 can dial in from anywhere and have their same keepalive settings and their own IP addresses.
The remaining AV pair settings are not used by virtual profiles. They are the network protocol access lists and route filters used by AAA-based per-user configuration.
In the AAA configuration cisco-avpair lines, “\n” is used to indicate the start of a new Cisco IOS command line.
AAA Configuration for User1 and User2
Virtual Profiles Configured by AAA Plus a VPDN Virtual Template on a VPDN Home Gateway: Example
Like the virtual profiles configured by AAA example earlier in this section, the following example shows the router configuration for virtual profiles by AAA. The user file on the AAA server also includes interface configuration for User1 and User2, the two users. Specifically, User1 and User2 each have their own IP addresses when they are in privileged mode.
In this case, however, the router is also configured as the VPDN home gateway. It clones the VPDN virtual template interface first and then clones the virtual profiles AAA interface configuration. If per-user configuration were configured on this router and the user file on the AAA server had network protocol information for the two users, that information would be applied to the virtual access interface last.
In the AAA configuration cisco-avpair lines, “\n” is used to indicate the start of a new Cisco IOS command line.
AAA Configuration for User1 and User2
Additional References
The following sections provide references related to configuring virtual profiles.
Related Documents
|
|
---|---|
Standards
|
|
---|---|
MIBs
|
|
---|---|
To locate and download MIBs for selected platforms, Cisco IOS releases, and feature sets, use Cisco MIB Locator found at the following URL: |
RFCs
|
|
---|---|
Technical Assistance
Feature Information for Configuring Virtual Profiles
Table 2 lists the features in this module and provides links to specific configuration information.
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://www.cisco.com/go/cfn. An account on Cisco.com is not required.
Note Table 2 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.