On Thu, 23 Oct 2003 16:02:43 +1300 Volker Kuhlmann <[EMAIL PROTECTED]> wrote:
> > several people commented that there was no need for a default route > > on Andy's lan anyway and why not just ditch it, leaving pppd to do > > the Right Thing. > > I guess pretty much every distro is setting up a default route, > because if you don't need one, it doesn't matter if you have one. For > something which needs to work while I'm away from home, there's no way > I'd rely on the ether stuff not putting in a default route, when the > consequences of doing so for whatever reason are going going to be a > dead line. well in earlier redhats (7 series) there is a setting per user interface to set or not set a gateway. it is in /etc/sysconfig/network-scripts/ifcfg-ethx (x=0,1 etc) if there is a GATEWAY= setting, then it is set when ethx goes up. If there is no such setting it doesn't. > > > Next question will be: how do i stop my networking scripts setting a > > default route on eth0/1. > > I don't want to argue, but I see this as the wrong approach. > easier than persuading redhat to change their pppd implementation :-) > > Answer is distro specific, rtfm??? or read the scripts? or the > > config files? > > All of those. I see no way round hacking the if-up/if-down scripts, as > the ones supplied by the distro are either borked or useless. Whether > the pppd has a replacedefaultroute (most convenient) or not, your best > bet is to fix the script to make sure all default route(s) are nuked > before getting pppd to add another one. You will probably have to hack > the scripts anyway to restore the previous state once ppp goes down > (whether this is deliberate or not is irrelevant, at some stage you'll > want to disconnect). > > The way you describe it shows that you probably have an unused > ethernet card. Make sure this is not configured (delete its config > file), or take it out. With multiple ethernet interfaces it's easy to > get in a position where outgoing packets don't have the source IP you > want them to have. I am not sure how this is determined, but at a > guess by the first route in the routing table which provides a path to > the destination (or by whatever interface the sending software has > bound to). The reason your ifdown - wvdial - ifup works is because it > changes the order of routes in your routing table (my guess). For this > reason it would have been extremeley handy had you posted your routing > table after boot, and after getting pppd to work. A comparison of the > two will tell you most things you need to know. > > I could tell you how to put things into scripts but that would > probably not do you any good unless you were using SuSE (in which case > it'd work OOTB anyway). You'll have to get your own hands onto your > scripts. If you can't program in bash, it'll be rather difficult for > us to give you any more help. It'll be somewhat difficult for us to > give you an more help anyway, as I think there's not much more that > can be said which hasn't already. > > Volker > > -- > Volker Kuhlmann is possibly list0570 with the domain in header > http://volker.dnsalias.net/ Please do not CC list postings to me. > >
