Messages in this thread | | | Date | Wed, 22 Mar 2000 08:19:53 -0500 (EST) | From | Gregory Maxwell <> | Subject | Re: "Super" IP aliases? |
| |
The 'correct' way to do this is with iproute2:
/sbin/ip addr add 10.20.30.0/24 dev eth0
On Tue, 21 Mar 2000, Scott Doty wrote:
> 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/ >
- 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/
| |