Re: "Super" IP aliases?

From: Scott Doty (scott@sonic.net)
Date: Wed Mar 22 2000 - 01:58:27 EST

  • Next message: Alan Curry: "Strict Mem Project (was Re: Overcommitable memory??)"

    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/



    This archive was generated by hypermail 2b29 : Wed Mar 22 2000 - 05:52:35 EST