The calling-station-id mac-format command sets the encapsulation format of the MAC address in the calling-station-id (Type 31) attribute of RADIUS packets.
The undo calling-station-id mac-format command restores the default encapsulation format of the MAC address in the calling-station-id attribute of RADIUS packets.
By default, the encapsulation format of the MAC address in the calling-station-id attribute of RADIUS packets is xxxx-xxxx-xxxx, in lowercase.
calling-station-id mac-format { dot-split | hyphen-split | colon-split } [ mode1 | mode2 ] [ lowercase | uppercase ]
calling-station-id mac-format unformatted [ lowercase | uppercase ]
calling-station-id mac-format bin
undo calling-station-id mac-format
Parameter | Description | Value |
---|---|---|
dot-split |
Indicates that the dot (.) is used as the separator in a MAC address. |
- |
hyphen-split |
Indicates that the hyphen (-) is used as the separator in a MAC address. |
- |
colon-split |
Indicates that the colon (:) is used as the separator in a MAC address. |
- |
unformatted |
Indicates that no separator is used in a MAC address. |
- |
mode1 |
Indicates that the MAC address in the calling-station-id attribute uses the XXXX-XXXX-XXXX, XXXX:XXXX:XXXX, or XXXX.XXXX.XXXX format. |
- |
mode2 |
Indicates that the MAC address in the calling-station-id attribute uses the XX-XX-XX-XX-XX-XX, XX:XX:XX:XX:XX:XX, or XX.XX.XX.XX.XX.XX format. |
- |
lowercase |
Indicates that the MAC address in the calling-station-id attribute uses the lowercase. |
- |
uppercase |
Indicates that the MAC address in the calling-station-id attribute uses the uppercase. |
- |
bin |
Indicates that the MAC address in the calling-station-id attribute uses the binary form. |
- |
The default format of the MAC address in the calling-station-id (Type 31) attribute of RADIUS packets from the device is xxxx-xxxx-xxxx. If the RADIUS server does not support the default format, run the calling-station-id mac-format command to change the format.
# Set the dot as the separator in a MAC address and the encapsulation format of the MAC address in the calling-station-id attribute to XX.XX.XX.XX.XX.XX in uppercase.
<HUAWEI> system-view [HUAWEI] radius-server template huawei [HUAWEI-radius-huawei] calling-station-id mac-format dot-split mode2 uppercase