bgpPeerConfAltLocalAsMode
DC-BGP-MIB ·
.1.2.826.42.1.1578918.5.65.1.3.1.1.1.104
Object
column r/w
Enumeration
This field controls the operation of the alternative local
AS number specified by the bgpPeerConfAltLocalAs field.
It has no effect unless bgpPeerConfAltLocalAs specifies a
valid non-zero value.
This field controls the use of the alternative local AS
number in the following BGP operations:
- establishing the peering session
- updating the AS_PATH when importing a route received
from the peer (EBGP only)
- updating the AS_PATH when exporting a route to the peer
(EBGP only).
These operations are described in full in the BGP
Configuration and Management Guide (bgp_config_mgmt.doc)
and summarized in the following table.
Mode |Session |AS_PATH In|AS_PATH Out
============+==========+==========+==================
Standard BGP|Primary AS|- |Primary AS
Mode 1 |Either |- |Selected As
Mode 2 |Alt AS |Alt AS |Alt AS, Primary AS
Mode 3 |Alt AS |- |Alt AS, Primary AS
Mode 4 |Alt AS |- |Alt AS.
This field can be changed at any time. However, if the
field is changed while the peer is admin_status UP, the
change will only take effect after the peer has been
cycled admin_status DOWN and then UP, thus forcing the
peer session to be restarted. In this case, until the
peer is set admin_status DOWN, the peer will be marked as
out of date (as reported by the config_state field in the
AMB_BGP_PEER_STATUS row for the peer).
Context
- MIB
- DC-BGP-MIB
- OID
.1.2.826.42.1.1578918.5.65.1.3.1.1.1.104- Type
- column
- Access
- readwrite
- Status
- current
- Parent
- bgpPeerEntry
- Groups
- 1
Net-SNMP examples
How SNMP and these commands workWalk the column to discover its indexed instances, or supply every index to read one instance.
Walk the column
/usr/bin/snmpbulkwalk -v2c -c '<community>' -Pud -Ir -OQUs -m 'DC-BGP-MIB' -M '/opt/observium/mibs/versa:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'DC-BGP-MIB::bgpPeerConfAltLocalAsMode'
More examples
Read one indexed instance
/usr/bin/snmpget -v2c -c '<community>' -Pud -Ir -OQUv -m 'DC-BGP-MIB' -M '/opt/observium/mibs/versa:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'udp:<hostname>:161' 'DC-BGP-MIB::bgpPeerConfAltLocalAsMode.<bgpRmEntIndex>.<bgpPeerLocalAddrType>.<bgpPeerLocalAddr>.<bgpPeerLocalPort>.<bgpPeerRemoteAddrType>.<bgpPeerRemoteAddr>.<bgpPeerRemotePort>.<bgpPeerLocalAddrScopeId>'
Translate to a numeric OID
/usr/bin/snmptranslate -Pud -Ir -On -m 'DC-BGP-MIB' -M '/opt/observium/mibs/versa:/opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp' 'DC-BGP-MIB::bgpPeerConfAltLocalAsMode'
Syntax
Enumeration
Values & Constraints
Enumerated Values
1 | mode1 |
2 | mode2 |
3 | mode3 |
4 | mode4 |
Conformance
Member of