This section describes how to configure formats for the RADIUS attribute Calling-Station-Id (31) to adapt to different vendors' devices and different RADIUS servers.
The system view is displayed.
The RADIUS server group view is displayed.
A method of constructing the Calling-Station-Id attribute is configured.
A method of constructing the Calling-Station-Id attribute is configured.
Table1 Method of constructing the Calling-Station-Id attribute describes this method in detail.
Keyword |
Description |
---|---|
refer-option61 |
The Calling-Station-Id attribute is constructed based on Option 61. After the radius-server calling-station-id include refer-option61 command is run:
|
vlan-binding |
The Calling-Station-Id attribute is constructed in the format of slot(2)port(2)vpi(2)vci(4)vlan(4)mac(12). |
vlan-description |
The RADIUS attribute Calling-Station-Id (31) is constructed in the vlan-description format. Specifically, the encapsulation format is sysname#slot/subslot/port#Pevlan.CeVlan#vlan-description, where the maximum lengths of sysname and vlan-description are 30 bits and 128 bits, respectively. If the length of sysname exceeds the upper limit, the excess part will be truncated. With the vlan-description parameter specified, the Calling-Station-Id attributes in both the Access-Request and Accounting-Request packets comply with the vlan-description format. |
line-id |
The Calling-Station-Id attribute is constructed in the prefix+remote-id+suffix format. Specifically, the encapsulation format is ######+remote-id+#, where the maximum length of remote-id is 63 bytes. After the radius-server access-line-id length extend command is run, the maximum length of remote-id is 198 bytes. If the length of remote-id exceeds the upper limit, the Calling-Station-Id attribute is encapsulated in the MAC address format. |
llid user-type { ppp | lns }* |
The Calling-Station-Id attribute is constructed based on the LLID in the authentication response packet sent by a RADIUS server. After the radius-server calling-station-id include llid user-type { ppp | lns }* command is run, the authentication process for PPP or LNS users is changed. Users need to be authenticated twice, thereby affecting the user access performance.
When the NetEngine 8000 F fails to obtain the LLID from the RADIUS server, by default, the Access-Request and Accounting-Request packets in the second round of authentication carry the Calling-Station-Id attribute. You can run the radius-server calling-station-id disable with-llid-fail command to configure the NetEngine 8000 F not to carry the Calling-Station-Id attribute in the Access-Request packet in the second round of authentication when the NetEngine 8000 F fails to obtain the LLID. This helps identify the clients that fail to obtain the LLID. |
The default format of the Calling-Station-Id attribute in the packets sent by the LNS is configured.
After the radius-server calling-station-id lns-default version1 command is run, the Access-Request and Accounting-Request packets sent by the LNS carry the default Calling-Station-Id attribute even if the packets sent by the LAC to the LNS do not carry the calling-number. By default, if the packets sent by the LAC to the LNS do not carry the calling-number, the Access-Request and Accounting-Request packets sent by the LNS do not carry the Calling-Station-Id attribute.
The NetEngine 8000 F is configured to construct the Calling-Station-Id attribute of the packets sent by the LNS in the version1 format.
In some special scenarios, the Calling-Station-Id attribute of the packets sent by the LNS must be constructed in the version1 format, regardless of whether the packets sent by the LAC to the LNS carry the calling-number.
The NetEngine 8000 F is configured to construct the Calling-Station-Id attribute based on the inner and outer VLAN IDs.
The Calling-Station-Id attribute contains user VLAN information. You can specify either or both of pevlan and cevlan. If you specify both pevlan and cevlan and specify pevlan before specifying cevlan, the RADIUS server parses pevlan before parsing cevlan. If you specify cevlan before specifying pevlan, the RADIUS server parses cevlan before parsing pevlan.
If access users send packets that carry single VLAN tags, the single VLAN tags can only be encapsulated into pevlan.
The NetEngine 8000 F is configured to encapsulate the Calling-Station-Id attribute in a vendor-specific format.
version1 takes effect only when vendor-id is set to 2352.
The NetEngine 8000 F is configured to contain a sub-slot ID in the interface number encapsulated in the Calling-Station-Id or NAS-port-ID attribute.
After this command is run, when the Calling-Station-Id and NAS-port-ID attributes are encapsulated in the Redback-defined format, the interface number is in the Slot/Sub-Slot/Port format.
The NetEngine 8000 F is configured to encapsulate the Calling-Station-Id attribute in the version3 format.
After this command is run, the Calling-Station-Id attribute is encapsulated in the format of {lag-Trunkid|eth Slot/Subslot/Port}:Pvlan.Cvlan#SystemName###pppoe mac-address#.
The configuration is committed.