Re: Please help with IP Aliasing
If you are using apache and qmail, you have no need whatsoever for binding
more than 1 ip to your system.
eg, on my system, I'm doing virtual webhosting & email for a few domains. so...
if you go to http://crosssound.narrows.com, you get one page. If you go to
http://www3.minion.ml.org, you get a different page. If you nslookup those two
names, they come up with the same ip, 18.104.22.168.
In apache's /etc/apache/httpd.conf, I have a section like so:
I use smail, not qmail, so I can't help with that... but when smail was
installed, it asked for other hostnames to process mail for... add whatever
names you need, then just make sure that all of them are CNAMES in your dns
zone file. This is also more stable than having many ip aliases in some cases.
On Wed, Jul 01, 1998 at 03:16:04PM -0400, matthew tebbens wrote:
> I only have 1 main IP address (actually 5, but only one is used),
> and I host a number of domains for web space and mail....
> I use Apache, and Qmail....
> Both are really good for Virtual Hosting....
> On Wed, 1 Jul 1998, Ian Eure wrote:
> > On Wed, Jul 01, 1998 at 02:55:39PM +0000, Andy Spiegl wrote:
> > > Hi!
> > >
> > > I am currently setting up a Mail and Webserver (hamm, 2.0.33). I have got
> > > a whole package of 256 IP addresses that I want to assign to this server.
> > > In the NET-3-HOWTO I read that I have to set it up like this:
> > Why do you want to give the machine 256 ips? It's pointless unless you do
> > webhosting, and there are better ways of doing that eg with apache's
> > <VirtualHost> setup.
> > The script you've shown should work, but a quicker way to do it would be:
> > for ip in 1 2 3 4 5 6 7 8 9 10 ...
> > do
> > ifconfig eth0:$ip xxx.xxx.xxx.$ip netmask 255.255.255.0
> > done
> > you do not need the route add -net after each eth0 alias.
> > > [stuff deleted]
> > >
> > > What I want seems to work this way, but I can't imagine that this
> > > is the right way to do it. And if I will ever get another subnetwork
> > > to add, how would I add it using the above method? I found that
> > > eth0:255 is the highest possible virtual network number. So I
> > > couldn't add any more?
> > >
> > > All you network-gurus: Please give me a hint or any pointer as
> > > to where I can find more info on that.
> > --
> > ______________________________________________________________
> > | ian eure, network admin, freelance security consultant, and |
> > | manically depressed paranoid schizophrenic, at your service. |
> > ; <email@example.com> - http://minion.org ;
> > : raw speed = 105.6 wpm with 4.5% errors :
> > . . . . . . . . . . . . . . . . . . . . . .
> > --
> > Unsubscribe? mail -s unsubscribe firstname.lastname@example.org < /dev/null
| ian eure, network admin, freelance security consultant, and |
| manically depressed paranoid schizophrenic, at your service. |
; <email@example.com> - http://minion.org ;
: raw speed = 105.6 wpm with 4.5% errors :
. . . . . . . . . . . . . . . . . . . . . .
Unsubscribe? mail -s unsubscribe firstname.lastname@example.org < /dev/null