source-interface (RADIUS)

Configures a source IP address for Remote Authentication Dial-In User Service (RADIUS) packets that originate on the device.

Syntax

source-interface { ethernet | loopback | management { 0 | 1 } | ve ve-num }
no source-interface

Command Default

When a source interface is not configured for a RADIUS host, the IP address of the interface through which a RADIUS packet exits the device is used in the IP header as the source IP address.

Parameters

ethernet
Causes the ethernet interface to be used as the source interface for RADIUS packets that originate on the device.
loopback
Causes the loopback interface to be used as the source interface for RADIUS packets that originate on the device.
management
Causes the management interface to be used as the source interface for RADIUS packets that originate on the device.
0
Causes the chassis IP address to be used as the source IP address.
1
Causes the MM1 IP address to be used as the source IP address.
ve ve-num
Specifies a virtual ethernet interface value to be used as the source interface for RADIUS packets that originate on the device.

Modes

RADIUS server host VRF configuration mode

Usage Guidelines

Note

Note

When an interface without an IP address is configured as the source interface, the egress interface IP address is used as the source interface.
Note

Note

The source interface configuration should not conflict with the VRF specified for communications with the RADIUS server host; when the specified source interface is not part of the VRF configured for communications with the RADIUS server host, the egress interface IP address is used as the source interface.

Modifications to the interface (such as changing the IP address, VRF, and so on) that is configured as the source interface, do not affect existing connections unless the corresponding link is dropped due to these changes.

The no form of the command restores the command default value.

Examples

The following example shows how to configure an Ethernet interface (0/2) as the source interface for RADIUS packets that originate on the device and are destined for the RADIUS server host 10.37.73.180.

device# configure terminal
device(config)# radius-server host 10.37.73.180 use-vrf green-vrf
device(config-host-10.37.73.180/green-vrf)# source-interface ethernet 0/2