Date: Mon, 22 Aug 2011 17:42:14 -0700 From: Doug Barton <dougb@FreeBSD.org> To: John <jwd@freebsd.org> Cc: FreeBSD Net <freebsd-net@freebsd.org> Subject: Re: ifconfig -alias with duplicate netmasks work? Message-ID: <4E52F766.8070102@FreeBSD.org> In-Reply-To: <20110822234921.GA34843@FreeBSD.org> References: <20110822234921.GA34843@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 08/22/2011 16:49, John wrote: > Fellow Net'ers > > Debugging an nfs locking problem to a linux host, I accidently > issued some ifconfig commands on the bsd server (9-current) and > found that duplicate netmasks seem to work fine. For instance: > > bce0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 > options=c01bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,VLAN_HWTSO,LINKSTATE> > ether d4:85:64:66:2a:14 > inet6 fe80::d685:64ff:fe66:2a14%bce0 prefixlen 64 scopeid 0x1 > inet 10.24.99.127 netmask 0xffff0000 broadcast 10.24.255.255 > inet 10.24.99.128 netmask 0xffff0000 broadcast 10.24.255.255 > inet 10.24.99.126 netmask 0xffff0000 broadcast 10.24.255.255 > nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL> > media: Ethernet autoselect (1000baseT <full-duplex>) > status: active My experience on 8.x is that this will work for most things, but then fail in odd ways. You're still better off following the old advice of making the aliases for the same network have the all-1s netmask. -- Nothin' ever doesn't change, but nothin' changes much. -- OK Go Breadth of IT experience, and depth of knowledge in the DNS. Yours for the right price. :) http://SupersetSolutions.com/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4E52F766.8070102>