Configuring PPPoE Remote Circuit ID Capture
To capture and use the PPPoE remote circuit ID:
For instructions on configuring a static PPPoE interface, see Configuring PPPoE over ATM or Configuring PPPoE for Ethernet Modules.
For instructions on configuring a dynamic PPPoE interface, see Chapter 15, Configuring Dynamic Interfaces.
- Enable the router to capture the PPPoE remote circuit ID transmitted from the DSLAM by using one of the following methods:
- For a static PPPoE interface, issue the pppoe remote-circuit-id command from Interface Configuration mode or Subinterface Configuration mode.
host1(config-if)#pppoe remote-circuit-idFor a dynamic PPPoE interface, issue the pppoe remote-circuit-id command from Profile Configuration mode as a characteristic of the profile assigned to the dynamic PPPoE interface column. host1(config)#profile pppoeTesthost1(config-profile)#pppoe remote-circuit-idBy default, the router formats the captured PPPoE remote circuit ID to include only the agent-circuit-id suboption (suboption 1) of the PPPoE intermediate agent tags sent from the DSLAM.
- (Optional) Use the show pppoe interface command (for static PPPoE interfaces) or the show profile command (for dynamic PPPoE interfaces) to verify that PPPoE remote circuit capture is enabled.
host1#show pppoe interface fastEthernet 4/1.1host1#show profile name pppoeTestFor information about how to use these commands, see show pppoe interface and show profile.
- For example, the following command formats the PPPoE remote circuit ID to include only the agent-remote-id suboption (suboption 2) of the tags supplied by the PPPoE intermediate agent.
host1(config)#radius remote-circuit-id-format agent-remote-idThe following command formats the PPPoE remote circuit ID to include the NAS-Identifier [32] RADIUS attribute with both the agent-circuit-id and agent-remote-id suboptions of the tags supplied by the PPPoE intermediate agent. host1(config)#radius remote-circuit-id-format nas-identifier agent-circuit-id agent-remote-idThe following command formats the PPPoE remote circuit ID to append the agent-circuit-ID suboption to an interface specifier that is consistent with the recommended format in the DSL Forum Technical Report (TR)-101Migration to Ethernet-Based DSL Aggregation (April 2006). For details about how the router implements this format, see Format for dsl-forum-1 Keyword. host1(config)#radius remote-circuit-id-format dsl-forum-1
- Configure RADIUS to specify a nondefault delimiter character to separate components in the PPPoE remote circuit ID value. (The default delimiter character is #.)
host1(config)#radius remote-circuit-id-delimiter %- Use the show radius remote-circuit-id format command and the show radius remote-circuit-id-delimiter command to verify the format and delimiter settings for the PPPoE remote circuit ID value.
host1#show radius remote-circuit-id-formathost1#show radius remote-circuit-id-delimiterFor information about how to use these commands, see show radius remote-circuit-id-format and show radius remote-circuit-id-delimiter.
- Configure RADIUS to use the PPPoE remote circuit ID captured from the DSLAM in place of either (or both) of the Calling-Station-Id [31] and NAS-Port-Id [87] RADIUS attributes.
host1(config)#radius override calling-station-id remote-circuit-idhost1(config)#radius override nas-port-id remote-circuit-id- Configure the E-series L2TP access controller (LAC) to generate L2TP Calling Number AVP 22 in fixed format or one of several formats that includes either or both of the agent-circuit-id (suboption 1) and agent-remote-id (suboption 2) suboptions of the tags supplied by the PPPoE intermediate agent.
host1(config)#aaa tunnel calling-number-format fixedhost1(config)#aaa tunnel calling-number-format descriptive include-agent-circuit-id include-agent-remote-idhost1(config)#aaa tunnel calling-number-format include-agent-circuit-id
- (Optional) Configure a fallback format for the L2TP Calling Number AVP 22. The fallback format is used only when you have configured the calling number format as anything other than fixed and the PPPoE agent ID is null or unavailable.
host1(config)#aaa tunnel calling-number-format fallback fixedhost1(config)#aaa tunnel calling-number-format fallback descriptive
- (Optional) Use the show radius override command to verify the override settings configured for RADIUS, and the show aaa tunnel-parameters command to verify the parameters configured for L2TP tunnel definitions.
host1#show radius overridehost1#show aaa tunnel-parametersFor information about how to use these commands, see show radius override and show aaa tunnel-parameters.
aaa tunnel calling-number-format
- Use to configure the format used by the E-series LAC to generate the L2TP Calling Number AVP 22.
- The fixed format is similar to the fixed format of RADIUS attribute 31 (Calling-Station-Id). The LAC uses this format in ICRQ packets that it sends to the LNS.
- Several different descriptive formats include information about the interface and either or both of the suboptions supplied by the PPPoE intermediate agent, agent-circuit-id and agent-remote-id.
- Several simpler formats include only either or both of the PPPoE suboptions, agent-circuit-id and agent-remote-id.
- Example 1
host1(config)#aaa tunnel calling-number-format descriptive include-agent-circuit-idExample 2 host1(config)#aaa tunnel calling-number-format descriptive include-agent-circuit-id include-agent-remote-idExample 3 host1(config)#aaa tunnel calling-number-format include-agent-circuit-idUse the no version to restore the default calling number format, descriptive. aaa tunnel calling-number-format-fallback
- Use to configure the fallback format that the E-series LAC uses to generate the L2TP Calling Number AVP 22 in the event that the PPPoE agent ID is null or unavailable.
- The fallback format is used only when the configured calling number format includes either or both of the agent-circuit-id and agent-remote-id.
- The calling number format determines what element triggers use of the fallback format:
descriptive include-agent-circuit-id include-agent-remote-id
- You can specify either descriptive format or fixed format.
- Example
host1(config)#aaa tunnel calling-number-format-fallback fixedUse the no version to restore the default format, descriptive. pppoe remote-circuit-id
- Use to enable a static PPPoE interface (from Interface Configuration mode or Subinterface Configuration mode) or a dynamic PPPoE interface (from Profile Configuration mode) to capture and process a vendor-specific tag containing a remote circuit ID transmitted from a DSLAM.
- The router can then send this value to a RADIUS server or to an L2TP network server (LNS) to uniquely identify subscriber locations.
- Examples
host1(config-if)#pppoe remote-circuit-idhost1(config-profile)#pppoe remote-circuit-idUse the no version to restore the default behavior, which is not to capture and process the PPPoE remote circuit ID. radius override calling-station-id remote-circuit-id
- Use to configure RADIUS to override the standard use of the Calling-Station-Id [31] RADIUS attribute and instead use the PPPoE remote circuit ID transmitted from a DSLAM.
- Example
host1(config)#radius override calling-station-id remote-circuit-idUse the no version to restore the default Calling-Station-Id value, which is the telephone number from which the call originated. radius override nas-port-id remote-circuit-id
- Use to configure RADIUS to override the standard use of the NAS-Port-Id [87] RADIUS attribute and instead use the PPPoE remote circuit ID transmitted from a DSLAM.
- Example
host1(config)#radius override nas-port-id remote-circuit-idUse the no version to restore the default NAS-Port-Id value, which is the physical interface of the network access server (NAS) that is authenticating the user. radius remote-circuit-id-delimiter
- Use to configure the delimiter character that the router uses to set off multiple components in the format of the PPPoE remote circuit ID value captured from a DSLAM.
- Example
host1(config)#radius remote-circuit-id-delimiter !Use the no version to restore the default delimiter character, #. radius remote-circuit-id-format
- Use to configure the format of the PPPoE remote circuit ID value captured from a DSLAM.
- By default, the router formats the PPPoE remote circuit ID to include only the agent-circuit-id suboption (suboption 1) of the tags supplied by the PPPoE intermediate agent.
- You can use this command to configure one of the following nondefault formats for the PPPoE remote circuit ID value:
- To include the agent-circuit-id suboption, use the agent-circuit-id keyword.
- To include the agent-remote-id suboption (suboption 2) of the tags supplied by the PPPoE intermediate agent, use the agent-remote-id keyword.
- To include the NAS-Identifier [32] RADIUS attribute, use the nas-identifier keyword. If you include the nas-identifier keyword, you must also include either or both of the agent-circuit-id and agent-remote-id keywords.
- To append the agent-circuit-ID value to an interface specifier that is consistent with the recommended format in the DSL Forum Technical Report (TR)-101Migration to Ethernet-Based DSL Aggregation (April 2006), use the dsl-forum-1 keyword. For details about how the router implements this format, see Format for dsl-forum-1 Keyword.
- RADIUS overrides the standard use of the Calling-Station-Id [31] or NAS-Port-Id [87] attribute with the PPPoE remote circuit ID only if the DSLAM transmits non-empty data for at least one of the agent-circuit-id or agent-remote-id values. If the DSLAM transmits empty data, then RADIUS does not override the Calling-Station-Id [31] or NAS-Port-Id [87] RADIUS attribute with the PPPoE remote circuit ID and instead uses the standard value for the RADIUS attribute.
- If a single component in a multi-component PPPoE remote circuit ID format is empty, the router represents the empty component as two consecutive delimiter characters (## by default).
- Example 1Formats the PPPoE remote circuit ID value to include only the agent-remote-id suboption of the tags supplied by the PPPoE intermediate agent.
host1(config)#radius remote-circuit-id-format agent-remote-idExample 2Formats the PPPoE remote circuit ID value to include both the agent-circuit-id and agent-remote-id suboptions of the tags supplied by the PPPoE intermediate agent. host1(config)#radius remote-circuit-id-format agent-circuit-id agent-remote-idExample 3Formats the PPPoE remote circuit ID value to include the NAS-Identifier [32] RADIUS attribute with the agent-circuit-id suboption of the tags supplied by the PPPoE intermediate agent. host1(config)#radius remote-circuit-id-format nas-identifier agent-circuit-idExample 4Formats the PPPoE remote circuit ID value to include the NAS-Identifier [32] RADIUS attribute with the agent-remote-id suboption of the tags supplied by the PPPoE intermediate agent. host1(config)#radius remote-circuit-id-format nas-identifier agent-remote-idExample 5Formats the PPPoE remote circuit ID value to include the NAS-Identifier [32] RADIUS attribute with both the agent-circuit-id and agent-remote-id suboptions of the tags supplied by the PPPoE intermediate agent. host1(config)#radius remote-circuit-id-format nas-identifier agent-circuit-id agent-remote-idExample 6Formats the PPPoE remote circuit ID value to use the format for the dsl-forum-1 keyword. For details about how the router implements this format, see Format for dsl-forum-1 Keyword. host1(config)#radius remote-circuit-id-format dsl-forum-1Use the no version to restore the default format, agent-circuit-id.