xStack
®
DGS-3400 Series Layer 2 Gigabit Ethernet Managed Switch CLI Manual
557
78
S
YSLOG OR
T
RAP
S
OURCE
-I
NTERFACE
C
OMMANDS
The syslog or trap source-interface function is used for selecting a fixed interface as the source interface to send syslog
or trap message. It also provides a mechanism to select a certain IP address from the specified interface as the source
address to send the message. The servers beyond different networks receive the syslog or trap message always come
from a fixed source IP address, it is helpful to use the source IP address to identify the switch.
The Syslog or Trap Source-Interface commands in the Command Line Interface (CLI) are listed (along with the
appropriate parameters) in the following table.
Command
Parameters
config syslog source_ipif
[<ipif_name> {<ipaddr>} | none]
show syslog source_ipif
config trap source_ipif
[<ipif_name> {<ipaddr> | <ipv6addr>} | none]
show trap source_ipif
Each command is listed, in detail, in the following sections.
config syslog source_ipif
Purpose
Configure syslog source IP interface.
Syntax
config syslog source_ipif [<ipif_name> {<ipaddr>} | none]
Description
This command is used to configure syslog source IP interface.
Parameters
ipif_name
- IP interface name. If only specify this parameter, the least IPv4 address and the
smallest IPv6 address of ipif_name will be used as source IP addresses.
none
- For clear the configured source IP interface.
ipaddr
- Specify the IPv4 address.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
Configure syslog source IP interface:
DGS-3450:admin# config syslog source_ipif ipif3 14.0.0.5
Command: config syslog source_ipif ipif3 14.0.0.5
Success
DGS-3450:admin#
To clear the configured source IP interface for syslog:
DGS-3450:admin# config syslog source_ipif none
Command: config syslog source_ipif none
Success
DGS-3450:admin#