The radius-server calling-station-id command configures a method of constructing the No. 31 RADIUS public attribute, namely, Calling-Station-Id.
The undo radius-server calling-station-id command deletes the configured method of constructing the No. 31 RADIUS public attribute.
By default, no method of constructing the No. 31 RADIUS public attribute is configured.
This command is supported only on the NetEngine 8000 F1A.
radius-server calling-station-id include [ delimiter delimiter ] { { option82 | access-line-id } [ delimiter delimiter ] | mac [ mac-format type1 ] [ delimiter delimiter ] | interface [ delimiter delimiter ] | domain [ delimiter delimiter ] | sysname [ delimiter delimiter ] } *
radius-server calling-station-id include refer-option61
radius-server calling-station-id include vlan-binding
radius-server calling-station-id lns-default version1
radius-server calling-station-id include vlan-description
radius-server calling-station-id include llid user-type { ppp | lns } *
radius-server calling-station-id include pevlan [ { delimiter delimiter-vlan } [ cevlan ] ]
radius-server calling-station-id include cevlan [ { delimiter delimiter-vlan } [ pevlan ] ]
radius-server calling-station-id lns-default version1 force
radius-server calling-station-id include line-id
undo radius-server calling-station-id
undo radius-server calling-station-id lns-default version1
undo radius-server calling-station-id include llid user-type { ppp | lns } *
undo radius-server calling-station-id lns-default version1 force
Parameter | Description | Value |
---|---|---|
delimiter delimiter-vlan |
Indicates the delimiter. |
b, *, -, \, #, $, @, &, : . |
delimiter delimiter |
Indicates the delimiter. |
The value can be b, *, -, \, #, $, @, &, :, _. |
option82 |
Indicates that the No. 31 RADIUS public attribute Calling-Station-Id is constructed based on the Option 82 field. |
- |
access-line-id |
Indicates that the No. 31 RADIUS public attribute Calling-Station-Id is constructed based on the access-line-id field. |
- |
mac |
Indicates that the No. 31 RADIUS public attribute Calling-Station-Id is constructed based on the MAC address. |
- |
mac-format |
Indicates the delimiter of MAC address. |
Specifies type1 so that the MAC address is displayed in the format of aa-bb-cc-dd-ee-ff. By default, the MAC address is displayed in the format of aa:bb:cc:dd:ee:ff. |
type1 |
Specifies type1 so that the MAC address is displayed in the format of aa-bb-cc-dd-ee-ff. |
- |
interface |
Indicates that the No. 31 RADIUS public attribute Calling-Station-Id is constructed based on the interface. |
- |
domain |
Indicates that the No. 31 RADIUS public attribute Calling-Station-Id is constructed based on the domain name. |
- |
sysname |
Indicates that the No. 31 RADIUS public attribute Calling-Station-Id is constructed based on the system name. |
- |
refer-option61 |
Indicates that the No. 31 RADIUS public attribute Calling-Station-Id is constructed as follows.
|
- |
vlan-binding |
Indicates that the No. 31 RADIUS public attribute Calling-Station-Id is constructed based on the slot(2)port(2)vpi(2)vci(4)vlan(4)mac(12) format. The vpi(2) and vci(4) field values are fixed at 0. |
- |
lns-default |
Indicates the default Calling-Station-Id attribute format on the LNS. |
- |
version1 |
Indicates version 1, which includes the device's system name and access interface information. The value ends with #0#0. |
- |
vlan-description |
Indicates that the No. 31 RADIUS public attribute Calling-Station-Id is constructed based on the vlan-description format, that is, sysname#slot/subslot/port#Pevlan.CeVlan#vlan-description. In this format, sysname has a maximum of 30 characters, and vlan-description has a maximum of 128 characters. If vlan-description is configured, the Calling-Station-Id attribute in RADIUS authentication and accounting packets uses this format. |
- |
llid |
Indicates that the No. 31 RADIUS public attribute Calling-Station-Id is constructed based on the logical line ID (LLID) information in an authentication accept packet sent by the RADIUS server. |
- |
user-type |
Specifies the user type. |
- |
ppp |
Indicates that the configuration takes effect for PPP users. |
- |
lns |
Indicates that the configuration takes effect for LNS users. |
- |
pevlan |
Indicates that the No. 31 RADIUS public attribute Calling-Station-Id is constructed based on the outer VLAN information. |
- |
cevlan |
Indicates that the No. 31 RADIUS public attribute Calling-Station-Id is constructed based on the inner VLAN information. |
- |
line-id |
Indicates that the No. 31 RADIUS public attribute Calling-Station-Id is constructed based on the prefix+remote-id+suffix format, that is, ######+remote-id+#. If line-id is configured, the Calling-Station-Id attribute in RADIUS authentication and accounting packets uses this format. |
- |
Usage Scenario
When a Huawei device is connected to another device not conforming to relevant standards, you can run the radius-server calling-station-id command to configure the Huawei device to construct the No. 31 RADIUS public attribute.
Precautions
The formats of encapsulating the Calling-Station-Id attribute configured using the commands with the include keyword are mutually exclusive. If two different commands with the include keyword are run, the later configuration overrides the previous one.
In VS mode, this command is supported only by the admin VS.
<HUAWEI> system-view [~HUAWEI] radius-server group huawei [*HUAWEI-radius-huawei] commit [~HUAWEI-radius-huawei] radius-server calling-station-id include option82
<HUAWEI> system-view [~HUAWEI] radius-server group huawei [*HUAWEI-radius-huawei] commit [~HUAWEI-radius-huawei] radius-server calling-station-id include refer-option61
<HUAWEI> system-view [~HUAWEI] radius-server group huawei [*HUAWEI-radius-huawei] commit [~HUAWEI-radius-huawei] radius-server calling-station-id include mac
<HUAWEI> system-view [~HUAWEI] radius-server group huawei [*HUAWEI-radius-huawei] commit [~HUAWEI-radius-huawei] radius-server calling-station-id include pevlan delimiter _ cevlan