> On Wednesday 17 Nov 2004 16:14, Derek Jennings wrote: >> On Wednesday 17 November 2004 13:12, Peter Watson wrote: >> > For ages I have used the excellent tip on Derek Jennings site for >> > switching between LAN and dialup with no problems. >> > >> > However with 10.1 I find that it only works about 50% of the time, ie >> > half of the time I am unable to connect to the internet with dialup >> and >> > half I am not. >> > >> > I have disabled the firewall to make sure that is not the problem and >> > checked everything that I can think of in my config files to no avail. >> > >> > Interestingly ifconfig and route -n both give exactly the same output >> > whether I can connect or not. >> > >> > I am at my wits end, If Derek or anyone else has any advice I would be >> > most grateful. >> > >> > TIA >> > >> > Pete >> > Ardnamurchan Scotland >> >> So Pete when it fails, you do connect to your ISP and get an IP address? >> And 'route' shows the default route is via dial up? >> How about /etc/resolv.conf ? >> Does it help if you 'down' eth0 first? >> Is there a gateway defined in /etc/sysconfig/network ? >> >> I am not sure what might have changed in 10.1 that could affect it. >> Except >> maybe it is something to do with IPV6. You could try disabling IPV6 by >> putting 'alias net-pf-10 off' in /etc/modprobe.conf and rebooting. >> >> derek > > > Thanks for the quick reply. I think I have found the cause of the problem > without understanding it. > > The only difference I could find between 10.0 and 10.1 was that with 10,1 > I > had network starting at boot, I have stopped that and so far it seems to > work > every time, I'm keeping my fingers crossed. > > Many Thanks > > Pete > Ardnamurchan Scotland > > 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
____________________________________________________ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com ____________________________________________________
