ip source-interface
Use this command to configure the IPv4 source interface for a protocol.
Use the no form of this command to remove the IPv4 source interface for a protocol.
Note: It is possible that the router may establish an outgoing TCP connection using an interface that does not have a valid or routable IP address. In such case, the user must specify the address of a different interface to use as the source IP address for the outgoing connection. For this scenario, the command
ip source-interface or
ipv6 source-interfaceis used.
Command Syntax
ip source-interface IFNAME (tacacs+|ntp|snmp|syslog|radius) (port (0|<1025-65535>)|) (vrf VRF_NAME|)
no ip source-interface IFNAME (tacacs+|ntp|snmp|syslog|radius)
Parameters
IFNAME
Interface name (lo or physical interface)
tacacs+
Terminal Access Controller Access Control System
ntp
Network Time Protocol
snmp
Simple Network Management Protocol
syslog
syslog
radius
Remote Authentication Dial-In User Service
<1025-65535>
Port number. Default value is as per the protocol.
VRF_NAME
Virtual Routing and Forwarding name
Default
The default port 0 is assigned to the protocol.
Command Mode
Configure mode
Applicability
This command was introduced in OcNOS version 4.0.
Example
#configure terminal
(config)#ip source-interface xe1 ntp
(config)#ip source-interface xe2 radius port 1025
(config)#ip source-interface xe3 syslog port 65535 vrf management
Last modified date: 10/19/2023