[Contents] [Prev] [Next] [Index] [Report an Error]


Configuring the Source Address for SNMP Traps

You can configure the source address of trap packets in two ways: lo0 or a valid IPv4 address configured on one of the router interfaces. The value lo0 indicates that the source address of the SNMP trap packets will be set to the lowest loopback address configured on the interface lo0.

To specify a valid interface address as the source address for SNMP traps on one of the router interfaces, include the source-address statement at the [edit snmp trap-options] hierarchy level:

[edit snmp trap-options]
source-address address;

address is a valid IPv4 address configured on one of the router interfaces.

To specify the source address of the SNMP traps so that they will be sent to the lowest loopback address configured on the interface lo0, include the source-address statement at the [edit snmp trap-options] hierarchy level:

[edit snmp trap-options]
source-address lo0;
}


To enable and configure the loopback address, include the address statement at the
[edit interfaces lo0 unit 0 family inet] hierarchy level:

[edit interfaces]
lo0 {
    unit 0 {
        family inet {
            address ip-address;
        }
    }
} 

[Contents] [Prev] [Next] [Index] [Report an Error]