Configuring Calling Number AVP Formats
The E-series LAC generates L2TP Calling Number AVP 22 for incoming-call request (ICRQ) packets that the LAC sends to the LNS. By default, the E-series LAC generates the Calling Number AVP 22 in descriptive format.
You can also prevent the E-series LAC from sending the Calling Number AVP in ICRQ packets.
NOTE: You cannot change the L2TP Calling Number AVP on tunnel switched interfaces.
You use the aaa tunnel calling-number-format command to configure the router to generate AVP 22 in any of the following formats. Agent-circuit-id is suboption 1 of the tags supplied by the PPPoE intermediate agent from the DSLAM. Agent-remote-id is suboption 2.
<interface ID> <delimit> <UID> <delimit> <interface description> <delimit> <connect info> <delimit> <PPPoE description>
<interface ID> <delimit> <UID> <delimit> <interface description> <delimit> <connect info> <delimit> <PPPoE description> <delimit> <agent-circuit-id>
- Descriptive include-agent-circuit-id include-agent-remote-id formatThis format includes the following elements:
<interface ID> <delimit> <UID> <delimit> <interface description> <delimit> <connect info> <delimit> <PPPoE description> <delimit> <agent-circuit-id> <delimit> <agent-remote-id>
<interface ID> <delimit> <UID> <delimit> <interface description> <delimit> <connect info> <delimit> <PPPoE description> <delimit> <agent-remote-id>
- Fixed formatThis format is similar to the fixed format of RADIUS attribute 31 (Calling-Station-Id). If you set up the router to generate the Calling Number AVP in fixed format, the router formats the AVP as follows (the maximum number of characters for each field is shown in brackets):
- For ATM: <system name [4]> <slot [2]> <port [1]> <VPI [3]>
<VCI [5]>- For Ethernet: <system name [4]> <slot [2]> <port [1]> <VLAN [8]>
- Example
system name=westford, slot=4, port=3, and VLAN=12 produces the following calling number:
west0430000000012
- Include-agent-circuit-id include-agent-remote-id formatThis format includes the following elements:
<agent-circuit-id> <delimit> <agent-remote-id>
Configuration Tasks
To set up the router to generate Calling Number AVP 22 in fixed format:
- Set the calling number format of the tunnel to fixed.
host1(config)#aaa tunnel calling-number-format fixed- Set the format of the RADIUS Calling-Station-Id to fixed.
host1(config)#radius calling-station-format fixed-formatConfiguring the Fallback Format
You can configure a fallback AVP 22 formatthe E-series LAC uses the fallback format to generate the L2TP Calling Number AVP 22 in the event that the PPPoE agent ID is null or unavailable. The LAC uses the fallback format only when the configured calling number format includes either or both of the agent-circuit-id and agent-remote-id suboptions. You can specify either descriptive format or fixed format.
The calling number format determines what element triggers use of the fallback format, as shown in the following table:
descriptive include-agent-circuit-id include-agent-remote-id
host1(config)#aaa tunnel calling-number-format-fallback fixedDisabling the Calling Number AVP
You can use the l2tp disable calling-number-avp command to prevent the E-series LAC from sending the Calling Number AVP in ICRQ packets. You use this command in special situations where you do not want the LAC to send this AVP.
host1(config)#l2tp disable calling-number-avpFor more information about setting up the router to generate Calling Number AVP 22 in a format that includes either or both of the agent-circuit-id and agent-remote-id suboptions of the tags supplied by the PPPoE intermediate agent, see Configuring PPPoE Remote Circuit ID Capture in JUNOSe Link Layer Configuration Guide, Chapter 10, Configuring Point-to-Point Protocol over Ethernet.
Configuration Examples
The following examples show how you can synchronize the contents of RADIUS Calling-Station-Id (Attribute 31) and L2TP Calling-Number (AVP 22).
To send the PPPoE agent-circuit-id in RADIUS Attribute 31 and L2TP AVP 22 and specify that the fixed format is used when the PPPoE agent-circuit-id is unavailable, issue the following commands:
host1(config)#radius calling-station-format fixed-formathost1(config)#radius remote-circuit-id-delimiter #host1(config)#radius override calling-station-id remote-circuit-idhost1(config)#radius remote-circuit-id-format agent-circuit-idhost1(config)#aaa tunnel calling-number-format include-agent-circuit-idhost1(config)#aaa tunnel calling-number-format-fallback fixedTo send the PPPoE agent-circuit-id and agent-remote-id in RADIUS Attribute 31 and L2TP AVP 22 and specify that the fixed format is used when both PPPoE agent-circuit-id and agent-remote-id are unavailable, issue the following commands:
host1(config)#radius calling-station-format fixed-formathost1(config)#radius remote-circuit-id-delimiter #host1(config)#radius override calling-station-id remote-circuit-idhost1(config)#radius remote-circuit-id-format agent-circuit-id agent-remote-idhost1(config)#aaa tunnel calling-number-format include-agent-circuit-id include-agent-remote-idhost1(config)#aaa tunnel calling-number-format-fallback fixed