Quantcast
Channel: MikroTik
Viewing all articles
Browse latest Browse all 15434

Forwarding Protocols • Splitting /24 between two BGP peers.

$
0
0
Hello, I have a ccr2116 and in it, I have two BGP sessions, let's call them BGP1 and BGP2. I also have two IP blocks /24, let's say they are 192.168.1.0/24 and 192.168.2.0/24. The issue is that I want the range 192.168.1.0/24 to use only BGP1, and the range 192.168.2.0/24 to be split in two: one /25 to use BGP1 and the other /25 to use BGP2. To complicate it further, BGP2 uses communities 45622:5487.

I need to create a routing filter rule, and I had something like this in mind, but clearly, it's not correct:

if (dst in 192.168.2.0/25) {set bgp-path = bgp2; set bgp-communities = 45622:5487; accept} else if (dst in 192.168.2.128/25) {set bgp-path = bgp1; accept} else if (dst in 192.168.1.0/24) {set bgp-path = bgp1; accept}

I need help to achieve this.

Statistics: Posted by barcos — Tue Jan 30, 2024 3:25 am



Viewing all articles
Browse latest Browse all 15434

Trending Articles