Page 1 of 1

how to set multiple gateways in bgp

Posted: Tue Jul 30, 2024 9:00 am
by julianho
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!!!

Re: how to set multiple gateways in bgp

Posted: Mon Oct 21, 2024 1:45 am
by elemental
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.