Anders Lowinger <[EMAIL PROTECTED]> wrote: >Luigi Rizzo wrote: >> >> i was wondering if anyone knows what kind of support we have >> in FreeBSD networking code, for non contiguous netmasks. >> While it is trivial to support them for interface addresses, >> managing them in the routing table is probably far from trivial >> and I believe also mostly useless... and anyways, i have no >> idea how our kernel code deals with them > >Not sure why you wonder? Do you need it?
I played around with non-contiguous netmasks when working on Demon's NETALIAS patch (see http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/12071). I didn't actually put it into production that way, though -- I stuck with standard netmasks to reduce confusion. At that time we had IIRC two /18s and a /16 assigned to a web vhosting service (because it dated from before widespread support for HTTP Host: headers). These addresses were allocated sequentially, so the simple approach of splitting the /16s into /18s and routing them to the various servers gave an uneven distribution of load. Splitting the /16s by the mask 0xFFFF0003 did a better job. (Each server could serve any site, but was more efficient if it served a subset of the sites, and it was easiest to configure this distribution on the (NetBSD) last hop router.) Tony. -- f.a.n.finch <[EMAIL PROTECTED]> http://dotat.at/ LYME REGIS TO LANDS END INCLUDING THE ISLES OF SCILLY: NORTHWEST 4 OR 5 GRADUALLY VEERING NORTH 4 OR 5. SOME SHOWERS. MAINLY GOOD. SLIGHT IN EAST, MODERATE IN WEST. _______________________________________________ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "[EMAIL PROTECTED]"