From owner-freebsd-questions Thu Dec 16 22: 0:47 1999 Delivered-To: freebsd-questions@freebsd.org Received: from sasknow.com (h139-142-245-96.ss.fiberone.net [139.142.245.96]) by hub.freebsd.org (Postfix) with ESMTP id 2964815023 for ; Thu, 16 Dec 1999 22:00:41 -0800 (PST) (envelope-from freebsd@sasknow.com) Received: from localhost (freebsd@localhost) by sasknow.com (8.9.3/8.9.3) with ESMTP id AAA97308; Fri, 17 Dec 1999 00:01:08 -0600 (CST) (envelope-from freebsd@sasknow.com) Date: Fri, 17 Dec 1999 00:01:08 -0600 (CST) From: Ryan Thompson To: Michael Smith Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Assigning Info In-Reply-To: <000701bf484c$aeeac8c0$0300a8c0@Desktop> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 16 Dec 1999, Michael Smith wrote: > Hello my name is Michael. Me and my friend are trying to figure > out how to assign multiple ip's to a box so that for example more than > one ircd could be ran. Ive searched your site and I couldn't find > anything. We'd greatly appreciate it if you would e-mail me back > explaining how to do this. Thanks. > > Michael > Hi Michael. When posting messages to a mailing list such as this, please configure your mail client to wrap lines at 72-75 characters per line so we don't have to do it for you :-) Assuming that you actually OWN additional IPs (this won't work very well if you try to invent your own :-) Or are atleast doing this on a private subnet across a lan, add the following to your rc.conf. Assume ep0 is the interface you wish to attach the IPs to, and you own IPs 10.20.30.1 through 10.20.30.4. ifconfig_ep0="inet 10.20.30.1 netmask 255.255.255.0" # my primary IP ifconfig_ep0_alias0="10.20.30.2 netmask 255.255.255.255" # second.. ifconfig_ep0_alias1="10.20.30.3 netmask 255.255.255.255" # ... ifconfig_ep0_alias2="10.20.30.4 netmask 255.255.255.255" # ... Important things to note: Note the netmask configurations. You MUST use /32 netmasks for extra IPs in this style. Also, rc expects alias entries to go AFTER the original entry for your interface, and I believe these MUST start at 0 and go incrementally. I remember reading a comment in (I think it was) rc somewhere stating that rc's alias config would break down if the alias0...n order was broken. (unintelligent shell script :-) And, if you'd like to do this without rebooting, you can issue commands like the following: ifconfig ep0 alias 10.20.30.2 netmask 255.255.255.255 Check with ifconfig -a And... aww, heck, just read the manpage :-) --- Ryan Thompson 50% Owner, Technical and Accounts Phone: +1 (306) 664-1161 SaskNow Technologies http://www.sasknow.com #106-380 3120 8th St E Saskatoon, SK S7H 0W2 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message