set protocols snmp trap-group source-interface


The set protocols snmp trap-group source-interface command configures the source interface from which traps are sent.


Command Syntax

set protocols snmp trap-group source-interface <source-interface>


Parameter

Parameter

Description

source-interface <source-interface>

Specifies the source interface. The value could be eth0, loopback interface, routed interface, sub-interface or VLAN interface.


Usage Guidelines

You can run this command to specify the source interface on the device from which traps are sent. The specified source interface is used to derive the source IP address for the SNMP traps sent, so that traps received from each switch will always have a single consistent source IP address. To ensure device security, it is recommended that you set the source interface to the loopback interface.


Example

  • Configure the loopback interface as the source interface from which traps are sent.
admin@Xorplus# set l3-interface loopback lo address 10.226.14.201 prefix-length 32
admin@Xorplus# set protocols snmp trap-group source-interface lo
admin@Xorplus# commit

Copyright © 2024 Pica8 Inc. All Rights Reserved.