Community discussions

MikroTik App
 
bbalarin
just joined
Topic Author
Posts: 4
Joined: Tue Sep 09, 2008 5:38 pm

BGP Multiple Instances

Wed May 04, 2011 11:15 pm

Hello, I Seek the forum and found nothing that clears my doubt.

So here is:

I have a FreeBSD BGP (Zebra+Quagga) running, and I want to change to a Mikrotik BGP.

In the FreeBGP, I have 2 instances, 2 different AS's
So all I needed to do was declare multiple-instance, and for the second AS, i declared as a 'view'.

In mikrotik, I heard that I can do multiple instance too, but I didn't figured how.
I did:


[admin@MikroTik] > routing bgp instance print
Flags: X - disabled
0 name="default" as=65530 router-id=0.0.0.0 redistribute-connected=no
redistribute-static=no redistribute-rip=no redistribute-ospf=no
redistribute-other-bgp=no out-filter="" client-to-client-reflection=yes
ignore-as-path-len=no routing-table=""

1 name="INSTANCE_1" as=MY_AS_1 router-id=MY_ROUTER_ID_1 redistribute-connected=yes
redistribute-static=yes redistribute-rip=no redistribute-ospf=no
redistribute-other-bgp=no out-filter="" client-to-client-reflection=no
ignore-as-path-len=no routing-table=""

2 name="INSTANCE_2" as=MY_AS_2 router-id=MY_ROUTER_ID_2 redistribute-connected=yes
redistribute-static=yes redistribute-rip=no redistribute-ospf=no
redistribute-other-bgp=no out-filter="" client-to-client-reflection=no
ignore-as-path-len=no routing-table=""

[admin@MikroTik] > routing bgp peer print
Flags: X - disabled, E - established
# INSTANCE.....................REMOTE-ADDRESS.............................................REMOTE-AS
0 INSTANCE_1...................REMOTE_ADDRESS_OF_MY_LINK_PROVIDER............AS_OF_MY_LINK_PROVIDER


But I can't add another Peer, for the INSTANCE_2, is that needed?


Thanks, and sorry for any English mistake, hehe ;)
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7053
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: BGP Multiple Instances

Thu May 05, 2011 8:42 am

Instance config is correct.
You should be able to add more than one peer per instance. What error message is displayed when you are trying to add second peer?
 
bbalarin
just joined
Topic Author
Posts: 4
Joined: Tue Sep 09, 2008 5:38 pm

Re: BGP Multiple Instances

Thu May 05, 2011 1:47 pm

Oh, I can't remember right now the exactly error message.

But I remember if I change the Remote Address, it Add with no errors. But it's the same Link for both AS's, the same Remote Address, what should I do?.


Edit.: The error message is : 'Couldn't add New BGP Peer - already exists (6)'
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7053
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: BGP Multiple Instances

Thu May 05, 2011 3:17 pm

It is not allowed to add multiple peers with the same remote-address.
 
bbalarin
just joined
Topic Author
Posts: 4
Joined: Tue Sep 09, 2008 5:38 pm

Re: BGP Multiple Instances

Thu May 05, 2011 3:57 pm

So what should I do?

I need to get this Two AS's working on this Mikrotik BGP, and they will work on the same link. On my FreeBSD BGP it is working, like I said before.


There is no way? I need this !
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7053
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: BGP Multiple Instances

Thu May 05, 2011 4:10 pm

You can set different ip address on the same interface and use that one for second peer.
 
indianboy
newbie
Posts: 45
Joined: Sat Dec 02, 2006 2:59 pm

Re: BGP Multiple Instances

Wed Feb 11, 2015 10:47 pm

You can set different ip address on the same interface and use that one for second peer.
Sorry for bumping on to this old thread but it resembles to what i am trying to do. I currently have a same scenario where I am trying to establish BGP with same remote-address from 2 different AS.

It's giving me error as the OP stated. Now the resolution seems to use a different remote-address but the remote-address is provided by my provider and it has to remain the same.

Any clue about how to make it work ?
 
User avatar
leoktv
Trainer
Trainer
Posts: 144
Joined: Thu Dec 01, 2005 1:39 pm
Location: sweden
Contact:

Re: BGP Multiple Instances

Fri Feb 20, 2015 10:17 pm

Hi
Use confederation to combine the 2 AS into one then use that for the upstream peer.

Who is online

Users browsing this forum: No registered users and 32 guests