The radius-server nas-port-id lns include command configures the format of the NAS-Port-Id attribute sent by the L2TP LNS to the RADIUS server.
The undo radius-server nas-port-id lns command deletes the configured format of the NAS-Port-Id attribute sent by the L2TP LNS to the RADIUS server.
By default, the LNS or a non-LNS device retains the format of the NAS-Port-Id attribute to be sent to the RADIUS server.
This command is supported only on the NetEngine 8000 F1A.
radius-server nas-port-id lns include [ string string | ip delimiter ] { local-tunnel-ip [ delimiter ] | peer-tunnel-ip [ delimiter ] | local-tunnel-id [ delimiter ] | peer-tunnel-id [ delimiter ] | local-session-id [ delimiter ] peer-session-id [ delimiter ] | call-serial-number [ delimiter ] } *
undo radius-server nas-port-id lns
Parameter | Description | Value |
---|---|---|
string string |
Specifies a user-defined character string. |
The value is a string of 1 to 31 characters. |
ip |
Indicates a character string. |
- |
delimiter |
Indicates a delimiter. |
The value is b, *, -, \, #, $, @, &, :. |
local-tunnel-ip |
Indicates the source IP address of the local tunnel. |
- |
peer-tunnel-ip |
Indicates the IP address of the remote tunnel. |
- |
local-tunnel-id |
Indicates the local tunnel ID. |
- |
peer-tunnel-id |
Indicates the remote tunnel ID. |
- |
local-session-id |
Indicates the local session ID. |
- |
peer-session-id |
Indicates the remote session ID. |
- |
call-serial-number |
Indicates the session serial number. |
- |
Usage Scenario
If the RADIUS server has special requirements on the format of the NAS-Port-Id attribute, run the radius-server nas-port-id lns or radius-server nas-port-id command to configure the format of the NAS-Port-Id attribute as required.
Configuration Impact
If the radius-server nas-port-id lns or radius-server nas-port-id command is run more than once in the same view, the latest configuration overrides the previous one. After the radius-server nas-port-id lns or radius-server nas-port-id command is run, the NAS-Port-Id attribute is sent to the RADIUS server in the configured format.
<HUAWEI> system-view [~HUAWEI] radius-server group test1 [*HUAWEI-radius-test1] commit [~HUAWEI-radius-test1] radius-server nas-port-id lns include ip $ local-tunnel-id - local-session-id - local-tunnel-ip $