Radius Attributes
Radius Attributes
Radius Attributes
Switches
Configuration Guide - User Access and
Authentication 2 AAA Configuration
11 Filter-Id string UCL group name, user group name, or IPv4 Access
Control List (ACL) ID.
NOTE
● When this attribute carries the IPv4 ACL ID, the IPv4
ACL IDs must range from 3000 to 3999 (wired users)
or 3000 to 3031 (wireless users).
● A RADIUS packet cannot carry the user group name,
UCL group name, or IPv4 ACL ID simultaneously.
15 Login- integer Service to use to connect the user to the login host:
Service ● 0: Telnet
● 5: X25-PAD
● 50: SSH
● 51: FTP
● 52: Terminal
NOTE
An attribute can contain multiple service types.
29 Termina integer What action the NAS should take when the
tion- specified service is completed:
Action ● 0: forcible disconnection
● 1: reauthentication
NOTE
This attribute is only valid for 802.1X and MAC address
authentication users.
When the RADIUS server delivers only this attribute, the
value of attribute 27 Session-Timeout is set to 3600s (for
802.1X authentication users) or 1800s (for MAC address
authentication users) by default.
31 Calling- string This Attribute allows the NAS to send in the Access-
Station- Request packet the phone number that the call
Id came from, using Automatic Number Identification
(ANI) or similar technology.
46 Acct- integer How long (in seconds) the user has received
Session- service.
Time NOTE
If the administrator modifies the system time after the
user goes online, the online time calculated by the device
may be incorrect.
64 Tunnel- integer Protocol type of the tunnel. The value is fixed as 13,
Type indicating VLAN.
65 Tunnel- integer Medium type used on the tunnel. The value is fixed
Medium as 6, indicating Ethernet.
-Type
87 NAS- string Port of the NAS that is authenticating the user. The
Port-Id NAS-Port-Id attribute has the following formats:
● New:
For Ethernet access users, the NAS-Port-Id is in
the format "slot=xx; subslot=xx; port=xxx; VLAN
ID=xxxx", in which "slot" ranges from 0 to 15,
"subslot" 0 to 15, "port" 0 to 255, and "VLAN ID"
1 to 4094.
For ADSL access users, the NAS-Port-Id is in the
format "slot=xx; subslot=x; port=x; VPI=xxx;
VCI=xxxxx", in which "slot" ranges from 0 to 15,
"subslot" 0 to 9, "port" 0 to 9, "VPI" 0 to 255,
and "VCI" 0 to 65535.
● Old:
For Ethernet access users, the NAS-Port-Id is in
the format "port number (2 characters) + sub-
slot ID (2 bytes) + card number (3 bytes) +
VLAN ID (9 characters)."
For ADSL access users: port number (2
characters) + sub-slot ID (2 bytes) + card
number (3 bytes) + VPI (8 characters) + VCI (16
characters). The fields are prefixed with 0s if
they contain fewer bytes than specified.
NOTE
Extended RADIUS attributes contain the vendor ID of the device. The vendor ID of Huawei
is 2011.
26- HW- integ Peak information rate (PIR) at which the user
1 Input- er accesses the NAS, which is the maximum rate of
Peak- traffic that can pass through an interface. The value
Informatio is a 4-byte integer, in bit/s. The HW-Input-Peak-
n-Rate Information-Rate must be higher than or equal to
the HW-Input-Committed-Information-Rate. The
default HW-Input-Peak-Information-Rate is equal to
the HW-Input-Committed-Information-Rate.
26- HW- integ Committed information rate (CIR) at which the user
2 Input- er accesses the NAS, which is the allowed average rate
Committe of traffic that can pass through an interface. The
d- value is a 4-byte integer, in bit/s.
Informatio NOTE
n-Rate This attribute must be specified when the rate of packets
sent from the user to the NAS is limited.
26- HW- integ Committed burst size (CBS) at which the user
3 Input- er accesses the NAS, which is the average volume of
Committe burst traffic that can pass through an interface. The
d-Burst- value is a 4-byte integer, in bit.
Size
26- HW- integ Peak information rate at which the NAS connects to
4 Output- er the user. The value is a 4-byte integer, in bit/s. The
Peak- HW-Output-Peak-Information-Rate must be higher
Informatio than or equal to the HW-Output-Committed-
n-Rate Information-Rate. The default HW-Output-Peak-
Information-Rate is equal to the HW-Output-
Committed-Information-Rate.
26- HW- integ Committed burst size at which the NAS connects to
6 Output- er the user. The value is a 4-byte integer, in bit.
Committe
d-Burst-
Size
26- HW-Qos- string Name of the QoS profile. The maximum length of
31 Data the name is 31 bytes. The RADIUS server uses this
field to deliver the QoS profile for traffic policing. The
QoS profile must exist on the device and traffic
policing is configured using the car (QoS profile
view) command.
NOTE
This attribute is only supported by the S5720EI, S5720HI,
S6720EI, and S6720S-EI.
26- HW- integ Voice VLAN authorization flag. The value 1 indicates
33 VoiceVlan er that the authorized VLAN is the voice VLAN. This
attribute is used with VLAN authorization attributes.
NOTE
After the authentication mode multi-share command is
run in an authentication profile, the HW-VoiceVlan attribute
cannot be authorized.
26- HW-Data- string The RADIUS server delivers an ACL rule to users
82 Filter through this attribute.
NOTE
● A RADIUS packet can carry multiple attributes 26-82.
Currently, each attribute can carry only one ACL rule.
● When wireless users go online on the same AP in the
same VLAN, user isolation must be configured in a
traffic profile to ensure that ACL rules can be delivered
to the AP through a DACL group and take effect.
● You can run the display access-user user-id user-id
command to check whether this attribute takes effect. If
Dynamic ACL desc (Effective) is displayed in the
command output, this attribute takes effect. If Dynamic
ACL desc (Ineffective) is displayed in the command
output, this attribute does not take effect.
The attribute format is acl number key1 key-value1...
keyN key-valueN permit/deny.
The fields are described as follows:
● acl: Keyword, indicating that the ACL rule is
delivered.
● number: ACL rule number. The value ranges from
10000 to 10999.
● keyM key-valueM(1≤M≤N): Keyword in an ACL
rule and its value. The keyword value can be:
– dest-ip ip-address: Specifies the destination IP
address in dotted decimal notation. When the
destination IP address is 0.0.0.0, this parameter
can be omitted without configuration.
– dest-ipmask mask: Specifies the destination IP
mask. NAC users support only the destination
IP mask that is an integer ranging from 1 to 32.
VM users support only the destination IP mask
that is in dotted decimal notation. When IP
mask is 0, this parameter can be omitted
without configuration.
– tcp-srcport port: Specifies the source TCP port
number that ranges from 0 to 65535.
– tcp-dstport port: Specifies the destination TCP
port number that ranges from 0 to 65535.
– udp-srcport port: Specifies the source UDP port
number that ranges from 0 to 65535.
– udp-dstport port: Specifies the destination UDP
port number that ranges from 0 to 65535.
26- HW- ipadd Primary DNS address delivered by the RADIUS server
13 Client- r after a user is successfully authenticated.
5 Primary-
DNS
26- HW- string Name of the domain used for user authentication.
13 Domain- This attribute can be the domain name contained in
8 Name a user name or the name of a forcible domain.
26- HW-AP- string AP's MAC address used for STA authentication, in H-
14 Informatio H-H format. H is a 4-digit hexadecimal number.
1 n NOTE
This attribute is only supported by the S5720HI.
26- HW- string Service scheme name. A service scheme contains user
14 Service- authorization information and policies.
6 Scheme
26- HW- integ User access type carried in the authentication and
15 Access- er accounting request packets sent by the RADIUS client
3 Type to the RADIUS server:
● 1: Dot1x user
● 2: MAC address authentication user or MAC
address bypass authentication
● 3: Portal authentication user
● 4: Static user
● 6: Management user
● 7: PPP users
26- HW- string Forcibly pushed URL. The maximum length is 200
15 Portal- bytes.
6 URL If information delivered by the RADIUS server
matches the configured URL template, the URL
configured in the template is used. Otherwise, the
character string delivered by the RADIUS server is
used.
26- HW- string Delivers the Internet Service Provider (ISP) VLAN for
16 Forwardin user packet forwarding.
1 g-VLAN NOTE
This attribute is only supported by the S5720HI.
26- HW-LLDP string LLDP information. A packet can contain multiple HW-
16 LLDP-Info attributes to carry different options.
3
26- HW- string Redirection ACL. Redirection is performed for only the
17 Redirect- users matching the ACL rules. The ACL number or
3 ACL ACL name can be delivered. The ACL name must start
with a character.
NOTE
The value range of acl-number is from 3000 to 3999 for
wired users and from 3000 to 3031 for wireless users.
26- HW-Web- string Information sent from the portal server via the device
23 Authen- (which transparently transmits the information) to
7 Info the RADIUS server. For example, a user selects the
authentication-free option and time information for
next login, based on which the RADIUS server saves
the MAC address of the user for a period of time.
Upon the next login of the user, the login page is not
displayed. Instead, MAC address authentication is
preferentially used. This attribute can be used for
transparent transmission in complex modes such as
EAP.
26- HW- string Number of upstream bytes at the specified tariff level
24 Tariff- sent to the accounting server. This field is included in
7 Input- the accounting packets. The unit can be byte,
Octets kilobyte, megabyte, or gigabyte. The format is Tariff
level:Number of upstream bytes. An accounting
packet can contain the traffic of at most 8 tariff
levels.
NOTE
User-Name(1) 1 0-1 0 0
User-Password(2) 0-1 0 0 0
CHAP-Password(3) 0-1 0 0 0
NAS-IP-Address(4) 1 0 0 0
NAS-Port(5) 1 0 0 0
Service-Type(6) 1 0-1 0 0
Framed-Protocol(7) 1 0-1 0 0
Filter-Id(11) 0 0-1 0 0
Framed-Mtu(12) 0-1 0 0 0
Login-Service(15) 0 0-1 0 0
Callback-Number(19) 0 0-1 0 0
Class(25) 0 0-1 0 0
Idle-Timeout(28) 0 0-1 0 0
Called-Station-Id(30) 0-1 0 0 0
Calling-Station-Id(31) 1 0-1 0 0
NAS-Identifier(32) 1 0 0 0
Acct-Session-id(44) 1 0 0 0
CHAP-Challenge(60) 0-1 0 0 0
NAS-Port-Type(61) 1 0 0 0
Tunnel-Type(64) 0 0-1 0 0
Tunnel-Medium-Type(65) 0 0-1 0 0
Acct-Interim-Interval(85) 0 0-1 0 0
NAS-Port-Id(87) 0-1 0 0 0
NAS-IPv6-Address(95) 0-1 0 0 0
Framed-Interface-Id(96) 0+ 0 0 0
Framed-IPv6-Prefix(97) 0+ 0 0 0
HW-SecurityStr(195) 0-1 0 0 0
HW-Input-Peak- 0 0-1 0 0
Information-Rate(26-1)
HW-Input-Committed- 0 0-1 0 0
Information-Rate(26-2)
HW-Input-Committed- 0 0-1 0 0
Burst-Size(26-3)
HW-Output-Peak- 0 0-1 0 0
Information-Rate(26-4)
HW-Output-Committed- 0 0-1 0 0
Information-Rate(26-5)
HW-Output-Committed- 0 0-1 0 0
Burst-Size(26-6)
HW-Remanent- 0 0-1 0 0
Volume(26-15)
HW-Subscriber-QoS- 0 0-1 0 0
Profile(26-17)
HW-Connect-ID(26-26) 1 0 0 0
Ftp-directory(26-28) 0 0-1 0 0
HW-Exec-Privilege(26-29) 0 0-1 0 0
HW-Qos-Data(26-31) 0 0-1 0 0
HW-VoiceVlan(26-33) 0 0-1 0 0
HW-ProxyRdsPkt(26-35) 0 0-1 0 0
HW-NAS-Startup-Time- 1 0 0 0
Stamp(26-59)
HW-IP-Host- 1 0 0 0
Address(26-60)
HW-Up-Priority(26-61) 0 0-1 0 0
HW-Down- 0 0-1 0 0
Priority(26-62)
HW-Primary- 0 0-1 0 0
WINS(26-75)
HW-Second-WINS(26-76) 0 0-1 0 0
HW-Input-Peak-Burst- 0 0-1 0 0
Size(26-77)
HW-Output-Peak-Burst- 0 0-1 0 0
Size(26-78)
HW-Client-Primary- 0 0-1 0 0
DNS(26-135)
HW-Client-Secondary- 0 0-1 0 0
DNS(26-136)
HW-Domain- 1 0 0 0
Name(26-138)
HW-AP- 1 0 0 0
Information(26-141)
HW-User- 0 0-1 0 0
Information(26-142)
HW-Service- 0 0-1 0 0
Scheme(26-146)
HW-Access-Type(26-153) 1 0-1 0 0
HW-URL-Flag(26-155) 0 0-1 0 0
HW-Portal-URL(26-156) 0 0-1 0 0
HW-Terminal- 0-1 0 0 0
Type(26-157)
HW-DHCP- 0+ 0 0 0
Option(26-158)
HW-UCL-Group(26-160) 0 0-1 0 0
HW-Forwarding- 0 0-1 0 0
VLAN(26-161)
HW-Forwarding- 0 0-1 0 0
Interface(26-162)
HW-LLDP(26-163) 0-1 0 0 0
HW-Redirect- 0 0-1 0 0
ACL(26-173)
HW-User-Extend- 0-1 0 0 0
Info(26-201)
HW-Web-Authen- 1 0 0 0
Info(26-237)
HW-Ext-Specific(26-238) 0 1 0 0
HW-User-Access- 1 0 0 0
Info(26-239)
HW-Access-Device- 0-1 0 0 0
Info(26-240)
HW-Reachable- 0 0 0 0
Detect(26-244)
HW-Framed-IPv6- 0-1 0 0 0
Address(26-253)
HW-Version(26-254) 1 0 0 0
HW-Product-ID(26-255) 1 0 0 0
MS-MPPE-Send- 0 0-1 0 0
Key(MICROSOFT-16)
MS-MPPE-Recv- 0 0-1 0 0
Key(MICROSOFT-17)
Cisco-avpair(CISCO-1) 0 0-1 0 0
Agent-Circuit- 0-1 0 0 0
Id(DSLFORUM-1)
Agent-Remote- 0-1 0 0 0
Id(DSLFORUM-2)
User-Name(1) 1 1 1 0 0 0
NAS-IP-Address(4) 1 1 1 0 0 0
NAS-Port(5) 1 1 1 0 0 0
Service-Type(6) 1 1 1 0 0 0
Framed-Protocol(7) 1 1 1 0 0 0
Framed-IP- 1 1 1 0 0 0
Address(8)
Called-Station- 1 1 1 0 0 0
Id(30)
NOTE
For users who access
the network through
PPP authentication,
this attribute is
optional. If the
authentication
request packet does
not carry this
attribute, then neither
does the accounting
request packet.
Calling-Station- 1 1 1 0 0 0
Id(31)
NAS-Identifier(32) 1 1 1 0 0 0
Acct-Status-Type(40) 1 1 1 0 0 0
Acct-Delay-Time(41) 0-1 1 1 0 0 0
Acct-Session-Id(44) 1 1 1 0 0 0
Acct-Authentic(45) 1 1 1 0 0 0
Acct-Session- 0 1 1 0 0 0
Time(46)
Acct-Terminate- 0 0 1 0 0 0
Cause(49)
Event- 1 1 1 0 0 0
Timestamp(55)
NAS-Port-Type(61) 1 1 1 0 0 0
NAS-Port-Id(87) 1 1 1 0 0 0
HW-Input- 1 1 1 0 0 0
Committed-
Information-
Rate(26-2)
HW-Output- 1 1 1 0 0 0
Committed-
Information-
Rate(26-5)
HW-Connect- 1 1 1 0 0 0
ID(26-26)
HW-IP-Host- 1 1 1 0 0 0
Address(26-60)
HW-Domain- 1 1 1 0 0 0
Name(26-138)
HW-DHCP- 0+ 0+ 0+ 0 0 0
Option(26-158)
HW-Reachable- 0 0 0 0 0 0
Detect(26-244)
MS-MPPE-Send- 0 0 0 0 0 0
Key(MICROSOFT-16)
MS-MPPE-Recv- 0 0 0 0 0 0
Key(MICROSOFT-17)
Cisco- 0 0 0 0 0 0
avpair(CISCO-1)
Filter-Id(11) 0-1 0 0 0 0 0
Session-Timeout(27) 0-1 0 0 0 0 0
Idle-Timeout(28) 0-1 0 0 0 0 0
Termination- 0-1 0 0 0 0 0
Action(29)
Acct-Session-Id(44) 1 1 1 1 1 1
Tunnel-Type(64) 0-1 0 0 0 0 0
Tunnel-Medium- 0-1 0 0 0 0 0
Type(65)
Tunnel-Private- 0-1 0 0 0 0 0
Group-ID(81)
Acct-Interim- 0-1 0 0 0 0 0
Interval(85)
HW-Input-Peak- 0-1 0 0 0 0 0
Information-
Rate(26-1)
HW-Input- 0-1 0 0 0 0 0
Committed-
Information-
Rate(26-2)
HW-Output-Peak- 0-1 0 0 0 0 0
Information-
Rate(26-4)
HW-Output- 0-1 0 0 0 0 0
Committed-
Information-
Rate(26-5)
HW-Output- 0-1 0 0 0 0 0
Committed-Burst-
Size(26-6)
HW-Subscriber-QoS- 0-1 0 0 0 0 0
Profile(26-17)
HW-Qos- 0-1 0 0 0 0 0
Data(26-31)
HW-Up- 0-1 0 0 0 0 0
Priority(26-61)
HW-Down- 0-1 0 0 0 0 0
Priority(26-62)
HW-Input-Peak- 0-1 0 0 0 0 0
Burst-Size(26-77)
HW-Output-Peak- 0-1 0 0 0 0 0
Burst-Size(26-78)
HW-Data- 0-1 0 0 0 0 0
Filter(26-82)
HW-Service- 0-1 0 0 0 0 0
Scheme(26-146)
HW-URL- 0-1 0 0 0 0 0
Flag(26-155)
HW-Portal- 0-1 0 0 0 0 0
URL(26-156)
HW-UCL- 0-1 0 0 0 0 0
Group(26-160)
HW-Forwarding- 0-1 0 0 0 0 0
VLAN(26-161)
HW-Forwarding- 0-1 0 0 0 0 0
Interface(26-162)
HW-Redirect- 0-1 0 0 0 0 0
ACL(26-173)
HW-Ext- 1 0 0 0 0 0
Specific(26-238)
MS-MPPE-Send- 0 0 0 0 0 0
Key(MICROSOFT-16)
MS-MPPE-Recv- 0 0 0 0 0 0
Key(MICROSOFT-17)
Cisco- 0-1 0 0 0 0 0
avpair(CISCO-1)
Agent-Circuit- 0-1 0 0 0 0 0
Id(DSLFORUM-1)
Agent-Remote- 0-1 0 0 0 0 0
Id(DSLFORUM-2)