Community discussions

MikroTik App
 
julianho
just joined
Topic Author
Posts: 4
Joined: Wed Jan 06, 2021 4:31 am

how to set multiple gateways in bgp

Tue Jul 30, 2024 9:00 am

Hello everyone,
In the v7 version, in bgp, for the next hop of the received route redirection, only one next hop can be set (set gw XXX). How to set multiple?
/routing filter rule
add chain=bgp-in disabled=no rule="set gw ether1";accept
/routing bgp connection
add as=65530 disabled=no input.filter=bgp-in local.address=192.168.1.1 .role=\
ibgp multihop=yes name=bgp1 remote.address=192.168.1.2 .as=65530 \
router-id=192.168.1.1

In the v6 version, I can configure it like this.
/routing filter
add action=accept chain=bgp-in set-in-nexthop-direct=ether1,ether2
/routing bgp peer
add in-filter=bgp-in name=peer1 remote-address=192.168.1.2 \
remote-as=65530

Thanks!!!
 
elemental
just joined
Posts: 2
Joined: Sun Jul 07, 2024 4:22 am

Re: how to set multiple gateways in bgp

Mon Oct 21, 2024 1:45 am

up.
I have the same issue. Any ideas?
If I put set gw <1>; set gw <2>; accept; it rewrites the first set. The syntax with "," doesn't work.
I have to install a prefix via two interfaces based on a community I receive.