Re: interface metric & quagga
- From: "Bruce M. Simpson" <bms@xxxxxxxxxxx>
- Date: Fri, 26 Jan 2007 18:38:53 +0000
Eugene Grosbein wrote:
RTM_NEWADDR contains 'metric 0' regardless of interface metricIt's a mixed issue.
value set with ifconfig before. quagga, since version 0.99.3,
takes metric value from RTM_NEWADDR message and this value overrides
right interface metric learned by quagga a milisecond before.
Then it passes zero interface metric to ripd that uses interface
metric as hop count increment for RIP-learned routes.
This effectively breaks RIPv2 for FreeBSD (quagga-0.99.2 and older
versions do not use metric from RTM_NEWADDR and work), perhaps RIPv1 too.
FreeBSD does not use the interface metric, so routing daemons shouldn't use that field.
However, many routing implementations use a metric or distance of 0 to indicate a directly-connected route or interface route, so it has special meaning.
We could deal with this situation better by explicitly setting the metric to an invalid value.
If/when we implemented equal-cost multipath, or source address selection policies, then we should use this field.
Verified with RELENG_4 and RELENG_6.I'd rewrite the patch to wrap the assignment in #ifndef __FreeBSD__ so that it can be taken upstream more easily. If/when we do equal-cost multipath or source policy we can bump __FreeBSD_version.
Is it kernel bug or quagga bug?
I also suggest to include next patch to the Ports tree
if no objections. It restores RIP support.
Regards,
BMS
_______________________________________________
freebsd-net@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscribe@xxxxxxxxxxx"
- Follow-Ups:
- Re: interface metric & quagga
- From: Eugene Grosbein
- Re: interface metric & quagga
- References:
- interface metric & quagga
- From: Eugene Grosbein
- interface metric & quagga
- Prev by Date: About NAT Traversal
- Next by Date: Re: About NAT Traversal
- Previous by thread: interface metric & quagga
- Next by thread: Re: interface metric & quagga
- Index(es):
Relevant Pages
- Re: OT - Quagga/CARP
... when an alternate route for the same prefix is in the kernel route table. ...
The problem is that quagga just does a stupid RTM_DELETE/RTM_ADD combo to ... limitation
in the kernel routing tables or something, ... My understanding is that restarting
en ospfd daemon is bad. ... (freebsd-net) - Re: Quagga as border router
... question I asked regarding the viability of an ISP using Quagga under ... already
have my router config pretty well done, on a flash memory card, ... Not unless you want
to pull in the entire world through those bgp peers, but since you use default-originate only,
this shouldn't be a problem. ... Quagga could disconnect peers just simply because the initial
route "flooding" took too much time. ... (freebsd-net) - interface metric & quagga
... 'route -n monitor' shows me that 'ifconfig up' command ... value set with ifconfig
before. ... right interface metric learned by quagga a milisecond before. ... Is
it kernel bug or quagga bug? ... (freebsd-net) - Re: interface metric & quagga
... right interface metric learned by quagga a milisecond before. ... FreeBSD
does not use the interface metric, ... indicate a directly-connected route or interface
route, ... Quagga checks if metric is zero and changes zero to one for itself ...
(freebsd-net)