Re: "Super" IP aliases?

From: Miquel van Smoorenburg (miquels@cistron.nl)
Date: Wed Mar 22 2000 - 03:11:08 EST


In article <cistron.20000321120617.A23078@sonic.net>,
Scott Doty <scott@sonic.net> wrote:
>I have a need to run thousands of IP addresses on one host. (It's
>running apache.)
>
>What I'm considering: somehow, making a single ip alias
>interface serve an entire class C network when a special
>interface flag is set. Has anyone worked with something like that?

Something like this should work:

ifconfig lo:1 192.168.10.1 netmask 255.255.255.0
route add -net 192.168.10.1 netmask 255.255.255.0 dev lo

BTW, we are running hundreds of web servers on one IP address instead
of hunderds of IP addresses. All modern (where modern means "after 1995")
browsers support this. Have been doing it for years. Check out the
NameVirtualHost option and "named virtual hosts" chapter in Apache.

Mike.

-- 
How do you eat soup in the matrix...?

- 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 : Thu Mar 23 2000 - 21:00:35 EST