From owner-freebsd-hackers Thu Jul 26 23:56:42 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from snipe.mail.pas.earthlink.net (snipe.mail.pas.earthlink.net [207.217.120.62]) by hub.freebsd.org (Postfix) with ESMTP id 130E637B401 for ; Thu, 26 Jul 2001 23:56:40 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from mindspring.com (dialup-209.245.136.132.Dial1.SanJose1.Level3.net [209.245.136.132]) by snipe.mail.pas.earthlink.net (EL-8_9_3_3/8.9.3) with ESMTP id XAA17862; Thu, 26 Jul 2001 23:56:35 -0700 (PDT) Message-ID: <3B6110CA.A1FDD7C0@mindspring.com> Date: Thu, 26 Jul 2001 23:57:14 -0700 From: Terry Lambert Reply-To: tlambert2@mindspring.com X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Steven Ames Cc: "Jonathan M. Slivko" , Chris Dillon , freebsd-hackers@FreeBSD.ORG Subject: Re: Why two cards on the same segment... References: <001701c11614$94114000$6401a8c0@equinox> <00fa01c11615$73cccb10$28d90c42@eservoffice.com> <003401c11616$d2a8e460$6401a8c0@equinox> <011d01c11617$10b96950$28d90c42@eservoffice.com> <005f01c11618$145b04a0$6401a8c0@equinox> <015201c1161a$1fd46ae0$28d90c42@eservoffice.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Steven Ames wrote: > > You lost me. How what is being done? You can use ifconfig to assign > as many blocks/netmasks as you feel the urge to. It'll do it. Actually, you'll get an "address in use" error; it will add the IP alias to the card, but in fact, it will not really dso the job: the ifconfig will tell one story, while the kernel data structures will tell another. Look at the alias add code in /sys/netinet, with special attention to the EADDRINUSE return, and where it can happen, and what code ends up not being executed in that case. So it will look like it has worked, despite the error, but in fact will have only partially completed the setup, unless your netmask is 255.255.255.255, or unless the address space is totally non-intersecting (per the 192 net example previously posted as "working"). -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message