cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3330
Views
15
Helpful
5
Replies

BGP Neighbors...Loopbacks or Directly Connected?

When would you want to make your BGP neighbor their loopback as opposed to your neighbor's connected interface?

1 Accepted Solution

Accepted Solutions

Vinit Jain
Cisco Employee
Cisco Employee

It depends if you are forming an IBGP neighborship or EBGP neighborship.

With IBGP, it is preferable to peer over loopback interface. This is so because, loopback is an always UP interface (unless its manually shutdown) and if a physical link goes up, there might be an alternate path via IGP to reach the loopback. Thus the BGP session will not go down vs if it is over a physical interface.

With EBGP session, usually the peerings are with provider and over a public IP. Thus the neighborship is established over physical interface. But for security reasons, the peering can be established over loopback with two conditions in mind:

- loopback to loopback/physical interface reachability is there between the two peering devices

- proper ebgp-multihop 

is configure or if the peering is between two directly connected router over loopback, then

disable-connected-check

command can be configured for the neighbor.

Hope this answers your question.

Regards

Vinit

Thanks
--Vinit

View solution in original post

5 Replies 5

Vinit Jain
Cisco Employee
Cisco Employee

It depends if you are forming an IBGP neighborship or EBGP neighborship.

With IBGP, it is preferable to peer over loopback interface. This is so because, loopback is an always UP interface (unless its manually shutdown) and if a physical link goes up, there might be an alternate path via IGP to reach the loopback. Thus the BGP session will not go down vs if it is over a physical interface.

With EBGP session, usually the peerings are with provider and over a public IP. Thus the neighborship is established over physical interface. But for security reasons, the peering can be established over loopback with two conditions in mind:

- loopback to loopback/physical interface reachability is there between the two peering devices

- proper ebgp-multihop 

is configure or if the peering is between two directly connected router over loopback, then

disable-connected-check

command can be configured for the neighbor.

Hope this answers your question.

Regards

Vinit

Thanks
--Vinit

Hi Vinit,

I have similar kind of situation while using

disable-connected-check

command.

Is it possible to form neighborship between two routers R1 and R2 , where R1 is having

neighbor 

command with IP address of physical interface of R2 and

R2 have

neighbor 

command with address of Loopback Interface of R1.

 

On R1

router bgp 100
  neighbor 192.168.12.2 remote-as 200 --> 192.168.12.2 is the Physical interface IP of R2

 

On R2

router bgp 200
  neighbor 1.1.1.1 remote-as 100
  neighbor 1.1.1.1 update-source Loopback0 --> 1.1.1.1 is the loopback of R1

 

Will it work in any ways or does disable-connected-check will help?

 

Hi Vinit,

Thanks for the quick reply.

 

I agree with you Sir  but in my case I want to establish EBGP neighborship and the requirement is like

on one router its is loopback int addr and on other end router it is physical int addr onto which I am forming neighborship.If it is possible then also I do not have to use Ebgp-Multihop.

 

Thanks

Ritesh

 

trfinkenstadt
Level 1
Level 1

Loopback use case:

-  iBGP neighbors with multiple direct L2 connections:  This is an ideal for peering between loopbacks since they can use either ethernet interface.  

-  Multiple T1's between you and ISP would be an ebgp multihop scenario between loopbacks.

Connected interface:

-  eBGP to your service providers.

-  iBGP only one interface between routers.

Things like that.

best regards,

tim

Joseph W. Doherty
Hall of Fame
Hall of Fame

Disclaimer

The Author of this posting offers the information contained within this posting without consideration and with the reader's understanding that there's no implied or expressed suitability or fitness for any purpose. Information provided is for informational purposes only and should not be construed as rendering professional advice of any kind. Usage of this posting's information is solely at reader's own risk.

Liability Disclaimer

In no event shall Author be liable for any damages wha2tsoever (including, without limitation, damages for loss of use, data or profit) arising out of the use or inability to use the posting's information even if Author has been advised of the possibility of such damage.

Posting

The other posters have well answered how loopbacks or directly connected interfaces are typically used.  However, I did want to mention, when using iBGP and loopbacks, you may want to also use

next-hop-self

to have the loopback passed to its iBGP peers as BGP's

next hop address too
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card