iBGP needs a full-mesh topology which means all the routers need to be directly connected each other. Does that mean the BGP attributes that we configure in iBGP, such as weight, will not have any effect when selecting the path? Will a router choose the directly connected neighbor (with AD 0) instead iBGP (with AD 200)?

I have tried it in GNS3, and when I traceroute, it didn't select the path based on the weight attribute.

Is that possible for the router to select the path based on my routing policy (iBGP)?

  • 2
    I don't get it, the directly connected route is the route for the network on the segment that connect the routers together. It doesn't concern routes to other networks that are exchanged by BGP.
    – JFL
    Aug 7, 2017 at 11:09
  • Did any answer help you? If so, you should accept the answer so that the question doesn't keep popping up forever, looking for an answer. Alternatively, you can provide your own answer and accept it.
    – Ron Maupin
    Sep 6, 2017 at 14:33

1 Answer 1


because router will choose the directly connected neighbor (with AD 0) instead iBGP (with AD 200)?

With a directly connected network, a router is not sending the traffic to a neighbor, it is directly placing the traffic on the destination network. If the router itself is directly connected to the destination network, why would you want to send the traffic to a different router? That could lead to routing loops or other problems. The point of routing is to get packets to a router that is directly connected to the destination network so that router can place the packets on the destination network. You seem to want to then send the packets somewhere other than the destination network. That is ill-advised.

You could use something like PBR to send the traffic to a different interface, but this would result in sub-optimal routing in the best case. You would be adding unnecessary hops, and the traffic will probably be dropped or sent back to the directly connected router, at which point it would probably be sent back, creating a routing loop until the TTL expires and the packets are dropped.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.