ip syslog source-interface

Configures an interface as the source IP address from which the syslog module sends log messages.
Syntax
ip syslog source-interface { ethernet stack-id/slot/port | loopback number | management number | ve number }
no ip syslog source-interface { ethernet stack-id/slot/port | loopback number | management number | ve number }
Command Default

When the management VRF is configured, the syslog module sends log messages only through ports that belong to the management VRF and through the out-of-band management port.

Parameters
ethernet stack-id/slot/port
Specifies the Ethernet interface to be used as the source IP address.
loopback number
Specifies the loopback interface to be used as the source IP address.
management number
Specifies the management interface to be used as the source IP address.
ve number
Specifies the Virtual Ethernet interface to be used as the source IP address.
Modes

Global configuration mode

Usage Guidelines

When a source interface is configured, management applications use the lowest configured IP address of the specified interface as the source IP address in all the outgoing packets. If the configured interface is not part of the management VRF, the response packet does not reach the destination.

The syslog source interface configuration command ip syslog source-interface should be compatible with the management VRF configuration. Any change in the management VRF configuration takes effect immediately for syslog.

The no form of the command removes the configured interface as the source IP address.

Examples

The following example configures an Ethernet interface as the source IP address for the syslog module to send log messages.

device(config)# ip syslog source-interface ethernet 1/1/1

The following example configures a management interface as the source IP address for the syslog module to send log messages.

device(config)# ip syslog source-interface management 1