Skip to main content
Version: 7.26

FAQ

Why does eBGP not connect to a loopback address?​

An eBGP session without multihop connects only to a peer on a connected network. A loopback address of the peer is not on a connected network, so the session does not start. When local.address is not set either, the connection shows the comment cannot listen to incoming connections, missing 'local-address'. Set multihop=yes on both routers, and set local.address to the own loopback address.

What does BGP network synchronization mean?​

BGP advertises a prefix of the output.network address list only when the routing table has an active route with exactly the same prefix, for example a connected or static route. A route for a shorter prefix that covers it is not enough. To advertise a prefix in any case, add a blackhole route for it, or set output.network-blackhole to yes in /routing/bgp/connection: the router then adds a blackhole route for each prefix of the list.

How to hide my own AS?​

Set output.default-prepend to 0 on the connection, or set bgp-path-prepend 0 in the output routing filter. The router then sends the routes without its own AS number in AS_PATH.

Remote peer prepends its AS several times. How to override the prepend?​

Set bgp-path-peer-prepend 1 in the BGP input routing filter. The peer's AS number is then in the path only once, and best-path selection compares the shorter path.

BGP does not pick the route with the shortest AS path, or other attributes are ignored​

Best-path selection compares only the routes of one BGP instance. Routes for the same prefix from two instances are compared by distance, and with equal distances both are installed as ECMP routes. See Multiple instances.

BGP routes received from one peer are not advertised to another peer​

The usual causes:

  • An output routing filter rejects the routes.
  • The two peers belong to different BGP instances. Set output.redistribute=bgp on the connection to send the routes of the other instance.
  • Both peers are iBGP peers. A router does not advertise routes from one iBGP peer to another. Use a route reflector (local.role=ibgp-rr), see Peering sessions.
  • The routes carry the Only to Customer (OTC) attribute and the peer is a provider or a lateral peer, see Route leak prevention.

Why does SNMP monitoring degrade performance with a full BGP feed?​

With a full feed, the routing table holds hundreds of thousands of routes. Some monitoring tools collect the routing table by walking the ipCidrRouteTable MIB subtree (1.3.6.1.2.1.4.24.4). Walking this table makes the SNMP agent read and encode every route, which uses CPU and memory and can degrade routing performance on a busy router.

When a tool does not need routing-table data, deny the OID for the community that the tool uses. For the default public community:

/snmp/community/set [find name=public] denied-oids=1.3.6.1.2.1.4.24.4

A walk of the routing table then returns nothing for the denied subtree, and the rest of the MIB answers as before, so the rest of the monitoring continues to work. The setting is per community. Set it on every community that can be used to poll the routing table.