Reply
New Member
Posts: 4
Registered: ‎10-14-2018

EdgeRouter - Border Gateway Protocol

Hello,

 

I am trying to create a basic BGP setup between two Ubiquiti routers using the following guide

 

https://help.ubnt.com/hc/en-us/articles/205222990-EdgeRouter-Border-Gateway-Protocol

 

however after following the steps, when I use the peer verification it shows remote router ID 0.0.0.0.

 

Do I need to setup other configurations than the ones mentioned, like for the different ethernet ports on the routers,

and which ethernet ports should I use to connect the routers?

 

 

Established Member
Posts: 823
Registered: ‎07-23-2015
Kudos: 485
Solutions: 47

Re: EdgeRouter - Border Gateway Protocol

What are you trying to accomplish? Why BGP?

You need at a minimum a P2P link between the routers with an IP on each side, neighbor statements configured pointing to each router's IP on the P2P link, and the remote-as defined on each neighbor (can be the same ASN). BGP should then establish.
Please don't forget to kudo helpful posts and mark accepted solutions accordingly!
jcm.me - Personal Site | Joyn.Tech - Consulting Site

Add Auto-Provisioning Support to UNMS
New Member
Posts: 4
Registered: ‎10-14-2018

Re: EdgeRouter - Border Gateway Protocol

I am trying to make a setup between two routers, also including the use of BGP. The reason I want to use BGP is that it is the aim of an educational project.

 

Following the guide I have used the following commands

 

for router 1
ubnt@R1# set protocols bgp 1 parameters router-id 192.0.2.1
ubnt@R1# set protocols bgp 1 neighbor 203.0.113.1 remote-as 2
 
for router 2
ubnt@R2# set protocols bgp 2 parameters router-id 203.0.113.1
ubnt@R2# set protocols bgp 2 neighbor 192.0.2.1 remote-as 1
 
Do I need to set up additional links between the routers?
Established Member
Posts: 823
Registered: ‎07-23-2015
Kudos: 485
Solutions: 47

Re: EdgeRouter - Border Gateway Protocol

So how do the routers have reachability between eachother over those neighbor IPs? If you don't use directly connected subnets then you need to enable multihop:

set protocols bgp 1 neighbor 203.0.113.1 ebgp-multihop <number of hops>
set protocols bgp 2 neighbor 192.0.2.1 ebgp-multihop <number of hops>
Please don't forget to kudo helpful posts and mark accepted solutions accordingly!
jcm.me - Personal Site | Joyn.Tech - Consulting Site

Add Auto-Provisioning Support to UNMS
New Member
Posts: 4
Registered: ‎10-14-2018

Re: EdgeRouter - Border Gateway Protocol

I have tried to make a setup where I connect the computer to eth0 on the routers.

The two routers are connected through the eth1-ports

 

I have given the following IPs

 

R1

eth0 192.168.1.100/24

eth1 192.168.1.3/24

 

R2

eth0 192.168.2.100/24

eth1 192.168.2.3/24

 

I have tried the suggested commands

set protocols bgp 1 neighbor 192.168.2.100 ebgp-multihop 1

set protocols bgp 2 neighbor 192.168.1.100 ebgp-multihop 1

 

also with multihop set to 2

 

when I use the command: show ip bgp neighbors, it says:

Specified configuration path is not valid

 

I also tried 

set protocols bgp 1 neighbor 192.168.2.3 ebgp-multihop 1

set protocols bgp 2 neighbor 192.168.1.3 ebgp-multihop 1

 

received the same result

Specified configuration path is not valid

 

also when I set the multihop to 2.

 

It is rather confusing for me

 

 

Established Member
Posts: 823
Registered: ‎07-23-2015
Kudos: 485
Solutions: 47

Re: EdgeRouter - Border Gateway Protocol

You do realize you fundamentally have a layer 3 connectivity problem on eth1, right? Eth1 should have the same subnet but different addresses so the routers can ping between each other.

When the routers are directly connected you do not need multihop.
Please don't forget to kudo helpful posts and mark accepted solutions accordingly!
jcm.me - Personal Site | Joyn.Tech - Consulting Site

Add Auto-Provisioning Support to UNMS
New Member
Posts: 4
Registered: ‎10-14-2018

Re: EdgeRouter - Border Gateway Protocol

Ï didn't think it was a problem when using BGP, I just followed the guide.

 

I have changed eth1 on router 2 to 192.168.1.4

 

but when I use the show ip bgp neighbors command the remote router ID is still 0.0.0.0

 

Highlighted
Established Member
Posts: 823
Registered: ‎07-23-2015
Kudos: 485
Solutions: 47

Re: EdgeRouter - Border Gateway Protocol

Please post your full BGP and interface config from both routers at this point.
Please don't forget to kudo helpful posts and mark accepted solutions accordingly!
jcm.me - Personal Site | Joyn.Tech - Consulting Site

Add Auto-Provisioning Support to UNMS
Reply