Configuring a RADIUS Server Group
Context
In a RADIUS server group, you must specify the IP address, port number, and shared key of a specified RADIUS server. Other settings, such as the RADIUS user name format and number of times RADIUS request packets are retransmitted, have default values and can be changed based on network requirements.
The RADIUS server group settings such as the RADIUS user name format and shared key must be the same as those on the RADIUS server.
Procedure
- Run system-view
The system view is displayed.
- Run radius enable
The RADIUS function is enabled.
By default, the RADIUS function is disabled.
- (Optional) Run radius server { dead-count dead-count [ fail-rate fail-rate-value ] | dead-interval dead-interval | dead-time dead-time [ recover-count invalid ] } *
The interval at which a RADIUS server alternates between Up and Down is set.
The default parameters settings are as follows:- dead-count: 10
- dead-interval: 5 seconds
- dead-time: 3 minutes
- Run radius server group group-name
A RADIUS server group is created and the RADIUS server group view is displayed.
- Run radius server { shared-key key-string | shared-key-cipher cipher-string }
The shared key is set for RADIUS servers.
By default, no shared key is set for RADIUS servers.
- Run any of the following commands to configure the primary RADIUS authentication server.
radius server authentication ip-address port [ vpn-instance vpn-instance-name | source { interface-type interface-number | ip-address ip-address } | { shared-key key-string | shared-key-cipher cipher-string } ] *
radius server authentication ipv6-address port [ shared-key key-string | shared-key-cipher cipher-string ]
radius server authentication hostname hostname port [ vpn-instance vpn-instance-name | source { interface-type interface-number | ip-address ip-address } | { shared-key key-string | shared-key-cipher cipher-string } ] *
By default, no primary RADIUS authentication server is configured.
- (Optional) Run any of the following commands to configure the secondary RADIUS authentication server.
radius server authentication ip-address port [ vpn-instance vpn-instance-name | source { interface-type interface-number | ip-address ip-address } | { shared-key key-string | shared-key-cipher cipher-string } ] * secondary
radius server authentication ipv6-address port [ shared-key key-string | shared-key-cipher cipher-string ] secondary
radius server authentication hostname hostname port [ vpn-instance vpn-instance-name | source { interface-type interface-number | ip-address ip-address } | { shared-key key-string | shared-key-cipher cipher-string } ] * secondary
By default, no secondary RADIUS authentication server is configured.
- Run any of the following commands to configure the primary RADIUS accounting server.
radius server accounting ip-address port [ vpn-instance vpn-instance-name | source { interface-type interface-number | ip-address ip-address } | { shared-key key-string | shared-key-cipher cipher-string } ] *
radius server accounting ipv6-address port [ shared-key key-string | shared-key-cipher cipher-string ]
radius server accounting hostname hostname port [ vpn-instance vpn-instance-name | source { interface-type interface-number | ip-address ip-address } | { shared-key key-string | shared-key-cipher cipher-string } ] *
By default, no primary RADIUS accounting server is configured.
- (Optional) Run any of the following commands to configure the secondary RADIUS accounting server.
radius server accounting ip-address port [ vpn-instance vpn-instance-name | source { interface-type interface-number | ip-address ip-address } | { shared-key key-string | shared-key-cipher cipher-string } ] * secondary
radius server accounting ipv6-address port [ shared-key key-string | shared-key-cipher cipher-string ] secondary
radius server accounting hostname hostname port [ vpn-instance vpn-instance-name | source { interface-type interface-number | ip-address ip-address } | { shared-key key-string | shared-key-cipher cipher-string } ] * secondary
By default, no secondary RADIUS accounting server is configured.
- (Optional) Run radius server accounting retransmit retransmit-number timeout timeout-value
The number of retransmission times and timeout period are set for RADIUS accounting request packets.
- (Optional) Run radius server authentication retransmit retransmit-number timeout timeout-value
The number of retransmission times and timeout period are set for RADIUS authentication request packets.
- (Optional) Run radius server user-name domain-excluded
Or run radius server user-name original
The RADIUS user name format is specified.
By default, the device encapsulates the domain name in the user name when sending RADIUS packets to a RADIUS server.
If the RADIUS server does not accept the user name with the domain name, you need to run the step.
- (Optional) Run radius server { retransmit retry-times | timeout time-value } *
The number of times that RADIUS request packets are retransmitted and timeout period are set.
The default number of retransmission times is 3 and the timeout period is 5 seconds.
- (Optional) Run radius server nas-ip-address ip-address
The NAS IP address is specified for the RADIUS server group.
By default, no NAS IP address is specified for a RADIUS server group. The IP address of the interface for sending packets is used as the NAS IP address.
- (Optional) Run radius server source interface interface-type interface-number
The source interface used by the device to send RADIUS packets is specified.
By default, the source interface used by the device to send RADIUS packets is not specified.
- (Optional) Run mode load-balance
The working mode of RADIUS servers is changed from active/standby to load balancing.
By default, the RADIUS servers in a RADIUS server group work in active/standby mode.
- (Optional) Configure RADIUS attributes.
- (Optional) Run radius attribute set attribute-name attribute-value
RADIUS attribute values are set.
By default, RADIUS attribute values remain unchanged.
- Run quit
The system view is displayed.
- (Optional) Run radius server authorization ip-address [ vpn-instance vpn-instance-name ] { shared-key key-string | shared-key-cipher cipher-string } [ ack-reserved-interval interval ]
Or run radius server authorization ipv6-address { shared-key key-string | shared-key-cipher cipher-string } [ ack-reserved-interval interval ]
A RADIUS authorization server is configured.
By default, no RADIUS authorization server is configured.
- Run commit
The configuration is committed.