Got it

BGP Peering with Physical & loopback ip

Created: Oct 27, 2020 07:17:35Latest reply: Oct 27, 2020 08:47:20 497 3 0 0 0
  Rewarded HiCoins: 0 (problem resolved)

Hi,


  In BGP configuration one side gives peer ip of physical interfaces of peer device but the other side gives peer ip loopback of connected devices is it possible? then BGP peer will establish?


& what actual meaning of peer IP connected-interface xx? 


Featured Answers

Recommended answer

Popeye_Wang
Admin Created Oct 27, 2020 08:47:20

Hi, 

BGP is an application-layer protocol, and the TCP port number is 179. Therefore, No matter whether the interfaces are physical or loopback, or across multiple devices, as long as the routes between the two interfaces are reachable, the BGP peer relationship can be established. 


The source and destination IP addresses in the BGP packets sent by the two ends must correspond.

The peer address is specified using the peer xx.xx.xx.xx as-number xx command. 

The local address is specified using the peer connect-interface command. 

By default, the local address is the outbound physical interface.

So if the local side using the physical interface and the peer side using the loopback interface, The peer side should specify the interface for sending BGP packets as the loopback interface.


local: 

 #

bgp 100

 peer 2.2.2.2 as-number 100   //  assume 2.2.2.2 is the loopback address of the peer

 #


peer:

 #

bgp 100

 peer 10.0.12.1 as-number 100    //assume 10.0.12.1/10.0.12.2 is the connect ip address.

 peer 10.0.12.1 connect-interface LoopBack0   

 #

 

View more
  • x
  • convention:

All Answers
DDSN
DDSN Admin Created Oct 27, 2020 07:18:59

Hi LSA,
Please wait patiently. Our engineers are looking for answers to your questions.
View more
  • x
  • convention:

DDSN
DDSN Admin Created Oct 27, 2020 07:48:47

Hi LSA, 

If one end is an interface IP address and the other end is a loopback address, BGP peer relationships can be established. 

When an IP address of a loopback interface or a sub-interface is used to establish a BGP connection, run the peer connect-interface command at both ends of the connection to ensure that the connection is correctly established. If this command is run on only one end, the BGP connection may fail to be established.

For more information of this command, you can refer to https://support.huawei.com/hedex/hdx.do?docid=EDOC1100136152&id=EN-US_CLIREF_0248290599&lang=en

I hope it helps!

View more
  • x
  • convention:

Hi, 

BGP is an application-layer protocol, and the TCP port number is 179. Therefore, No matter whether the interfaces are physical or loopback, or across multiple devices, as long as the routes between the two interfaces are reachable, the BGP peer relationship can be established. 


The source and destination IP addresses in the BGP packets sent by the two ends must correspond.

The peer address is specified using the peer xx.xx.xx.xx as-number xx command. 

The local address is specified using the peer connect-interface command. 

By default, the local address is the outbound physical interface.

So if the local side using the physical interface and the peer side using the loopback interface, The peer side should specify the interface for sending BGP packets as the loopback interface.


local: 

 #

bgp 100

 peer 2.2.2.2 as-number 100   //  assume 2.2.2.2 is the loopback address of the peer

 #


peer:

 #

bgp 100

 peer 10.0.12.1 as-number 100    //assume 10.0.12.1/10.0.12.2 is the connect ip address.

 peer 10.0.12.1 connect-interface LoopBack0   

 #

 

View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.