Table Of Contents
Restrictions for PPPoE Profiles
Information About PPPoE Profiles
How to Configure PPPoE Profiles
Assigning a PPPoE Profile to an Ethernet Interface
Assigning a PPPoE Profile to an ATM PVC
Assigning a PPPoE Profile to an ATM PVC Range and PVC-in-Range
Assigning a PPPoE Profile to an ATM VC Class
Configuring PPPoE Vendor Tag Processing
Monitoring and Maintaining PPPoE Profiles
Configuration Examples for PPPoE Profiles
PPPoE Profiles Configuration Example
PPPoE Profiles
The PPPoE Profiles feature introduces PPP over Ethernet (PPPoE) profiles, which contain configuration information for a group of PPPoE sessions. Multiple PPPoE profiles can be defined on a device, allowing different virtual templates and other PPPoE configuration parameters to be assigned to different Ethernet interfaces, VLANs, and ATM permanent virtual circuits (PVCs).
Feature Specifications for PPPoE Profiles
Finding Support Information for Platforms and Cisco IOS Software Images
Use Cisco Feature Navigator to find information about platform support and Cisco IOS software image support. Access Cisco Feature Navigator at http://www.cisco.com/go/fn. You must have an account on Cisco.com. If you do not have an account or have forgotten your username or password, click Cancel at the login dialog box and follow the instructions that appear.
Contents
•
Restrictions for PPPoE Profiles
•
Information About PPPoE Profiles
•
How to Configure PPPoE Profiles
•
Configuration Examples for PPPoE Profiles
Restrictions for PPPoE Profiles
The PPPoE Profiles feature separates the configuration of PPPoE from virtual private dial-up network (VPDN). The legacy method of configuring PPPoE in VPDN groups is still permitted, but you cannot configure PPPoE profiles and PPPoE in VPDN groups simultaneously.
If a PPPoE profile is assigned to a PPPoE port (Ethernet interface, VLAN, or PVC), virtual circuit (VC) class, or ATM PVC range and the profile has not yet been defined, the port, VC class, or range will not have any PPPoE parameters configured and will not use parameters from the global group.
PPPoE session limits cannot be configured both in PPPoE profiles and directly on PPPoE ports simultaneously.
Information About PPPoE Profiles
To configure the PPPoE Profiles feature, you should understand the following concepts:
PPPoE Profiles
PPPoE profiles contain configuration information for PPPoE sessions. Once a profile has been defined, it can be assigned to a PPPoE port (Ethernet interface, VLAN, or PVC), a VC class, or an ATM PVC range. PPPoE profiles can also be used for PPPoE sessions established by PPPoA/PPPoE autosense. Multiple PPPoE profiles can be created and assigned to different ports. A global PPPoE profile can also be created; it serves as the default profile for any port that has not been assigned a specific PPPoE profile.
Benefits of PPPoE Profiles
Before the introduction of this feature, PPPoE parameters were configured within a VPDN group. Configuring PPPoE in a VPDN group limited PPPoE configuration options because only one PPPoE VPDN group with one virtual template is permitted on a device. The PPPoE Profiles feature provides simplicity and flexibility in PPPoE configuration by separating PPPoE from VPDN configuration. The PPPoE Profiles feature allows multiple PPPoE profiles, each with a different configuration, to be used on a single device.
PPPoE Vendor Tag Processing
The PPPoE vendor tag processing feature enables Ethernet-based access network services by providing a mechanism for a PPPoE Broadband Remote Access Server (BRAS) to map a subscriber's circuit ID (that is, the line ID) to a specific Ethernet interface.
A Digital Subscriber Line Multiplexer (DSLAM) can be configured to insert a unique circuit-id tag into a PPPoE Active Discovery Initiation/PPPoE Active Discovery Request (PADI/PADR) frame. You can create a PPPoE profile to enable the PPPoE BRAS to process the vendor-tag and either to send the circuit-id portion of the tag (as the NAS-Port-ID attribute) to the RADIUS server in all AAA access requests, or to strip the vendor tag from outgoing PPPoE Active Discovery Offer (PADO) and PPPoE Active Discovery Session (PADS) frames.
How to Configure PPPoE Profiles
This section contains the following procedures. The first is required, and any one of the next four is required.
•
Defining a PPPoE Profile (required)
•
Assigning a PPPoE Profile to an Ethernet Interface (optional)
•
Assigning a PPPoE Profile to an ATM PVC (optional)
•
Assigning a PPPoE Profile to an ATM PVC Range and PVC-in-Range (optional)
•
Assigning a PPPoE Profile to an ATM VC Class (optional)
•
Monitoring and Maintaining PPPoE Profiles (optional)
Defining a PPPoE Profile
Perform this task to define a PPPoE profile.
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
bba-group pppoe {group-name | global}
4.
virtual-template template-number
5.
sessions max limit number-of-sessions [threshold threshold-value]
6.
sessions per-mac limit per-mac-limit
7.
sessions per-vlan limit per-vlan-limit
8.
sessions per-vc limit per-vc-limit [threshold threshold-value]
9.
ac name name
10.
end
DETAILED STEPS
Assigning a PPPoE Profile to an Ethernet Interface
Perform this task to assign a PPPoE profile to an Ethernet interface.
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
interface ethernet number
4.
pppoe enable [group group-name]
5.
end
DETAILED STEPS
Assigning a PPPoE Profile to an ATM PVC
Perform this task to assign a PPPoE profile to an ATM PVC.
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
interface ATM number [point-to-point | multipoint]
4.
pvc vpi/vci
5.
protocol pppoe [group group-name]
or
encapsulation aal5autoppp virtual-template number [group group-name]
6.
end
DETAILED STEPS
Assigning a PPPoE Profile to an ATM PVC Range and PVC-in-Range
Perform this task to assign a PPPoE profile to an ATM PVC range and PVC within a range.
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
interface atm number [point-to-point | multipoint]
4.
range [range-name] pvc start-vpi/start-vci end-vpi/end-vci
5.
protocol pppoe [group group-name]
or
encapsulation aal5autoppp virtual-template number [group group-name]
6.
pvc-in-range [pvc-name] [[vpi/]vci]
7.
protocol pppoe [group group-name]
or
encapsulation aal5autoppp virtual-template number [group group-name]
8.
end
DETAILED STEPS
Assigning a PPPoE Profile to an ATM VC Class
Perform this task to assign a PPPoE profile to an ATM class.
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
vc-class atm vc-class-name
4.
protocol pppoe [group group-name]
or
encapsulation aal5autoppp virtual-template number [group group-name]
5.
end
DETAILED STEPS
Configuring PPPoE Vendor Tag Processing
Perform this task to configure a PPPoE server to process the vendor tag in an incoming PADI/PADR frame. This enables the PPPoE server to send the circuit-id part of the tag to a remote RADIUS server in AAA requests. Optionally, you can configure the PPPoE server to remove the vendor tag in outgoing PPPoE Active Discovery Offer (PADO) and PPPoE Active Discovery Session (PADS) frames by using the vendor-tag circuit-id strip command.
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
bba-group pppoe [group-name]
4.
vendor-tag circuit-id service
5.
vendor-tag circuit-id strip
6.
interface type number
7.
encapsulation dot1Q vlan-id
8.
pppoe-enable [group group-name]
9.
end
DETAILED STEPS
Monitoring and Maintaining PPPoE Profiles
Perform this task to monitor and maintain PPPoE profiles.
SUMMARY STEPS
1.
enable
2.
show pppoe session [all | packets]
3.
clear pppoe {interface type number [vc {[vpi/]vci | vc-name}] | rmac mac-addr [sid session-id ] | all}
4.
debug pppoe {data | errors | events | packets} [rmac remote-mac-address | interface type number [vc {[vpi/]vci | vc-name}]]
DETAILED STEPS
Configuration Examples for PPPoE Profiles
This section provides the following configuration example:
•
PPPoE Profiles Configuration Example
PPPoE Profiles Configuration Example
The following example shows the configuration of three PPPoE profiles: "vpn1", "vpn2", and a global PPPoE profile. The profiles "vpn1" and "vpn2" are assigned to PVCs, VC classes, VLANs, and PVC ranges. Any Ethernet interface, VLAN, PVC, PVC range, or VC class that is configured for PPPoE but is not assigned either profile "vpn1" or "vpn2" (such as VC class "class-pppoe-global") will use the global profile.
vpdn enable
!
vpdn-group 1
request-dialin
protocol l2tp
domain vpn1
initiate-to ip 103.12.1.64 priority 1
local name NAS1-1
!
vpdn-group 2
request-dialin
protocol l2tp
domain vpn2
initiate-to ip 103.12.2.64 priority 1
local name NAS1-2
!
virtual-template 1 pre-clone 20
virtual-template 2 pre-clone 20
!
bba-group pppoe global
virtual-template 1
sessions max limit 8000
sessions per-vc limit 8
sessions per-mac limit 2
!
bba-group pppoe vpn1
virtual-template 1
sessions per-vc limit 2
sessions per-mac limit 1
!
bba-group pppoe vpn2
virtual-template 2
sessions per-vc limit 2
sessions per-mac limit 1
!
vc-class atm class-pppoe-global
protocol pppoe
!
vc-class atm class-pppox-auto
encapsulation aal5autoppp virtual-template 1 group vpn1
!
vc-class atm class-pppoe-1
protocol pppoe group vpn1
!
vc-class atm class-pppoe-2
protocol pppoe group vpn2
!
interface Loopback1
ip address 1.1.1.1 255.255.255.0
!
interface ATM1/0.10 multipoint
range range-pppoe-1 pvc 100 109
protocol pppoe group vpn1
!
interface ATM1/0.20 multipoint
class-int class-pppox-auto
pvc 0/200
encapsulation aal5autoppp Virtual-Template1
!
pvc 0/201
!
pvc 0/202
encapsulation aal5autoppp Virtual-Template1 group vpn2
!
pvc 0/203
class-vc class-pppoe-global
!
!
interface Ethernet2/3.1
encapsulation dot1Q 1
pppoe enable group vpn1
!
interface Ethernet2/3.2
encapsulation dot1Q 2
pppoe enable group vpn2
!
interface ATM6/0.101 point-to-point
ip address 103.12.1.63 255.255.255.0
pvc 0/101
!
interface ATM6/0.102 point-to-point
ip address 103.12.2.63 255.255.255.0
pvc 0/102
!
interface Virtual-Template1
ip unnumbered loopback 1
no logging event link-status
no keepalive
peer default ip address pool pool-1
ppp authentication chap
!
interface Virtual-Template2
ip unnumbered loopback 1
no logging event link-status
no keepalive
peer default ip address pool pool-2
ppp authentication chap
!
ip local pool pool-1 201.10.1.1 201.10.1.250
ip local pool pool-2 201.10.2.1 201.10.2.250
!
Additional References
The following sections provide additional information related to PPPoE Profiles:
•
MIBs
•
RFCs
Related Documents
Related Topic Document TitlePPPoA/PPPoE configuration tasks
"Configuring Broadband Access: PPP and Routed Bridge Encapsulation" chapter in Cisco IOS Wide-Area Networking Configuration Guide, Release 12.2
PPPoA/PPPoE commands
"Broadband Access: PPP and Routed Bridge Encapsulation Commands" chapter in Cisco IOS Wide-Area Networking Command Reference, Release 12.2
PPPoA/PPPoE autosense configuration
"PPPoA/PPPoE Autosense for ATM PVCs" Cisco IOS release 12.2(4)T feature module
ATM PVC range configuration tasks
"Configuring Broadband Access: PPP and Routed Bridge Encapsulation" chapter in Cisco IOS Wide-Area Networking Configuration Guide, Release 12.2
ATM PVC range commands
"Broadband Access: PPP and Routed Bridge Encapsulation Commands" chapter in Cisco IOS Wide-Area Networking Command Reference, Release 12.2
Standards
MIBs
RFCs
RFCs TitleNo new or modified RFCs are supported by this feature. Support for existing RFCs has not been modified by this feature.
—
Technical Assistance
Command Reference
This section documents new or modified commands only.
•
vendor-tag circuit-id service
ac name
To specify the name of the access concentrator to be used in PPPoE Active Discovery Offers (PADO), use the ac name command in BBA group configuration mode. To remove this specification, use the no form of this command.
ac name name
no ac name name
Syntax Description
Defaults
If the name of the access concentrator is not specified, the name of the router is used as the access concentrator name.
Command Modes
BBA group configuration
Command History
Usage Guidelines
The ac name command allows you to advertise a unique access concentrator name other than the router name to PPPoE clients.
Examples
The following example shows the configuration of the name "region1" as the access concentrator name to be used in PADOs:
bba-group pppoe globalvirtual-template 1ac name region1Related Commands
bba-group pppoe
To create a PPP over Ethernet (PPPoE) profile, use the bba-group pppoe command in global configuration mode. To delete a PPPoE profile, use the no form of this command.
bba-group pppoe {group-name | global}
no bba-group pppoe {group-name | global}
Syntax Description
Defaults
A PPPoE profile is not configured.
Command Modes
Global configuration
Command History
Usage Guidelines
PPPoE profiles contain the configuration for a group of PPPoE sessions. Once a profile has been defined, it can be assigned to a PPPoE port (Ethernet interface, VLAN, or PVC), a virtual circuit (VC) class, or an ATM PVC range. PPPoE profiles can also be used with PPP over ATM (PPPoA)/PPPoE autosense. Multiple PPPoE profiles can be created and assigned to different ports.
The global PPPoE profile serves as the default profile for any port that has not been assigned a specific PPPoE profile.
Examples
The following example shows the configuration of a global PPPoE profile and a profile called "vpn1". PPPoE sessions established on PVCs that use the VC class "class-pppoe-global" will use the global profile. PVCs in the range "range-pppoe-1" will use the "vpn1" profile.
bba-group pppoe global
virtual-template 1
sessions max limit 8000
sessions per-vc limit 8
sessions per-mac limit 2
!
bba-group pppoe vpn1
virtual-template 1
sessions per-vc limit 2
sessions per-mac limit 1
!vc-class atm class-pppoe-global
protocol pppoe
!
interface ATM1/0.10 multipoint
range range-pppoe-1 pvc 100 109
protocol pppoe group vpn1
!interface ATM1/0.20 multipointclass-int class-pppoe-globalpvc 0/200Related Commands
debug pppoe
To display debugging information for PPP over Ethernet (PPPoE) sessions, use the debug pppoe command in privileged EXEC mode. To disable debugging output, use the no form of this command.
debug pppoe {data | errors | events | packets} [rmac remote-mac-address | interface type number [vc {[vpi/]vci | vc-name}] [vlan vlan-id]]
no debug pppoe {data | errors | events | packets} [rmac remote-mac-address | interface type number [vc {[vpi/]vci | vc-name}] [vlan vlan-id]]
Syntax Description
Command Modes
Privileged EXEC
Command History
Examples
The following examples show sample output from the debug pppoe command:
Router# debug pppoe events interface atm1/0.10 vc 101
PPPoE protocol events debugging is on
Router#
00:41:55:PPPoE 0:I PADI R:00b0.c2e9.c470 L:ffff.ffff.ffff 0/101 ATM1/0.10
00:41:55:PPPoE 0:O PADO, R:00b0.c2e9.c470 L:0001.c9f0.0c1c 0/101 ATM1/0.10
00:41:55:PPPoE 0:I PADR R:00b0.c2e9.c470 L:0001.c9f0.0c1c 0/101 ATM1/0.10
00:41:55:PPPoE :encap string prepared
00:41:55:[3]PPPoE 3:Access IE handle allocated
00:41:55:[3]PPPoE 3:pppoe SSS switch updated
00:41:55:[3]PPPoE 3:AAA unique ID allocated
00:41:55:[3]PPPoE 3:No AAA accounting method list
00:41:55:[3]PPPoE 3:Service request sent to SSS
00:41:55:[3]PPPoE 3:Created R:0001.c9f0.0c1c L:00b0.c2e9.c470 0/101 ATM1/0.10
00:41:55:[3]PPPoE 3:State REQ_NASPORT Event MORE_KEYS
00:41:55:[3]PPPoE 3:O PADS R:00b0.c2e9.c470 L:0001.c9f0.0c1c 0/101 ATM1/0.10
00:41:55:[3]PPPoE 3:State START_PPP Event DYN_BIND
00:41:55:[3]PPPoE 3:data path set to PPP
00:41:57:[3]PPPoE 3:State LCP_NEGO Event PPP_LOCAL
00:41:57:PPPoE 3/SB:Sent vtemplate request on base Vi2
00:41:57:[3]PPPoE 3:State CREATE_VA Event VA_RESP
00:41:57:[3]PPPoE 3:Vi2.1 interface obtained
00:41:57:[3]PPPoE 3:State PTA_BIND Event STAT_BIND
00:41:57:[3]PPPoE 3:data path set to Virtual Acess
00:41:57:[3]PPPoE 3:Connected PTARouter# debug pppoe errors interface atm1/0.10PPPoE protocol errors debugging is on
Router#
00:44:30:PPPoE 0:Max session count(1) on mac(00b0.c2e9.c470) reached.
00:44:30:PPPoE 0:Over limit or Resource low. R:00b0.c2e9.c470 L:ffff.ffff.ffff 0/101 ATM1/0.10Table 1 describes significant fields shown in the displays.
Related Commands
encapsulation (ATM)
To configure the ATM adaptation layer (AAL) and encapsulation type for an ATM virtual circuit (VC), VC class, VC, bundle, or permanent virtual circuit (PVC) range, use the encapsulation command in the appropriate mode. To remove an encapsulation type, use the no form of this command.
encapsulation {aal2 | aal5auto | aal5autoppp virtual-template number [group group-name] | aal5ciscoppp virtual-template number | aal5mux protocol | aal5nlpid | aal5snap}
no encapsulation {aal2 | aal5auto | aal5autoppp virtual-template number [group group-name] | aal5ciscoppp virtual-template number | aal5mux protocol | aal5nlpid | aal5snap}
Syntax Description
Defaults
The global default encapsulation option is aal5snap. See the "Usage Guidelines" section for other default characteristics.
Command Modes
ATM VC configuration (for an ATM PVC or SVC)
VC-class configuration (for a VC class)
Bundle configuration (for a VC bundle)
PVC range configuration (for an ATM PVC range)
PVC-in-range configuration (for an individual PVC within a PVC range)Command History
Usage Guidelines
![]()
Note
To configure Integrated Local Management Interface (ILMI), QSAAL, or Switched Multimegabit Data Service (SMDS) encapsulations for an ATM PVC, use the pvc command.
Use the aal5mux encapsulation option to dedicate the specified PVC to a single protocol; use the aal5snap encapsulation option to multiplex two or more protocols over the same PVC. Whether you select aal5mux or aal5snap encapsulation might depend on practical considerations, such as the type of network and the pricing offered by the network. If the pricing of the network depends on the number of PVCs set up, aal5snap might be the appropriate choice. If pricing depends on the number of bytes transmitted, aal5mux might be the appropriate choice because it has slightly less overhead.
Encapsulation for PPPoA
When configuring Cisco PPP over ATM, use the aal5ciscoppp keyword and specify the virtual template number.
It is possible to implicitly create a virtual template when configuring Cisco PPP over ATM. In other words, if the parameters of the virtual template are not explicitly defined before you configure the ATM PVC, the PPP interface will be brought up using default values from the virtual template identified. However, some parameters (such as an IP address) take effect only if they are specified before the PPP interface comes up. Therefore, we recommend that you explicitly create and configure the virtual template before configuring the ATM PVC to ensure that such parameters take effect.
If you specify virtual template parameters after the ATM PVC is configured, you should enter a shutdown command followed by a no shutdown command on the ATM subinterface to restart the interface, causing the newly configured parameters (such as an IP address) to take effect.
Configuring PPPoA/PPPoE Autosense
Use the encapsulation aal5autoppp virtual-template template-number command to configure PPPoA/PPPoE autosense. PPPoA/PPPoE autosense enables a router to distinguish between incoming PPPoA and PPPoE sessions and create virtual access for both PPP types based on demand.
If a PPPoE profile is not specified by using the group group-name option, PPPoE sessions will be established using parameters from the global PPPoE profile. PPPoE profiles must be configured using the bba-group pppoe command.
![]()
Note
Do not use this command on a router that initiates PPPoA sessions.
Entering the no encapsulation aal5autoppp virtual-template command will terminate the PPPoA or PPPoE session and detach the virtual-access interface from the PVC.
Configuring Encapsulation for VC Bundles
Before using this command to configure a VC bundle, enter the bundle subinterface configuration command to create a new bundle or modify an existing one and to enter bundle configuration mode.
A VC bundle can have only one encapsulation configured for it: either aal5snap or aal5mux.
Encapsulation Rules of Precedence
If the encapsulation command is not explicitly configured on an ATM PVC, SVC, or VC bundle, the VC inherits the following default configuration (listed in order of precedence from lowest to highest):
•
Configuration of the encapsulation command in a VC class assigned to the PVC, PVC bundle, or SVC itself.
•
Configuration of the encapsulation command in a VC class assigned to the ATM subinterface of the PVC, SVC, or VC bundle.
•
Configuration of the encapsulation command in a VC class assigned to the ATM main interface of the PVC, SVC, or VC bundle.
•
Global encapsulation option default: aal5snap
![]()
Note
When a VC is a member of a VC bundle, configuration using the encapsulation command in VC-class mode no longer applies to the VC. Bundle configuration takes precedence.
Configuring Encapsulation for a PVC Range
When a PVC range or an individual PVC within a PVC range is being configured, the following options are available:
•
encapsulation aal5ciscoppp
•
encapsulation aal5mux
•
encapsulation aal5snap
Examples
MUX-Type Encapsulation on a VC Example
The following example configures an ATM PVC with VPI 0 and VCI 33 for a MUX-type encapsulation using IP:
interface atm 1/0pvc 0/33encapsulation aal5mux ipSNAP Encapsulation Example
The following example configures a bundle called "chicago" for aal5snap encapsulation:
bundle chicagoencapsulation aal5snapPPP over ATM SVCs Example
The following example configures an ATM SVC called "chicago" with the encapsulation type aal5auto. Encapsulation type aal5auto enables the SVC to use PPP and either aal5snap or aal5mux encapsulation.
interface ATM 2/0/0svc chicagoencapsulation aal5autoPPPoA/PPPoE Autosense Example
The following example enables PPPoA/PPPoE autosense on PVC 30/33. PPPoA sessions will use virtual template 1, and PPPoE sessions will use the global PPPoE profile.
interface ATM 0/0/0.33 multipointpvc 30/33encapsulation aal5autoppp virtual-template 1
!bba-group pppoe global
virtual-template 1
sessions max limit 8000
sessions per-vc limit 8
sessions per-mac limit 2
AAL2 Voice over ATM Example
The following example configures a PVC to support AAL2 encapsulation for Voice over ATM:
interface ATM0.2 point-to-pointpvc 2/200vbr-rt 760 760 100encapsulation aal2Related Commands
encapsulation dot1q
To enable IEEE 802.1q encapsulation of traffic on a specified subinterface in a virtual LAN (VLAN), use the encapsulation dot1q command in interface range configuration mode or subinterface configuration mode. To disable IEEE 802.1q encapsulation, use the no form of this command.
Interface Range Configuration Mode
encapsulation dot1q vlan-id [native]
no encapsulation dot1q
Subinterface Configuration Mode
encapsulation dot1q vlan-id second-dot1q {any | vlan-id | vlan-id-vlan-id[,vlan-id-vlan-id]}
no encapsulation dot1q vlan-id second-dot1q {any | vlan-id | vlan-id-vlan-id[,vlan-id-vlan-id]}
Syntax Description
Defaults
IEEE 802.1q encapsulation is disabled.
Command Modes
Interface range configuration
Subinterface configurationCommand History
Usage Guidelines
Interface Range Configuration Mode
IEEE 802.1q encapsulation is configurable on Fast Ethernet interfaces. IEEE 802.1q is a standard protocol for interconnecting multiple switches and routers and for defining VLAN topologies.
Use the encapsulation dot1q command in interface range configuration mode to apply a VLAN ID to each subinterface within the range specified by the interface range command. The VLAN ID specified by the vlan-id argument is applied to the first subinterface in the range. Each subsequent interface is assigned a VLAN ID, which is the specified vlan-id plus the subinterface number minus the first subinterface number (VLAN ID + subinterface number - first subinterface number).
Do not configure encapsulation on the native VLAN of an IEEE 802.1q trunk without using the native keyword. (Always use the native keyword when vlan-id is the ID of the IEEE 802.1q native VLAN.)
Subinterface Configuration Mode
Use the second-dot1q keyword to configure the IEEE 802.1Q-in-Q VLAN Tag Termination feature. Q-in-Q VLAN tag termination adds another layer of 802.1q tag (called "metro tag" or "PE-VLAN") to the 802.1q tagged packets that enter the network. Double tagging expands the VLAN space, allowing service providers to offer certain services such as Internet access on specific VLANs for some customers and other types of services on other VLANs for other customers.
After a subinterface is defined, use the encapsulation dot1q command to add outer and inner VLAN ID tags to allow one VLAN to support multiple VLANs. You can assign a specific inner VLAN ID to the subinterface; that subinterface is unambiguous. Or you can assign a range or ranges of inner VLAN IDs to the subinterface; that subinterface is ambiguous.
Examples
The following example shows how to create the subinterfaces within the range 0.11 and 0.60 and apply VLAN ID 101 to the Fast Ethernet0/0.11 subinterface, VLAN ID 102 to Fast Ethernet0/0.12 (vlan-id = 101 + 12 - 11 = 102), and so on up to VLAN ID 150 to Fast Ethernet0/0.60 (vlan-id = 101 + 60 - 11 = 150):
Router(config)# interface range fastethernet0/0.11 - fastethernet0/0.60Router(config-int-range)# encapsulation dot1q 101The following example shows how to terminate a Q-in-Q frame on an unambiguous subinterface with an outer VLAN ID of 100 and an inner VLAN ID of 200:
Router(config)# interface gigabitethernet1/0/0.1Router(config-subif)# encapsulation dot1q 100 second-dot1q 200The following example shows how to terminate a Q-in-Q frame on an ambiguous subinterface with an outer VLAN ID of 100 and an inner VLAN ID in the range from 100 to 199 or from 201 to 600:
Router(config)# interface gigabitethernet1/0/0.1Router(config-subif)# encapsulation dot1q 100 second-dot1q 100-199,201-600Related Commands
pppoe enable
To enable PPP over Ethernet (PPPoE) sessions on an Ethernet interface or subinterface, use the pppoe enable command in the appropriate configuration mode. To disable PPPoE, use the no form of this command.
pppoe enable [group group-name]
no pppoe enable
Syntax Description
group
(Optional) Specifies that a PPPoE profile will be used by PPPoE sessions on the interface.
group-name
(Optional) Name of the PPPoE profile to be used by PPPoE sessions on the interface.
Defaults
PPPoE is disabled by default.
Command Modes
Interface configuration
VLAN configuration
VLAN range configurationCommand History
Usage Guidelines
If a PPPoE profile is not specified by using the group option, PPPoE sessions will be established using values from the global PPPoE profile. PPPoE profiles must be configured using the bba-group pppoe command.
Examples
PPPoE on an Ethernet Interface: Example
The following example enables PPPoE sessions on Ethernet interface 1/0. PPPoE sessions will be established using the PPPoE parameters in the global PPPoE profile.
Router(config)# interface ethernet 1/0Router(config-if)# pppoe enable!Router(config)# bba-group pppoe global
Router(config-bba-group)# virtual-template 1
Router(config-bba-group)# sessions max limit 8000
Router(config-bba-group)# sessions per-vc limit 8
Router(config-bba-group)# sessions per-mac limit 2
PPPoE on an 802.1Q VLAN Subinterface: Example
The following example shows how to enable PPPoE on an 802.1Q VLAN subinterface. PPPoE sessions will be established using the PPPoE parameters in PPPoE profile "vpn1".
Router(config)# interface ethernet 2/3.1
Router(config-if)# encapsulation dot1Q 1
Router(config-if)# pppoe enable group vpn1
!Router(config)# bba-group pppoe vpn1
Router(config-bba-group)# virtual-template 1
Router(config-bba-group)# sessions per-vc limit 2
Router(config-bba-group)# sessions per-mac limit 1
PPPoE on an 802.1Q VLAN Main Interface: Example
The following example shows how to configure PPPoE over a range of 802.1Q VLANs on Fast Ethernet interface 0/0. The VLAN range is configured on the main interface, and therefore each VLAN will not use up a separate subinterface.
Router(config)# interface fastethernet 0/0Router(config-if)# no ip addressRouter(config-if)# no ip mroute-cacheRouter(config-if)# duplex halfRouter(config-if)# vlan-range dot1q 20 30Router(config-if-vlan-range)# pppoe enable group PPPOERouter(config-if-vlan-range)# exit-vlan-configRelated Commands
protocol pppoe (ATM VC)
To enable PPP over Ethernet (PPPoE) sessions to be established on permanent virtual circuits (PVCs), use the protocol pppoe command in the appropriate configuration mode. To disable PPPoE, use the no form of this command.
protocol pppoe [group group-name]
no protocol pppoe [group group-name]
Syntax Description
group
(Optional) Specifies a PPPoE profile to be used by PPPoE sessions on the interface.
group-name
(Optional) Name of the PPPoE profile to be used by PPPoE sessions on the interface.
Defaults
PPPoE is not enabled.
Command Modes
ATM VC configuration
ATM VC class configuration
ATM PVC range configuration
ATM PVC-in-range configurationCommand History
Usage Guidelines
If a PPPoE profile is not specified by using the group option, PPPoE sessions will be established using values from the global PPPoE profile. PPPoE profiles must be configured using the bba-group pppoe command.
Examples
The following example shows PPPoE configured in virtual circuit (VC) class "class-pppoe-global" and on the range of PVCs from 100 to 109. PVCs that use VC class "class-pppoe-global" will establish PPPoE sessions using the parameters configured in the global PPPoE profile. PVCs in the PVC range will use PPPoE parameters defined in PPPoE profile "vpn1".
bba-group pppoe global
virtual-template 1
sessions max limit 8000
sessions per-vc limit 8
sessions per-mac limit 2
!
bba-group pppoe vpn1
virtual-template 1
sessions per-vc limit 2
sessions per-mac limit 1
!
vc-class atm class-pppoe-global
protocol pppoe
!
interface ATM1/0.10 multipoint
range range-pppoe-1 pvc 100 109
protocol pppoe group vpn1
!
interface ATM1/0.20 multipoint
class-int class-pppoe-global
pvc 0/200
!
pvc 0/201
!
Related Commands
sessions max limit
To configure the PPP over Ethernet (PPPoE) global profile with the maximum number of PPPoE sessions that will be permitted on a router and to set the PPPoE session-count threshold at which a Simple Network Managment Protocol (SNMP) trap will be generated, use the sessions max limit command in BBA group configuration mode. To remove these settings, use the no form of this command.
sessions max limit number-of-sessions [threshold threshold-value]
no sessions max limit number-of-sessions [threshold threshold-value]
Syntax Description
Defaults
There is no default number-of-sessions.
The default threshold-value is the configured number-of-sessions.Command Modes
BBA group configuration
Command History
Usage Guidelines
This command can be used only in a global PPPoE profile.
The snmp-server enable traps pppoe command must be configured in order for SNMP traps to be generated when the PPPoE session-count threshold is reached.
Examples
The following example shows the global PPPoE profile configured with a maximum PPPoE session limit of 8000 sessions. The PPPoE session-count threshold is set at 7000 sessions, so when the number of PPPoE sessions on the router reaches 7000, an SNMP trap will be generated.
bba-group pppoe global
virtual-template 1
sessions max limit 8000 threshold 7000sessions per-vc limit 8
sessions per-mac limit 2
Related Commands
sessions per-mac limit
To set the maximum number of PPP over Ethernet (PPPoE) sessions allowed per MAC address in a PPPoE profile, use the sessions per-mac limit command in BBA group configuration mode. To remove this setting, use the no form of this command.
sessions per-mac limit per-mac-limit
no sessions per-mac limit per-mac-limit
Syntax Description
per-mac-limit
Maximum number of PPPoE sessions that can be sourced from a MAC address. The default is 100 sessions.
Defaults
100 sessions
Command Modes
BBA group configuration
Command History
Usage Guidelines
Use the sessions per-mac limit command to configure a PPPoE profile with the maximum number of PPPoE sessions that will be allowed per MAC address.
You cannot configure PPPoE session limits in PPPoE profiles and in VPDN groups simultaneously. You also cannot configure session limits in PPPoE profiles and directly on PPPoE ports (Ethernet interface, VLAN, or permanent virtual circuit (PVC)) simultaneously.
Examples
The following example show a limit of two PPPoE sessions per MAC address configured in the global PPPoE profile:
bba-group pppoe global
virtual-template 1
sessions max limit 8000 threshold-sessions 7000sessions per-vc limit 8
sessions per-mac limit 2
Related Commands
sessions per-vc limit
To set the maximum number of PPP over Ethernet (PPPoE) sessions to be established over a virtual circuit (VC) in a PPPoE profile and to set the PPPoE session-count threshold at which a Simple Network Management Protocol (SNMP) trap will be generated, use the sessions per-vc limit command in BBA group configuration mode. To remove this specification, use the no form of this command.
sessions per-vc limit per-vc-limit [threshold threshold-value]
no sessions per-vc limit per-vc-limit [threshold threshold-value]
Syntax Description
Defaults
Sessions: 100
The default threshold-value is the per-vc-limit.Command Modes
BBA group configuration
Command History
Usage Guidelines
Use the sessions per-vc limit command to configure a PPPoE profile with the maximum number of PPPoE sessions that will be allowed per VC.
You cannot configure session limits in PPPoE profiles and directly on permanent virtual circuits (PVCs) simultaneously.
The snmp-server enable traps pppoe command must be configured in order for SNMP traps to be generated when the PPPoE session-count threshold is reached.
Examples
The following example shows a limit of eight PPPoE sessions per VC configured in the PPPoE profile "vpn1":
bba-group pppoe vpn1
virtual-template 1
sessions per-vc limit 8
sessions per-mac limit 2
Related Commands
sessions per-vlan limit
To specify the maximum number of PPP over Ethernet (PPPoE) sessions permitted per VLAN in a PPPoE profile, use the sessions per-vlan limit command in BBA group configuration mode. To remove this specification, use the no form of this command.
sessions per-vlan limit per-vlan-limit
no sessions per-vlan limit per-vlan-limit
Syntax Description
Defaults
Sessions: 100
Command Modes
BBA group configuration
Command History
Usage Guidelines
Use the sessions per-vlan limit command to configure a PPPoE profile with the maximum number of PPPoE sessions that will be allowed per VLAN.
You cannot configure session limits in PPPoE profiles and directly on VLANs simultaneously.
Examples
The following example shows a limit of 200 PPPoE sessions per VLAN configured in the PPPoE profile "vpn1":
bba-group pppoe vpn1
virtual-template 1
sessions per-vlan limit 200Related Commands
vendor-tag circuit-id service
To enable the PPPoE server to process the vendor-specific function (VSF) tag in an incoming frame and send the circuit-id part of the tag to a remote RADIUS server in all AAA requests, use the vendor-tag circuit-id service command in global configuration mode. To disable vendor-tag processing, use the no form of this command.
vendor-tag circuit-id service
no vendor-tag circuit-id service
Syntax Description
This command has no arguments or keywords.
Defaults
Vendor-tag reporting is disabled by default.
Command Modes
Global configuration
Command History
Release Modification12.3(7)XI3
This command was introduced.
12.2(27)SBA
This command was integrated into Cisco IOS Release 12.2(27)SBA.
Usage Guidelines
The PPPoE vendor tag processing feature enables Ethernet-based access network services by providing a mechanism for a PPPoE Broadband Remote Access Server (BRAS) to map a subscriber's circuit ID (that is, the line ID) to a specific Ethernet interface.
A Digital Subscriber Line Multiplexer (DSLAM) can be configured to insert a unique circuit-id tag into a PPPoE Active Discovery Initiation/PPPoE Active Discovery Request (PADI/PADR) frame. When enabled with the vendor-tag circuit-id service command, the PPPoE BRAS will process the vendor-tag and send the circuit-id portion of the tag (as the NAS-Port-ID attribute) to the RADIUS server in all AAA access requests.
Examples
The following example shows how to configure the PPPoE server to process received vendor tags and forward the circuit-id field to the RADIUS server as the NAS-Port-ID attribute:
bba-group pppoe pppoe-tagsessions per-mac limit 50vendor-tag circuit-id service!interface Fast Ethernet0/0.1encapsulation dot1Q 120pppoe enable group pppoe-tagRelated Commands
vendor-tag circuit-id strip
To enable the PPPoE server to strip the vendor-specific function (VSF) tag from outgoing PPPoE Active Discovery Offer (PADO) and PPPoE Active Discovery Session (PADS) frames, use the vendor-tag circuit-id strip command in global configuration mode. To disable vendor-tag stripping, use the no form of this command.
vendor-tag circuit-id strip
no vendor-tag circuit-id strip
This command has no arguments or keywords.
Vendor-tag stripping is disabled by default.
Global configuration
Release Modification12.3(7)XI3
This command was introduced.
12.2(27)SBA
This command was integrated into Cisco IOS Release 12.2(27)SBA.
A Digital Subscriber Line Multiplexer (DSLAM) can be configured to insert a unique circuit-id tag into a PPPoE Active Discovery Initiation/PPPoE Active Discovery Request (PADI/PADR) frame. When enabled with the vendor-tag circuit-id strip command, the PPPoE BRAS will remove the vendor-tag from outgoing PADO/PADS frames.
The following example shows how to configure the PPPoE server to strip received vendor tags from outgoing PADO/PADS frames:
bba-group pppoe pppoe-rm-tag
sessions per-mac limit 50
vendor-tag circuit-id service
vendor-tag circuit-id strip
!
interface Fast Ethernet0/0.1
encapsulation dot1Q 120
pppoe enable group pppoe-tag
virtual-template (BBA group)
To configure a PPPoE profile with a virtual template to be used for cloning virtual access interfaces, use the virtual-template command in BBA group configuration mode. To remove the virtual template from a PPPoE profile, use the no form of this command.
virtual-template template-number
no virtual-template template-number
Syntax Description
template-number
Identifying number of the virtual template that will be used to clone virtual-access interfaces.
Defaults
A virtual template is not specified.
Command Modes
BBA group configuration
Command History
Usage Guidelines
Each PPPoE profile can clone virtual-access interfaces using only one virtual template. If you enter a second virtual-template command in a PPPoE profile, it will replace the first virtual-template command.
You can configure different PPPoE profiles to use different virtual templates. You can also configure multiple PPPoE profiles to use the same virtual template.
Examples
The following example shows the configuration of two PPPoE profiles:
bba-group pppoe vpn1
virtual-template 1
sessions per-vc limit 2
sessions per-mac limit 1
!
bba-group pppoe vpn2
virtual-template 2
sessions per-vc limit 2
sessions per-mac limit 1
!Related Commands
Glossary
BRAS—Broadband Remote Access Server.
PADI—PPPoE Active Discovery Initiation.
PADO—PPPoE Active Discovery Offer.
PADR—PPPoE Active Discovery Request.
PADS—PPPoE Active Discovery Session.
PPPoA—PPP over ATM.
PPPoE—PPP over Ethernet.
PPPoE port—Any Ethernet interface, VLAN, or ATM virtual circuit configured for PPPoE.
PVC—permanent virtual circuit. Virtual circuit that is permanently established.
SNMP—Simple Network Management Protocol. Network management protocol used almost exclusively in TCP/IP networks. SNMP provides a means to monitor and control network devices and to manage configurations, statistics collection, performance, and security.
VPDN—virtual private dial-up network. Network that extends remote access to a private network using a shared infrastructure. VPDNs use Layer 2 tunnel technologies to extend the Layer 2 and higher parts of the network connection from a remote user across an ISP network to a private network.
VPN—Virtual Private Network. Network that enables IP traffic to travel securely over a public TCP/IP network by encrypting all traffic from one network to another.
VSF—vendor-specific function.
![]()
Note
Refer to Internetworking Terms and Acronyms for terms not included in this glossary.
![]()
Copyright © 2003-2005 Cisco Systems, Inc. All rights reserved.