Community discussions

MikroTik App
 
kamruzzaman
just joined
Topic Author
Posts: 4
Joined: Thu Jun 26, 2014 5:11 pm

How to configured BGP route import and export policy.

Fri Jun 27, 2014 1:38 pm

HI everybody,
I am new in Mikrotik router but I have experience in cisco ZTE and juniper router configuration. However, I am using CCR 1036 mikrotik core router. I already configured eBGP with the our upstream. Now I want to integrate with customer. Can you pleased help me how to configure mikrotik router BGP route import and export policy.Prefix advertisement and received router etc.

Pleased help me.

Best Regards
Md.Kamruzzaman
 
kamruzzaman
just joined
Topic Author
Posts: 4
Joined: Thu Jun 26, 2014 5:11 pm

Re: How to configured BGP route import and export policy.

Sat Jun 28, 2014 2:22 pm

Pleased give solution...
 
samsung172
Forum Guru
Forum Guru
Posts: 1191
Joined: Sat Apr 04, 2009 3:45 am
Location: Østfold - Norway
Contact:

Re: How to configured BGP route import and export policy.

Sun Jun 29, 2014 2:51 am

Routing filter.
 
kamruzzaman
just joined
Topic Author
Posts: 4
Joined: Thu Jun 26, 2014 5:11 pm

Re: How to configured BGP route import and export policy.

Sun Jun 29, 2014 2:31 pm

Can you pleased give some example??
 
 
kamruzzaman
just joined
Topic Author
Posts: 4
Joined: Thu Jun 26, 2014 5:11 pm

Re: How to configured BGP route import and export policy.

Mon Jul 07, 2014 2:14 pm

Thank you very much for your link. It is really useful. But thing I am not clear. Can any body clear me below command and can you give me any link where I can see and study by graphically.

/routing filter
add chain=isp1-in action=discard
add chain=isp2-in action=discard
/ip route
add gateway=192.168.1.1 check-gateway=ping
add gateway=192.168.2.1 distance=30 check-gateway=ping
 
roadracer96
Forum Veteran
Forum Veteran
Posts: 733
Joined: Tue Aug 25, 2009 12:01 am

Re: How to configured BGP route import and export policy.

Mon Jul 07, 2014 5:32 pm

/routing filter
add action=discard chain=isp1_in prefix=10.0.0.0/8 prefix-length=8-32 #DROP RFC1918
add action=discard chain=isp1_in prefix=192.168.0.0/16 prefix-length=16-32 #DROP RFC1918
add action=discard chain=isp1_in prefix=172.16.0.0/12 prefix-length=12-32 #DROP RFC1918
add action=accept chain=isp1_in prefix=0.0.0.0/0 prefix-length=0 #ACCEPT DEFAULT ROUTE
add action=accept chain=isp1_in prefix=0.0.0.0/0 prefix-lenth=0-24 #ACCEPT Anything with a /24 smaller mask (eBGP only does up to /24)

add action=discard chain=isp2_in prefix=10.0.0.0/8 prefix-length=8-32 #DROP RFC1918
add action=discard chain=isp2_in prefix=192.168.0.0/16 prefix-length=16-32 #DROP RFC1918
add action=discard chain=isp2_in prefix=172.16.0.0/12 prefix-length=12-32 #DROP RFC1918
add action=accept chain=isp2_in prefix=0.0.0.0/0 prefix-length=0 #ACCEPT DEFAULT ROUTE
add action=accept chain=isp2_in prefix=0.0.0.0/0 prefix-lenth=0-24 #ACCEPT Anything with a /24 smaller mask (eBGP only does up to /24)

add action=accept chain=isp_1_out prefix=yo.ur.pr.ef/ix prefix-length=24 or 16 or 22 or whatever length #Optional set-bgp-prepend-path=YourAS (If you want to bias to one provider or another for incoming connections)
add action=reject chain=isp_1_out prefix=0.0.0.0/0 prefix-length=0-32 #Reject everything else

add action=accept chain=isp_2_out prefix=yo.ur.pr.ef/ix prefix-length=24 or 16 or 22 or whatever length #Optional set-bgp-prepend-path=YourAS (If you want to bias to one provider or another for incoming connections)
add action=reject chain=isp_2_out prefix=0.0.0.0/0 prefix-length=0-32 #Reject everything else

Who is online

Users browsing this forum: DanMos79, jb1204 and 31 guests