BGP peering with loopback interfaces

BGP peering with loopback interface on HuaweiAs you know BGP uses TCP to establish connection between two neighbours. That’s why TCP source IP is an IP of outgoing interface.

To establish IBGP peering between loopback interfaces, you have to define source IP. On Huawei device, you can define source IP, as loopback interface, by the following command:

peer connect-interface LoopBack 0

This command is applicable in a case when multiple links exist between BGP neighbours. Even if physical interface fails, the device still sends BGP packets.

What about EBGP connection with loopback interfaces?

A directly connected physical link must be available between EBGP peers. You have additional hops when using loopback interfaces. In case of indirect peer relationship please remember to use the following command:

peer ebgp-max-hop 3

Anyway, there is recommended to establish EBGP connection through directly connected physical links.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s