Ryan Gibbons wrote:
> David Gardner wrote:
>> I think what you want is something like the following the important
>> part is the modules=( "ifconfig" ) part because otherwise it uses
>> iproute2 which doesn't really work for ip-aliases. I *think* that the
>> dhcp client should set eth0 to be the default route.
>> ----
>> modules=( "ifconfig" )
>> config_eth0("dhcp")
>> # 192.168.1.2 is the alias and should show up as eth1:1
>> config_eth1=(
>> "192.168.1.1 netmask 255.255.255.0"
>> "192.168.1.2 netmask 255.255.255.0"
>> )
>> config_eth2=(
>> "192.168.2.1 netmask 255.255.255.0"
>> "192.168.2.2 netmask 255.255.255.0"
>> )
>> BRM wrote:
>>> I am in the process of upgrading my server from a P90 running Slackware
>>> to a "newer" system running Gentoo 2007.0. Everything is pretty okay
>>> until I got to doing the network config. My basic config is as follows:
>>> Public DHCP'd Interface -> eth0 (default gw)
>>> Private Lan Interface #1 -> eth1
>>> Private Lan Interface #2 -> eth2
>>> I also have a number of IP Aliases on the eth1 & eth2.
>>> Thus far, in /etc/conf.d/net, I have the following:
>>> config_eth0("dhcp")
>>> config_eth1(<list of static IP addresses>)
>>> config_eth2(<static ip address>)
>>> I also had a route line for eth1 and eth2, but it specified the IP of
>>> eth1, not eth0 - which is unknown.
>>> So, my primary question is:
>>> What is the proper way to do this under Gentoo?
> iproute2 does handle ip aliases, just not the same way as ifconfig. It
> doesn't ap them to an eth1:1 like ifconfig does, but they are there and
> can be viewed via `ip addr` and it will list all the aliases there.
Cool. I also had iproute2 recommended on the users list. I've been busy
enough this weekend that I haven't had a chance to try it yet, but am
planning on it. So great that it works.
> Honestly I can't follow what you are talking about. Are you basically
> trying to set up a router?
Yes - the system does act as a router for my network, in addition to
hosting a lot of other services. (It's a small network, so most
everything gets co-located on a single server.)
Ben
--
[EMAIL PROTECTED] mailing list