From owner-freebsd-stable Mon Jan 24 1:34:28 2000 Delivered-To: freebsd-stable@freebsd.org Received: from mail.inr.net (mail.inr.net [198.77.208.12]) by hub.freebsd.org (Postfix) with ESMTP id B9EC815116 for ; Mon, 24 Jan 2000 01:34:25 -0800 (PST) (envelope-from mylists@inr.net) Received: from wakko (wakko.inr.net [198.77.208.4]) by mail.inr.net (8.9.3/8.9.3) with SMTP id EAA43763; Mon, 24 Jan 2000 04:34:26 -0500 (EST) Message-Id: <3.0.6.32.20000124043423.009ac550@mail.inr.net> X-Sender: mylists@mail.inr.net X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.6 (32) Date: Mon, 24 Jan 2000 04:34:23 -0500 To: freebsd-stable@freebsd.org From: "N.B. DelMore" Subject: Re: Multiple IP addresses Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Just a couple of questions concerning multiple IP's. In searching through the archives I've seen references to binding the addresses to the NIC as well as the loopback, which is the proper method? The scenario I have setup is as follows, the server (xl0) has been assigned the IP address of yyy.yyy.yyy.8 and the I route an entire Class C to that interface in the router, e.g. ip route xxx.xxx.xxx.0 255.255.255.0 yyy.yyy.yyy.8 I then added an entry in /etc/rc.local to run the following shell script: #!/bin/sh /sbin/ifconfig lo0 xxx.xxx.xxx.0 netmask 0xffffff00 alias /sbin/ifconfig lo0 xxx.xxx.xxx.1 netmask 0xffffffff alias /sbin/ifconfig lo0 xxx.xxx>xxx.2 netmask 0xffffffff alias through /sbin/ifconfig lo0 198.77.215.255 netmask 0xffffffff alias According to the feedback I recently received from Eric Futch , who was kind enough to respond privately to clarify his recent post, this (same) script if named /etc/start_if.lo0 will be run auto-magically on boot by rc.network. To recap, my questions are, which interface should be used to bind the ip's to and is it acceptable to bind .0 and .255 to the interface although by convention they shouldn't be used for anything. You feedback is greatly appreciated. Thanks Noel To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message