Gentoo Archives: gentoo-server

From: Jeff Rooney <jtrooney@×××××××××.net>
To: gentoo-server@l.g.o
Subject: Re: [gentoo-server] Managing IP aliases
Date: Sat, 09 Jul 2005 15:36:44
Message-Id: 42CFEE74.1010508@foxvalley.net
In Reply to: Re: [gentoo-server] Managing IP aliases by Michael Cummings
1 Michael Cummings wrote:
2
3 >(Completely untested, unconfirmed, and otherwise unsubstantiated) - Have you
4 >tried putting your list into an external file and just having the variable in
5 >conf.d/net cat it? I would *think* that would work since ultimately these are
6 >just fragments of bash scripts after all.
7 >
8 >
9 >On Fri, Jul 08, 2005 at 04:08:32PM -0400, A. Khattri wrote:
10 >
11 >
12 >>Maybe this has been answered a long time ago.
13 >>
14 >>Im running a Gentoo-based shared web server. Potentially there might be
15 >>200 IP aliases on this one machine. Im wondering how to manage these
16 >>aliases in /etc/conf.d/net. Right now, I have a huge alias_eth0="" line
17 >>containing all of the IP aliases - anybody recommend a better approach ?
18 >>
19 >>Some recent changes to sysvinit and baselayout have put new config files
20 >>in /etc/conf.d/ including a net.example file that shows an IPv4 example
21 >>where each IP is on a single line. Anyone here switched to the "new" net
22 >>file yet ? Any thoughts about ifconfig vs. iproute2 ? Should I switch?
23 >>
24 >>
25 >>--
26 >>Aj.
27 >>--
28 >>gentoo-server@g.o mailing list
29 >>
30 >>
31 >>
32 >>
33 I actually ran into this about two months ago. What I ended up doing was
34 creating a table that contains all the available IP's and on startup I
35 have a basic script loop through that table and creates an alias using
36 `ifconfig`. This works great for our purpose as we have apache build its
37 configurations based off of the the same database. =) Just an idea.
38
39 --
40 Jeff Rooney
41 jtrooney@×××××××××.net
42
43 --
44 gentoo-server@g.o mailing list

Replies

Subject Author
Re: [gentoo-server] Managing IP aliases "A. Khattri" <ajai@××××.net>