Hi,

after googling, rereading the manuals and lurking into the code I really could
not find a way to do this, unless I am missing something really simple!

I have two BGP routers on a small subnet where they peer with a transit
provider, the two routers have a carp shared IP aswell, thus each of them has
in there a $myip a $carpip and a $peerip

I wish that each of them when announcing the network I have in configuration as "network x.x.x.x/19" sends the announcement stating that $peerip is the nexthop, I am not using "depend" options on carp, what I want is that the traffic form the peer AS goes straight to the CARP IP (which failovers in 50 ms,
much faster than anything BGP can ever do..).

I have tried:

- Having inside the "neighbor" configuration block a "set nexthop $carpip",
  but this seems to be plainly ignored

- Having an explicit "match to $peerip set nexthop $carpip", but that seems
  to affect only routes re-announched to the peer and not routes coming
  from my "network a.b.c.d/19" option.

- Checking into the code, from what I see into mrt.c, function
mrt_dump_bgp_msg(), lines 123-124, the address placed into the BGP message is abruptly ((struct sockaddr_in *)&peer->sa_local)- >sin_addr.s_addr) which
  confirms why any option does not work.

I think that the possibility to announce an explicit nexthop to a peer for our AS's network(s) would be useful not only with this specific setup but also for all those who run BGP on an IP that is not the one of the "router" that
has to receive the traffic.

I am more than willing to change the code myself but an hint would be very appreciated: am I missing something ? Is mrt_dump_bgp_msg() the right place to do it ? Hints on how to make it configurable (I would say an option into the
peer or group configuration block).

Thank you for your attention and help.

A.

PS: I am off-list though I check it on the web, cc: would be appreciated, thanks.




--------------------------
Andrea Cocito
[EMAIL PROTECTED]

IEO -- European Institute of Oncology
Department of Experimental Oncology
Fundamental Bioinformatics Research Unit - Director
Via Ripamonti 435
20141 Milano - Italy
tel: +39-02-57489857
fax: +39-02-57489851

IFOM -- FIRC Institute of Molecular Oncology
IT and Bioinformatics services - Coordinator
Via Adamello 16
20139 Milano - Italy
tel: +39-02-56816055
fax: +39-02-574303231

Reply via email to