logging syslog source-interface

This command configures the syslog source-interface (source IP address) for syslog server configuration. The selected source-interface IP address is used for filling the IP header of management protocol packets. This allows security devices (firewalls) to identify the source packets coming from the specific switch. If a source-interface is not specified, the primary IP address of the originating (outbound) interface is used as the source address.

Format logging syslog source-interface {unit/slot/port|{loopback loopback-id}|{vlan vlan-id}}
Mode Global Config
Parameter Description
unit/slot/port VLAN or port-based routing interface.
loopback-id Configures the loopback interface to use as the source IP address. The range of the loopback ID is 0 to 7.
vlan-id Configures the VLAN interface to use as the source IP address. The range of the VLAN ID is 1 to 4093.

The following example shows how the command could be entered.

(config)#logging syslog source-interface loopback 0
(config)#logging syslog source-interface tunnel 0
(config)#logging syslog source-interface 0/4/1
(config)#logging syslog source-interface 1/0/1