From owner-freebsd-stable Tue Nov 7 11:26:26 2000 Delivered-To: freebsd-stable@freebsd.org Received: from security1.noc.flyingcroc.net (security1.noc.flyingcroc.net [207.246.128.54]) by hub.freebsd.org (Postfix) with ESMTP id 202C037B4C5 for ; Tue, 7 Nov 2000 11:26:22 -0800 (PST) Received: from localhost (todd@localhost) by security1.noc.flyingcroc.net (8.9.3/8.9.3) with ESMTP id LAA43613; Tue, 7 Nov 2000 11:24:55 -0800 (PST) (envelope-from todd@flyingcroc.net) X-Authentication-Warning: security1.noc.flyingcroc.net: todd owned process doing -bs Date: Tue, 7 Nov 2000 11:24:55 -0800 (PST) From: Todd Backman X-Sender: todd@security1.noc.flyingcroc.net To: Michael Steinfeld Cc: stable@FreeBSD.ORG Subject: Re: binding multiple IP's to one device In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In /etc/rc.conf you can use the following: ifconfig_dc0_alias0="inet 208.224.94.2 netmask 255.255.255.192" ifconfig_dc0_alias1="inet 208.224.94.3 netmask 255.255.255.192" ifconfig_dc0_alias2="inet 208.224.94.4 netmask 255.255.255.192" etc... The more appropriate place imho, would be in /usr/local/etc/rc.d/01_network.sh with the following type of setup: #!/bin/sh # # set up interface aliases. note that ns aliases MUST go in /etc/rc.conf # rather than in this file, or named won't work at startup # /sbin/ifconfig dc0 alias 208.224.94.2 netmask 255.255.255.192 # user2 /sbin/ifconfig dc0 alias 208.224.94.3 netmask 255.255.255.192 # user3 /sbin/ifconfig dc0 alias 208.224.94.4 netmask 255.255.255.192 # user4 On Tue, 7 Nov 2000, Michael Steinfeld wrote: > At the last company I worked for when we need to setup more than on IP on > the same device, we used /etc/rc.local. > > #!/bin/sh > echo "Setting up IP Aliasing" > ifconfig dc0 inet 208.224.94.2 netmask 255.255.255.192 alias > > > Am I correct that in freebsd 4.x > rc.local is now deprecated? > > I am using 4.1.1-Stable now. > I searched the handbook and could'nt find anything relevant to my question > I apologize in advance if this question is inappropriate. > > thanks, > -mike > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-stable" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message