How control eBGP outgoing/upload traffic ?

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 ?!

in routing filter specify prefix=x.x.x.x/20

“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 ?

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.

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 ?

this can’t be done with one router !

solution:
http://www.youtube.com/watch?v=kCVMkMym9MY

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 :slight_smile: