Specifying the source IP address for outgoing RADIUS packets
About source IP address for outgoing RADIUS packets
The source IP address of RADIUS packets that a NAS sends must match the IP address of the NAS configured on the RADIUS server. A RADIUS server identifies a NAS by its IP address. Upon receiving a RADIUS packet, a RADIUS server checks whether the source IP address of the packet is the IP address of a managed NAS.
If it is the IP address of a managed NAS, the server processes the packet.
If it is not the IP address of a managed NAS, the server drops the packet.
Before sending a RADIUS packet, the NAS selects a source IP address in the following order:
The source IP address specified for the RADIUS scheme.
The source IP address specified in system view for the VPN or public network, depending on where the RADIUS server resides.
The IP address of the outbound interface specified by the route.
Restrictions and guidelines for source IP address configuration
You can specify a source IP address for outgoing RADIUS packets in RADIUS scheme view or in system view.
The IP address specified in RADIUS scheme view applies only to one RADIUS scheme.
The IP address specified in system view applies to all RADIUS schemes.
The source IP address of RADIUS packets that a NAS sends must match the IP address of the NAS that is configured on the RADIUS server.
As a best practice, specify a loopback interface address as the source IP address for outgoing RADIUS packets to avoid RADIUS packet loss caused by physical port errors.
The source address of outgoing RADIUS packets is typically the IP address of an egress interface on the NAS to communicate with the RADIUS server. However, in some situations, you must change the source IP address. For example, when VRRP is configured for stateful failover, configure the virtual IP of the uplink VRRP group as the source address.
Specifying a source IP address for all RADIUS schemes
Enter system view.
system-view
Specify a source IP address for outgoing RADIUS packets.
radius nas-ip { ipv4-address | ipv6 ipv6-address } [ vpn-instance vpn-instance-name ]
By default, the primary IP address of the RADIUS packet outbound interface is used as the source IP address.
Specifying a source IP address for a RADIUS scheme
Enter system view.
system-view
Enter RADIUS scheme view.
radius scheme radius-scheme-name
Specify a source IP address for outgoing RADIUS packets.
nas-ip { ipv4-address | ipv6 ipv6-address }
By default, the source IP address specified by using the radius nas-ip command in system view is used. If the source IP address is not specified, the primary IP address of the outbound interface is used.