calling-station-id mac-format
Function
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.
Format
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
Parameters
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 "xxxxseparatorxxxxseparatorxxxx" format. | - |
mode2 | Indicates that the MAC address in the calling-station-id attribute uses the "xxseparatorxxseparatorxxseparatorxxseparatorxxseparatorxx" 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. | - |
Usage Guidelines
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.
Example
# 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.
<AC6605> system-view [AC6605] radius-server template huawei [AC6605-radius-huawei] calling-station-id mac-format dot-split mode2 uppercase