Community discussions

MikroTik App
 
btel
just joined
Topic Author
Posts: 10
Joined: Thu Dec 22, 2016 5:33 pm

Multiple Peer sessions on the same IP address problem

Fri Dec 22, 2017 1:55 pm

Hello,

We have a problem setting up multiple BGP sessions with the same (upstream) IP address. What we try to achieve here is to have two or more BGP sessions with the same IP address, but with different public AS numbers. For example:

Upstream peer is AS6238x
Peer IP is 185.23x.64.1

Downstream peers are: AS3951x and AS4887x.

When we try to add a second downstream peer to the same IP address of the upstream Peer, we get an error message:

Couldn't change BGP Peer <name_here_2> - already exists (6)

Similary, when we try to establish on the upstream Peer router a downstream session with the two ASNs we get the following error:

Couldn't change BGP Peer <name_here_2> - already exists (6)

Both routers are CCR1036 (for the Upstream and the Downstream as well).

What should we do ?

Thanks in advance!
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7053
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: Multiple Peer sessions on the same IP address problem

Fri Dec 22, 2017 3:33 pm

Not possible, you can open only one TCP socket per IP scr/dst and port combination.

Local or remote address must be different at least on one of the routers.
 
btel
just joined
Topic Author
Posts: 10
Joined: Thu Dec 22, 2016 5:33 pm

Re: Multiple Peer sessions on the same IP address problem

Fri Dec 22, 2017 4:20 pm

Thanks for the reply. So i've figured, and from what we are trying at the moment, it seems that both local and remote IP addresses have to be different. This is not OK, because this means that for every BGP session we need to "sacrifice" at least 2 IP addresses. Any workaround for this ?
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7053
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: Multiple Peer sessions on the same IP address problem

Fri Dec 22, 2017 5:10 pm

No, only one should be different source or destination, so only one address must be sacrificed.
 
btel
just joined
Topic Author
Posts: 10
Joined: Thu Dec 22, 2016 5:33 pm

Re: Multiple Peer sessions on the same IP address problem

Fri Dec 22, 2017 7:45 pm

Could you please show or link me towards an example of such ?

THanks
 
pe1chl
Forum Guru
Forum Guru
Posts: 10223
Joined: Mon Jun 08, 2015 12:09 pm

Re: Multiple Peer sessions on the same IP address problem

Fri Dec 22, 2017 8:06 pm

In my current setup (made before you started this thread) I have a /29 subnet in which my local router has connection from the same source address to two different destination addresses in that /29 network.
That works fine. These 2 destinations are 2 different routers in the same AS (different from the local AS).
That should not be different from 2 different AS that in fact are the same router.
 
btel
just joined
Topic Author
Posts: 10
Joined: Thu Dec 22, 2016 5:33 pm

Re: Multiple Peer sessions on the same IP address problem

Fri Dec 22, 2017 9:21 pm

We managed to add an extra IP on both ends (both routers) for the new BGP connect, however the issue that arises now is that the SECOND router is trying to connect to router ONE using a wrong IP address, the IP address belonging to the first BGP sessions. Here is the log detail:

Invalid remote AS, expected 3951X
RemoteAddress=185.23x.64.8
RemoteAs=48874
 
pe1chl
Forum Guru
Forum Guru
Posts: 10223
Joined: Mon Jun 08, 2015 12:09 pm

Re: Multiple Peer sessions on the same IP address problem  [SOLVED]

Fri Dec 22, 2017 9:35 pm

You should set the update source to the correct address....
 
btel
just joined
Topic Author
Posts: 10
Joined: Thu Dec 22, 2016 5:33 pm

Re: Multiple Peer sessions on the same IP address problem

Sat Dec 23, 2017 5:54 pm

Thank you! That was it! I entered the update source for each Peer with the IP with which they should use to update the session. So problem solved and everything is OK now!
 
LtFlash
just joined
Posts: 5
Joined: Tue Mar 27, 2012 5:17 am

Re: Multiple Peer sessions on the same IP address problem

Wed Nov 01, 2023 3:54 am

Hi,
How do I change the local IP address? I tried to update it in Advanced-Update source field but still can't establish secondary BGP session to the same remote AS. I have two links and need to establish a session with the same RS server over each of the links but giving different localprefs to them. Any way to achieve this? When I'm trying to copy an existing BGP peer and just change the update source I'm getting an error 'Couldn't add BGP peer - already exists'. Thanks.
 
pe1chl
Forum Guru
Forum Guru
Posts: 10223
Joined: Mon Jun 08, 2015 12:09 pm

Re: Multiple Peer sessions on the same IP address problem

Wed Nov 01, 2023 11:41 am

You are replying to a very old topic, and things have changed a lot since then.
I would not know if that still works.

Who is online

Users browsing this forum: No registered users and 4 guests