Thanks George for your prompt response...I am running Mikrotik v3.28 on X-86 Server with RAM-2GB and 4 Processors and 4 NIC cards,so I suppose there wont be any Device level constraints.
Will be great if you can provide me with the detailed IBGP configuration of my setup with the below example parameters as this is the first time I am going for BGP in Mikrotik :
ISP Gateway 1 : 192.168.1.1/30
ISP Gateway 2 : 192.168.2.1/30
Mikrotik Ether 1 : 192.168.1.2/30
Mikrotik Ether 2 : 192.168.2.2/30
LAN Pools provided by ISP : 172.16.1.0/27 & 172.16.1.128/25
AS Number : 65501
Please suggest......
Regards
Rakesh
I have done it before.
Make sure you create peer setup to 192.168.1.1 & 192.168.2.1
To do FAIL-OVER for the UPSTREAM :
1. You need to receive Internet full prefix from your main peer (192.168.1.1). It is about 300k prefix today.
2. Block any prefix received from backup peer (192.168.2.1)
2. Set your default gateway to backup gateway(192.168.2.1)
By doing this, on normal situation, your routing table will have 300k prefix routes with 192.168.1.1 as the next hop. These routes have higher priority than the default gateway (192.168.2.1). So any packet goes to internet will use 192.168.1.1 as the gateway.
When the main link fail and peer to main gateway terminated, those routes will be removed from routing tables after 180 seconds (default "hold-time" setting. You can set it smaller) then any packet goes to internet will use the default gateway (192.168.2.1).
To do FAIL-OVER for DOWNSTREAM
OK we know that route with smaller segment has higher priority.
For example, if we have 2 routes on our router like these:
202.46.150.0/24 via 202.0.0.1
202.46.150.0/25 via 202.0.0.2
Any packet directed to 202.46.150.5 will be passed to 202.0.0.2 by our router, right.
So what you need to do is :
1. Advertise 172.16.1.0/27 & 172.16.1.128/25 to your backup peer (192.168.2.1).
2. And advertise 172.16.1.0/28, 172.16.1.16/28 ,172.16.1.128/26, 172.16.1.192/26 to your main peer (192.168.1.1).
By doing this, on normal situation, your isp main router (I believe this router located above 192.168.1.1(R1) & 192.168.2.1(R2) and closer to the internet), will have 6 active routes :
172.16.1.0/28 via (R1)
172.16.1.16/28 via (R1)
172.16.1.128/26 via (R1)
172.16.1.192/26 via (R1)
172.16.1.0/27 via (R2)
172.16.1.128/25 via (R2)
In this situation, first 4 routes have higher priority, right? Isp main router will always use R1 to reach your network.
When your main link goes down, first 4 routes will be removed from isp main router and your ispmain router will use R2 to reach your network. And how long the router will remove the routes is depend on the isp main router hold-time setting and you can not do anything. What you have to do is just wait.
If your isp set the hold-time to 30 minutes so you have to wait 30 minutes before your backup work.
I hope you get the idea. It is work good for me. What we need to worry is ISP hold-time setting. So make sure you ask ISP about their hold-time setting.
Actually, AS prepending is also work to fail-over the Downstream, but since I'm using public AS and not all router in the internet allow as prepending, so I do not use it. Just make sure you consult to your ISP when you want to use AS prepending.
I hope it help