radius-server attribute 32
Use the radius-server attribute 32 Global Configuration mode command to define that RADIUS attribute 32 (NAS-Identifier) will be included in RADIUS packets sent by the device to the RADIUS server. Use the no form of the command to restore the default setting.
Syntax
radius-server attribute 32 {include-in-access-req| include-in-accounting-req} [format string]
no radius-server attribute 32 {include-in-access-req| include-in-accounting-req}
Parameters
-
include-in-access-req— defines that attribute 32 will be included in all RADIUS access requests packets. Optionally it allows to define a string to use as the NAS-Identifier
-
include-in-accounting-req— defines that attribute 32 will be included in all RADIUS accounting requests packets. Optionally it allows to define a string to use as the NAS-Identifier
-
format string (optional)—Specifies the string to use as the value in the NAS-Identifier attribute. If this parameter is not specified, the device fully qualified name is sent as the NAS-Identifier attribute. (Length: 1–64 character)
Default Configuration
RADIUS attribute 32 is not sent by default.
Command Mode
Global Configuration mode
User Guidelines
Use the radius-server attribute 32 command to include RADIUS attribute 32 - NAS-Identifier in RADIUS access request or RADIUS accounting requests sent by the device. If the include-in-access-req parameter is specified then attribute 32 will be included in access-request packets sent by the device. If the include-in-accounting-req parameter is specified then attribute 32 will be included in accounting-request packets sent by the device. Attribute can be enabled for one or both of these packet types. In addition to including attribute 32, the format of the NAS-identifier field can optionally be specified in the form of a string. If including attribute 32 is enabled without the format parameter then the device fully qualified name will be used as the device NAS-Identifier.
Use the no form of the command to remove attribute 32 from the specified packets. If the include-in-access-req parameter is specified then sending will be disabled for access requests packets. If the include-in-accounting-req parameter is specified then sending will be disabled for accounting request packets. By default, the device does not include attribute 32 in either RADIUS access requests or RADIUS accounting requests.
Examples
Example 1 - The following example enables including RADIUS attribute 32 in RADIUS access-request packets, without specifying the format of the attribute. In this case the device fully qualified name will be used as the NAS-Identifier.
switchxxxxxx(config)# radius-server attribute 32 include-in-access-req
Example 2 - The following example enables including RADIUS attribute 32 in RADIUS accounting-request packets, and specifies the string to use as the NAS-identifier.
switchxxxxxx(config)# radius-server attribute 32 include-in-access-req format
mydevice

Feedback