Date: Fri, 17 Dec 1999 00:01:08 -0600 (CST) From: Ryan Thompson <freebsd@sasknow.com> To: Michael Smith <EncryptU@Worldnet.Att.Net> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Assigning Info Message-ID: <Pine.BSF.4.10.9912162351130.97223-100000@sasknow.com> In-Reply-To: <000701bf484c$aeeac8c0$0300a8c0@Desktop>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <ryan@sasknow.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.9912162351130.97223-100000>