Date: Tue, 7 Nov 2000 11:24:55 -0800 (PST) From: Todd Backman <todd@flyingcroc.net> To: Michael Steinfeld <mikes@freebsdbox.com> Cc: stable@FreeBSD.ORG Subject: Re: binding multiple IP's to one device Message-ID: <Pine.BSF.4.21.0011071114030.43212-100000@security1.noc.flyingcroc.net> In-Reply-To: <Pine.BSF.4.21.0011071406380.235-100000@www.freebsdbox.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0011071114030.43212-100000>