SYSLOG OR TRAP SOURCE-INTERFACE COMMANDS. D-Link xStack DGS-3400 Series, xStack DGS-3450, xStack DGS-3426P, xStack DGS-3426
Advertisement
Advertisement
xStack
®
DGS-3400 Series Layer 2 Gigabit Ethernet Managed Switch CLI Manual
71
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 config syslog source_ipif show syslog source_ipif config trap source_ipif show trap source_ipif
Parameters
[<ipif_name> {<ipaddr>} | none]
[<ipif_name> {<ipaddr> | <ipv6addr>} | none]
Each command is listed, in detail, in the following sections.
config syslog source_ipif
Purpose
Syntax
Description
Parameters
Restrictions
Configure syslog source IP interface. config syslog source_ipif [<ipif_name> {<ipaddr>} | none]
This command is used to configure syslog source IP interface. 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.
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#
475
xStack
®
DGS-3400 Series Layer 2 Gigabit Ethernet Managed Switch CLI Manual
show syslog source_ipif
Purpose
Syntax
Description
Parameters
Restrictions
Show syslog source IP interface. show syslog source_ipif
This command is used to display the syslog source IP interface.
None.
None.
Example usage:
Show syslog source IP interface:
DGS-3450:admin# show syslog source_ipif
Command: show syslog source_ipif
Syslog Source IP Interface Configuration:
IP Interface : ipif3
IPv4 Address : 14.0.0.3
DGS-3450:admin#
config trap source_ipif
Purpose
Syntax
Description
Parameters
Restrictions
Configure trap source IP interface. config trap source_ipif [<ipif_name> {<ipaddr> | <ipv6addr>} | none]
This command is used to configure trap source IP interface. 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 clearing the configured source IP interface. ipaddr - IPv4 address. ipv6addr - IPv6 address.
Only Administrator and Operator-level users can issue this command.
Example usage:
Configure trap source IP interface:
DGS-3450:admin# config trap source_ipif inter4
Command: config trap source_ipif inter4
Success
DGS-3450:admin#
To clear the configured trap source IP interface:
476
xStack
®
DGS-3400 Series Layer 2 Gigabit Ethernet Managed Switch CLI Manual
DGS-3450:admin# config trap source_ipif none
Command: config trap source_ipif none
Success
DGS-3450:admin#
show trap source_ipif
Purpose
Syntax
Description
Parameters
Restrictions
Show trap source IP interface. show trap source_ipif
This command is used to display the trap source IP interface.
None.
None.
Example usage:
Show trap source IP interface:
DGS-3450:admin# show trap source_ipif
Command: show trap source_ipif
Trap Source IP Interface Configuration:
IP Interface : ipif4
IPv4 Address : None
IPv6 address : 3000::52
DGS-3450:admin#
477
Download
Advertisement