osrg / gobgp

BGP implemented in the Go Programming Language
https://osrg.github.io/gobgp/
Apache License 2.0
3.66k stars 699 forks source link

how to support two local ip add same bgp-routes #2795

Open zhouguoyang777 opened 7 months ago

zhouguoyang777 commented 7 months ago

my system has two port, and each has one local ip, and the two port need to send same bgp-routes, but only one port can worked

fujita commented 7 months ago

local-address-list? https://github.com/osrg/gobgp/blob/master/docs/sources/configuration.md

zhouguoyang777 commented 7 months ago

local-address-list? https://github.com/osrg/gobgp/blob/master/docs/sources/configuration.md

local-address-list is ok, but no way to send same route, and only later route can worked

like this:

local-address-list = ["100.98.37.14","100.98.37.16"] [[bgp-routes]] afi-safi = "ipv4-unicast" nlri = "10.249.189.208/28" nexthop = "100.98.37.14"

[[bgp-routes]] afi-safi = "ipv4-unicast" nlri = "10.249.189.208/28" nexthop = "100.98.37.16"

docker exec -it ebgp gobgp global rib *> 10.249.189.208/28 100.98.37.16 00:00:04 [{Origin: i}]

fujita commented 7 months ago

[[bgp-routes]] ? GoBGP doesn't support such.