< Home

radius-server nas-identifier-format

Function

The radius-server nas-identifier-format command sets the encapsulation format of the NAS-Identifier attribute.

The undo radius-server nas-identifier-format command restores the default encapsulation format of the NAS-Identifier attribute.

By default, the NAS-Identifier attribute encapsulation format is the user's hostname.

Format

radius-server nas-identifier-format { hostname | vlan-id | ap-info }

undo radius-server nas-identifier-format

Only the S5730-HI, S5731-H, S5731S-H, S6730-H, S6730S-H, S5732-H, S6720-HI, and S5720-HI support the ap-info parameter.

Parameters

Parameter

Description

Value

hostname

Sets the encapsulation format of NAS-Identifier to a user's host name.

-

vlan-id

Sets the encapsulation format of NAS-Identifier to a user's VLAN ID.

-

ap-info

Sets the encapsulation format of NAS-Identifier to the AP's MAC address.

-

Views

RADIUS server template view

Default Level

3: Management level

Usage Guidelines

A RADIUS server uses the NAS-Identifier attributes to identify NASs. The NASs also use the NAS-Identifier attributes carried in the sent RADIUS packets to identify themselves.

When the RADIUS server interconnected with the device requires that the NAS-Identifier attribute value is the MAC address of the AP when the device functions as an AC in a wireless scenario, you need to run the radius-server nas-identifier-format ap-info command.

Example

# Set the NAS-Identifier encapsulation format to VLAN ID.

<HUAWEI> system-view
[HUAWEI] radius-server template template1
[HUAWEI-radius-template1] radius-server nas-identifier-format vlan-id
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >