Date: Sat, 26 Feb 2000 23:29:39 -0500 (EST) From: Robert Watson <robert@cyrus.watson.org> To: Brian Somers <brian@Awfulhak.org> Cc: cvs-committers@freebsd.org, cvs-all@freebsd.org, brian@hak.lan.Awfulhak.org Subject: Re: cvs commit: src/sbin/ifconfig ifconfig.8 ifconfig.c Message-ID: <Pine.NEB.3.96L.1000226232108.4502A-100000@fledge.watson.org> In-Reply-To: <200002270221.CAA00850@hak.lan.Awfulhak.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 27 Feb 2000, Brian Somers wrote: > > rwatson 2000/02/26 10:55:41 PST > > > > Modified files: > > sbin/ifconfig ifconfig.8 ifconfig.c > > Log: > > Introduce ``add'' and ``remove'' as alternatives to ``alias'' and ``delete''. > > Improve compatibility with BSD/OS, and also more accurately reflect that > > IP aliases aren't really any different than the primary IP address on an > > interface. > > Except that the primary interface address will be used for outgoing Actually, that's not correct. There's a best-match search going on here also, I believe. For example, if the IP addresses are in different subnets, in_pcbladdr will select an address based on a routing entry. Typically, ``aliases'' have a netmask of 255.255.255.255, and so they won't match. But you can sort the addresses differently to get a ``non-primary'' address to be selected. Remember that aliases are not just used in the case where they are from an existing network on the interface. :-) Robert N M Watson robert@fledge.watson.org http://www.watson.org/~robert/ PGP key fingerprint: AF B5 5F FF A6 4A 79 37 ED 5F 55 E9 58 04 6A B1 TIS Labs at Network Associates, Safeport Network Services To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.96L.1000226232108.4502A-100000>