lkml.org 
[lkml]   [2000]   [Mar]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: "Super" IP aliases?
Date
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/

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