> On Thursday 18 November 2004 03:30 am, [EMAIL PROTECTED] wrote:
>> It sounds like you are setting a default route when you bring up eth0.
>> If
>> that is the case, then it will not be changed when you do the dialup
>> connection.  This is because pppd does not override the default route,
>> but
>> will set one if there isn't one.  (This is for the default setup - you
>> can
>> also tell pppd not to set one.)
>>
>> The reasion it works if you do not bring up eth0 is that the default
>> route
>> isn't set.
>>
>> Now, the question is do you need a default route when you bring up eth0?
>> If it only connects to your local network, and does not connect to the
>> Internet, you probably don't need one.  If all the machines you talk to
>> over eth0 are in the same subnet, you definitly do not need one.  If
>> that
>> is the case, and you would like to be able to use the Internet, and
>> connect to the local network at the same time, let us know and we can
>> get
>> this fixed.
>>
>> Mikkel
>
> I have encountered this problem too. The network in my office and home is
> different in respect of network class and thus subnet and default gw. So,
> to
> make things easier (rather than to change the config all the times) I make
> 2
> config files for each location
> (/etc/sysconfig/network-scripts/ifcfg-eth0, /etc/resolv.conf,
> and /etc/sysconfig/network).
>
> Then, I make an alias in the bash profile such as:
> netoffice and nethome
>
> Where those scripts consist this: (netoffice)
> #!/bin/bash
> cp -v /etc/resolv.conf-office /etc/resolv.conf
> cp -v /etc/sysconfig/network-office /etc/sysconfig/network
> cp
> -v /etc/sysconfig/network-scripts/A-ifcfg-eth0.office
> /etc/sysconfig/network-scripts/ifcfg-eth0
> service network restart
>
> I think you can use it modifying a little.
> HTH,
>
I like to use netprofiles for things like this.  You just set up a profile
for each one.  You can then create LILO entries to select the profile on
boot.  You can also change the profile in use using MCC, or running
set-netprofile as root.  I have one profile for wireless, one for dialup,
one for dynamic IP, and one for static IP.  It works well for me.

Mikkel


____________________________________________________
Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com
____________________________________________________

Reply via email to