Switch User Manual

set snmp interface
8-40 SNMP Configuration
Defaults
None.
Mode
Switchmode,readonly.
Example
Thisexampledisplaystheoutputofthiscommand.Inthiscase,theIPaddressassignedto
loopbackinterface1willbeusedasthe sourceIPaddressoftheSNMPagent.
C3(rw)->show snmp interface
loopback 1 192.168.10.1
set snmp interface
UsethiscommandtospecifytheinterfaceusedforthesourceIPaddressoftheSNMPagentwhen
generatingSNMPtraps.
Syntax
set snmp interface {loopback loop-ID | vlan vlan-ID}
Parameters
Defaults
None.
Mode
Switchcommand,readwrite.
Usage
ThiscommandallowsyoutoconfigurethesourceIPaddressusedbytheSNMPagentwhen
generatingSNMPtraps.Anyofthemanagementinterfaces,includingVLANroutinginterfaces,
canbeconfiguredasthesourceIPaddressusedinpacketsgeneratedbytheSNMPagent.
AninterfacemusthaveanIPaddress
assignedtoitbeforeitcanbesetbythiscommand.
Ifnointerfaceisspecified,thentheIPaddressoftheHostinterfac e willbeused.
Ifanonloopbackinterfaceisconfiguredwiththiscommand,applicationpacketegressis
restrictedtothatinterfaceiftheservercanbereached
fromthatinterface.Otherwise,thepackets
aretransmittedoverthefirstavailableroute.Packetsfromtheapplicationserverarereceivedon
theconfiguredinterface.
Ifaloopbackinterfaceisconfigured,andtherearemultiplepathstotheapplicationserver,the
outgoinginterface(gateway)isdeterminedbasedonthebestroutelookup.
Packetsfromthe
applicationserverarethenreceivedonthesendinginterface.Ifrouteredundancyisrequired,
therefore,aloopbackinterfaceshouldbeconfigured.
loopbackloopID Specifiestheloopbackinterfacetobeused.ThevalueofloopIDcan
rangefrom0to7.
vlanvlanID SpecifiestheVLANinterfaceto
beused.ThevalueofvlanIDcanrange
from1to4093.