On Wed, 18 Jul 2001, Jim Cromie wrote:

> "Mikkel L. Ellertson" wrote:
>
> > If it were not for the issue of getting the correct modules loaded, you
> > could just edit the ifcfg-eth1 file to use "DEVICE=eth0".  This is what
> > I do on my notebook to have more then one ethernet config using the same
> > device.
>
> would an alias device be a better way ?
> it would put 2 IPs on single card - which might not be good for your
> situation.
>
> fwiw - I do this to give access to DSL (via dhcp provided 10.0.0.X),
> and to my other boxes ( numbered in /etc/hosts )
>
> # more /etc/sysconfig/network-scripts/ifcfg-eth0*
> ::::::::::::::
> /etc/sysconfig/network-scripts/ifcfg-eth0
> ::::::::::::::
> DEVICE="eth0"
> BOOTPROTO="dhcp"
> ONBOOT="yes"
> USERCTL=no
> ::::::::::::::
> /etc/sysconfig/network-scripts/ifcfg-eth0.OLD
> ::::::::::::::
> DEVICE=eth0
> BOOTPROTO=none
> ONBOOT=yes
> BROADCAST=192.168.1.255
> NETWORK=192.168.1.0
> NETMASK=255.255.255.0
> IPADDR=192.168.1.1
> USERCTL=no
>
> btw:  pump'ing an alias device doesnt seem to work.
>
>
>
It would, except that I never need both at once.  Most of the time,
things get set with DHCP, but I have one network where I need to use a
static IP, and a fixed gateway IP.  Plus I also have times when I am
using a modem and a PPP connection.  So I do not have any connection set
to come up on bootup.  (ONBOOT=NO)  I also only get a default route if I
bring up one of the ehternet configurations.  This way, if I bring up
the PPP link instead, it can set a default route.  I also set up the
nameservers IPs in ifcfg-eth1.  (MS_DNS1 and MS_DNS2)

Basicly, the way it works out is that I can bring up eth0, eth1, or
ppp0, depending on how I need to connect.  This may not work well for
others, but it works well for me.  But then, I am a computer geek...

Mikkel
 --

    Do not meddle in the affairs of dragons,
 for you are crunchy and taste good with ketchup.



_______________________________________________
Seawolf-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/seawolf-list

Reply via email to