![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Beginning with Cisco IOS Release 11.2, virtual interface templates can be configured independently of any physical interface and applied dynamically, as needed, to create virtual access interfaces. When a user dials in, a predefined configuration template is used to configure a virtual access interface; when the user is done, the virtual access interface goes down and the resources are freed for other dialin uses.
The Virtual Interface Template Service feature provides a generic service that can be used to apply predefined configurations (virtual interface templates) in creating and freeing virtual access interfaces on the fly, as needed.
Virtual interface templates are serial interface configurations with no hardware associations, and virtual access interfaces are virtual interfaces that are created, configured dynamically, and freed as needed. The following limitations apply:
Virtual interface templates are one possible source of configuration information for a virtual access interface.
Some applications use only virtual interface templates; for example, Multilink PPP and Multichassis Multilink PPP.
Some applications can take configuration information from multiple sources; for example, virtual profiles can take configuration information from a virtual interface template, or from a user's configuration information stored on an AAA server, or both. The result of using both sources is a virtual access interface uniquely configured for a specific dialin user.
Figure 21 illustrates that a router can create a virtual access interface by first using the information from a virtual interface template (if any is defined for the application) and then using the information in a per-user configuration (if AAA is configured on the router and per-user configuration is defined for the specific user).
The virtual interface template service provides the following benefits to customers with large numbers of dial-in users:
cloning--Creating and configuring a virtual access interface by applying a specific virtual template. The virtual template is the source of the generic user information and router-dependent information. The result of cloning is a virtual access interface configured with all the commands in the template.
virtual access interface--Instance of a unique virtual interface that is created dynamically and exists temporarily. Virtual access interfaces can be created and configured differently by different applications, such as virtual profiles and virtual private dialup networks.
virtual interface template--Generic configuration of an interface for a certain purpose or configuration common to certain users, plus router-dependent information. This takes the form of a list of Cisco IOS interface commands to be applied to the virtual interface as needed. Several applications can apply virtual interface templates, but generally each application uses a single template. Each virtual interface template is identified by number.
virtual profile--Unique virtual access interface created dynamically for a specific user when the user calls in and torn down dynamically when the call disconnects. The sources of configuration information for the virtual profile can be
This is a partial list of features that apply virtual interface templates to create virtual access interfaces dynamically and the Cisco IOS software releases in which they were introduced:
This feature is supported on all platforms that support Multilink PPP:
All prerequisites depend on the feature that is applying a virtual interface template to create a virtual access interface. Virtual interface templates themselves have no other prerequisites.
The order in which you create virtual interface templates and virtual profiles, and configure the features that use the templates and profiles, is not important. They must exist, however, before someone calling in can use them.
To create and configure a virtual interface template, compete the tasks in this section. To apply a virtual interface template, refer to the specific features that apply the virtual template.
Because a virtual interface template is a serial interface, all the configuration commands that apply to serial interfaces can also be applied to virtual interface templates, except shutdown and dialer commands.
To create and configure a virtual interface template, complete the following tasks beginning in global configuration mode:
Other optional PPP configuration commands can be added to the virtual template configuration. For example, you can add the ppp authentication chap command.
When a virtual interface template or a user's configuration on an AAA server or both are applied dynamically, a virtual access interface is created. Although a virtual access interface cannot be created and configured directly, it can be displayed and cleared.
To display or clear a specific virtual access interface, perform the relevant task:
The following example enabled virtual profiles by virtual template only and configures a virtual interface template that can be applied to any dial-in user.
virtual-profile virtual-template 1 interface virtual-template 1 ip unnumbered ethernet 0 encapsulation ppp ppp authentication chap
The following two examples configure a virtual interface template and then display the configuration of a virtual access interface when the template interface has been applied. The first example uses a named IPX access list.
interface virtual-template 1 ip unnumbered Ethernet0 ipx ppp-client Loopback2 no cdp enable ppp authentication chap
This example displays the configuration of the active virtual access interface that was configured by virtual-template 1, defined in the example immediately above:
Router#show interface virtual-access 1
configuration
Virtual-Access1 is a L2F link interface interface Virtual-Access1 configuration... ip unnumbered Ethernet0 ipx ppp-client Loopback2 no cdp enable ppp authentication chap
MLP and MMP commands that use virtual access templates were introduced in Cisco IOS Release 11.2.
New features that define and use virtual interface templates are described in other chapters of this feature guide.
This section documents new or modified debug commands. All other commands used with this feature are documented in the Cisco IOS Release 11.2 command references.
To display cloning information for a virtual access interface from the time it is cloned from a virtual template to the time the virtual access interface comes down when the call ends, use the debug vtemplate privileged EXEC command.
debug vtemplateFigure 22 shows sample output from the debug vtemplate command.
Virtual access interface is coming up and it is cloned from virtual template 1.
seraph# debug vtemplate
Virtual Template debugging is on
seraph#
VTEMPLATE Reuse vaccess8, New Recycle queue size:50
VTEMPLATE set default vaccess8 with no ip address
Virtual-Access8 VTEMPLATE hardware address 0000.0c09.ddfd
VTEMPLATE vaccess8 has a new cloneblk vtemplate, now it has vtemplate
VTEMPLATE undo default settings vaccess8
VTEMPLATE ************* CLONE VACCESS8 *****************
VTEMPLATE Clone from vtemplate1 to vaccess8
interface Virtual-Access8
no ip address
encap ppp
ip unnumbered Ethernet0
no ip mroute-cache
fair-queue 64 256 0
no cdp enable
ppp authentication chap
end
%LINK-3-UPDOWN: Interface Virtual-Access8, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Virtual-Access8, changed state to up
Virtual access interface is going down, it is uncloned and return to the recycle queue.
%LINK-3-UPDOWN: Interface Virtual-Access8, changed state to down VTEMPLATE Free vaccess8 %LINEPROTO-5-UPDOWN: Line protocol on Interface Virtual-Access8, changed state to down VTEMPLATE clean up dirty vaccess queue, size:1 VTEMPLATE Found a dirty vaccess8 clone with vtemplate VTEMPLATE ************ UNCLONE VACCESS8 ************** VTEMPLATE Unclone to-be-freed vaccess8 command#7 interface Virtual-Access8 default ppp authentication chap default cdp enable default fair-queue 64 256 0 default ip mroute-cache default ip unnumbered Ethernet0 default encap ppp default ip address end VTEMPLATE set default vaccess8 with no ip address VTEMPLATE remove cloneblk vtemplate from vaccess8 with vtemplate VTEMPLATE Add vaccess8 to recycle queue, size=51
Table 20 explains the lines in the sample output.
Field | Description |
---|---|
VTEMPLATE Reuse vaccess8, New Recycle queue size:50 VTEMPLATE set default vaccess8 with no ip address | Virtual access interface 8 is reused; the current queue size is 50. |
Virtual-Access8 VTEMPLATE hardware address 0000.0c09.ddfd | MAC address of virtual interface 8. |
VTEMPLATE vaccess8 has a new cloneblk vtemplate, now it has vtemplate | Recording that virtual access interface 8 is cloned from the virtual interface template. |
VTEMPLATE undo default settings vaccess8 | Removing the default settings. |
VTEMPLATE ************* CLONE VACCESS8 ********** ******* | Banner: Cloning is in progress on virtual access interface 8. |
VTEMPLATE Clone from vtemplate1 to vaccess8
interface Virtual-Access8 | The specific configuration commands in virtual interface template 1 that are being applied to the virtual access interface 8. |
%LINK-3-UPDOWN: Interface Virtual-Access8, changed state to up | Link status: The link is up. |
%LINEPROTO-5-UPDOWN: Line protocol on Interface Virtual-Access8, changed state to up | Line protocol status: The line protocol is up. |
VIRTUAL ACCESS INTERFACE IS GOING DOWN, IT IS UNCLONED AND RETURN TO THE RECYCLE QUEUE. | The call has ended. The virtual access interface is going down; resources are going to be returned for other dial uses. |
%LINK-3-UPDOWN: Interface Virtual-Access8, changed state to down | Link status: The link is down. |
VTEMPLATE Free vaccess8 | Freeing virtual access interface 8. |
%LINEPROTO-5-UPDOWN: Line protocol on Interface Virtual-Access8, changed state to down | Line protocol status: The line protocol is down. |
VTEMPLATE clean up dirty vaccess queue, size:1 VTEMPLATE Found a dirty vaccess8 clone with vtemplate VTEMPLATE ************ UNCLONE VACCESS8 ************** | The access queue cleanup is proceeding and the template is being uncloned. |
VTEMPLATE Unclone to-be-freed vaccess8 command#7
interface Virtual-Access8 | The specific configuration commands to be removed from the virtual access interface 8. |
VTEMPLATE set default vaccess8 with no ip address | The default is set again. |
VTEMPLATE remove cloneblk vtemplate from vaccess8 with vtemplate | Removing the record of cloning from a virtual interface template. |
VTEMPLATE Add vaccess8 to recycle queue, size=51 | The virtual access interface is added to the recycle queue. |
You can configure the feature that applies the virtual interface template you have defined. Refer to the documentation for that feature.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |