lkml.org 
[lkml]   [2000]   [Mar]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: "Super" IP aliases?
On Tue, Mar 21, 2000 at 12:06:17PM -0800, Scott Doty wrote:
> I have a need to run thousands of IP addresses on one host. (It's
> running apache.)

I figured out how to do this. Linux 2.2 loopback interfaces are
visible to the net. So:

/sbin/ifconfig lo:0 10.20.30.1 netmask 255.255.255.0 mtu 1500 up

This serves the entire 10.20.30.0/24 network, replacing 254 discrete
interfaces. Thank you, O Linux gurus, for making this possible.

Incidentally, I've received a few emails asking why we're not
using name-based virtual hosts. The short answer is a) some
browsers don't send a "Host:" header; and b) our systems are set
up for IP hosts, which would be a pain to change.

-Scott
p.s. er...just in case it's only an accident that loopback aliases
work the way they do: I'd like to register a formal grovel that
their useful behavior remain in Linux. Indeed, this is one
feature that blows the doors off of NT...
/sd

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:57    [W:0.088 / U:0.300 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site