The radius-server authorization calling-station-id decode-mac-format command sets the format of MAC address that can be parsed by a device in the calling-station-id (Type 31) attribute carried in RADIUS authorization packets.
The undo radius-server authorization calling-station-id decode-mac-format command restores the default format of the MAC address in the calling-station-id (Type 31) attribute.
By default, the device parses the MAC address in the calling-station-id attribute carried in RADIUS dynamic authorization packets based on the MAC address length, without considering the MAC address format and delimiter.
radius-server authorization calling-station-id decode-mac-format { bin | ascii { unformatted | { dot-split | hyphen-split } [ common | compress ] } }
undo radius-server authorization calling-station-id decode-mac-format
Parameter | Description | Value |
---|---|---|
bin |
Indicates that the MAC address in the calling-station-id attribute uses the binary format. |
- |
ascii |
Indicates that the MAC address in the calling-station-id attribute uses the ASCII format. |
- |
unformatted |
Indicates that no separator is used in the MAC address in the calling-station-id field. |
- |
dot-split |
Indicates that dots are used as the separators in MAC address. |
- |
hyphen-split |
Indicates that the hyphens are used as the separators in MAC address. |
- |
common |
Indicates that the MAC address in the calling-station-id attribute uses the "xxseparatorxxseparatorxxseparatorxxseparatorxxseparatorxx" format. |
- |
compress |
Indicates that the MAC address in the calling-station-id attribute uses the "xxxxseparatorxxxxseparatorxxxx" format. |
- |
Usage Scenario
By default, the MAC address format in the calling-station-id attribute carried in RADIUS dynamic authorization packets is xxxxxxxxxxxx. If the MAC address format in the calling-station-id attribute sent by the RADIUS server is not the default format used on the device, run the radius-server authorization calling-station-id decode-mac-format command to change the MAC address format on the device.
When a device connects to multiple RADIUS servers, the RADIUS servers may send MAC addresses in different formats in the calling-station-id attribute to the device. You need to run the radius-server authorization attribute-decode-sameastemplate command to configure the device to parse the RADIUS authorization packet attributes based on the configuration in RADIUS server template, so that the device can work with these RADIUS servers.
Precautions
The configuration in a RADIUS server template has a higher priority than the global configuration.