Community discussions

MikroTik App
 
marko_bg
Member Candidate
Member Candidate
Topic Author
Posts: 119
Joined: Sat Jun 03, 2006 11:48 am

How control eBGP outgoing/upload traffic ?

Thu May 14, 2009 11:23 pm

new post:

I need this:

upload from prefix x.x.x.x/20 go to peer1
upload from prefix y.y.y.y/24 go to peer2


is this can make with mikrotik ?!
Last edited by marko_bg on Sat May 16, 2009 3:04 pm, edited 4 times in total.
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 6130
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: BGP outgoing traffic grade to 3 peer ?

Fri May 15, 2009 9:28 am

in routing filter specify prefix=x.x.x.x/20
 
marko_bg
Member Candidate
Member Candidate
Topic Author
Posts: 119
Joined: Sat Jun 03, 2006 11:48 am

Re: BGP outgoing traffic grade to 3 peer ?

Fri May 15, 2009 9:58 am

"filter-out" have my prefix , but this is for incoming traffic (download), and this work.
(this is for other AS in the world, to grade my prefix, through peer1 or peer2)

but,
when I put my prefix in filter-in , rules dont work, like is not there (maybe bug) ?
btw, prefix in filter-in , did not for my prefix, then for prefix of other AS on internet.

... and yes, when i put prefix from some other AS in filter-in, this work, my prefix go through peer 1 or peer2 , to this prefix. i can setup this, but I do not wont this.

I need to setup upload from my prefix to all prefix on internet at once.

btw, what is Pref. Source ? I put my prefix there, but nothing heppend ?
Last edited by marko_bg on Sat May 16, 2009 3:20 pm, edited 3 times in total.
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 6130
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: BGP outgoing traffic grade to 3 peer ?

Fri May 15, 2009 10:06 am

Sorry, I was unable to understand what are you talking about.

Maybe post routing filter rules and also give an example of prefix that is not processed by those rules.
 
marko_bg
Member Candidate
Member Candidate
Topic Author
Posts: 119
Joined: Sat Jun 03, 2006 11:48 am

Re: How control eBGP outgoing/upload traffic ?

Fri May 15, 2009 10:43 am

I need to setup upload and download for my prefix.

example:
x.x.x.x/20 - upload/download through peer1
y.y.y.y/24 - upload/download through peer2

(of course, when peer1 go down, traffic must go through peer2)

I make routing filter for download (filter-out), this work.

but filter-in not work, like I need. ?!


example of my seting:

;;; peer1
1 chain=peer1-In invert-match=no action=accept set-bgp-weight=100
2 chain=peer1-Out prefix=x.x.x.x/20 invert-match=no action=accept
3 chain=peer1-Out prefix=y.y.y.y/24 invert-match=no action=accept set-bgp-prepend=2
4 chain=peer1-Out invert-match=no action=discard

;;; peer2
5 chain=peer2-In invert-match=no action=accept set-bgp-weight=90
6 chain=peer2-Out prefix=x.x.x.x/20 invert-match=no action=accept set-bgp-prepend=2
7 chain=peer2-Out prefix=y.y.y.y/24 invert-match=no action=accept
8 chain=peer2-Out invert-match=no action=discard


in this seting all my upload go through peer1, becouse of weight 100 in filter-in rules for peer1

how to setup filter-in for source prefix (my prefix) !


any idea, ... normis, anyone ?
 
marko_bg
Member Candidate
Member Candidate
Topic Author
Posts: 119
Joined: Sat Jun 03, 2006 11:48 am

Re: How control eBGP outgoing/upload traffic ?

Tue May 19, 2009 10:12 pm

this can't be done with one router !

solution:
http://www.youtube.com/watch?v=kCVMkMym9MY
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 6130
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: How control eBGP outgoing/upload traffic ?

Wed May 20, 2009 7:56 am

Wait a minute, you want to match also incoming prefixes by y.y.y.y/24 and y.y.y.y/24??
Of course in that case it won't work even with two routers, because you are announcing those prefixes and they will not be seen in in-filter :)

Who is online

Users browsing this forum: No registered users and 15 guests