after installing initscripts 4.68-1 the system would assign default routes to all network devices. this behaviour causes total loss of network connectivity under some circumstances (two ether devices, one for local network with manual setup and no gateway, one for cable modem with dhcp setup and gateway set with dhcp. system tries to use the local ether device as default route)
Its even worse than that :( I've got an ethernet card in my machine. A default route is brought up for that and the loopback interface. When I dial up using my modem, ifup-ppp does a route -del default, which only removes *one* of the default routes (the eth0 one in my case). pppd then doesn't add a default route for ppp (presumably becuase a default route already exists, althouhg I haven't checked), and so I can't do anything on the net, as I don't have a route via ppp0. I can either disconnect and reconnect, which works because then the 2nd default route is removed, leaving no more, or manually remove the default routes and add a new default route to ppp0. A clean solution for me to to set GATEWAYDEV in /etc/sysconfig/network to none. There's no network device called none, so this avoids the default route adding in ifup, and the ifup-ppp adds the defaultroute parameter because of my ifcfg-ppp* settings. I don't know what a good general, backwards compatable solution is though. Requiring GATEWAYDEV to be non-null isn't a good solution. (I have 2 ppp dialups I can use - ppp0 and ppp1. Also think of laptop users who could connect via ethernet at work/uni or a modem at home). Maybe remove all default routes in ifup-ppp, or maybe make pppd add a default route regardless. Another thought - should he deleted routes be added again after disconnecting? I can't think of a situation where is configuration is valid, except possibly for laptops
{Wry smile} Refer to bug 7392 for a patch to fix this, along with a duplicate bug report that I submitted a few hours ago.
Thanks. I've added myself to the cc list for that one. There are quite a few similar reports though... See Bug 7392 for "comments" on the patch.
*** Bug 7392 has been marked as a duplicate of this bug. ***
*** Bug 7320 has been marked as a duplicate of this bug. ***
*** Bug 7333 has been marked as a duplicate of this bug. ****** Bug 7350 has been marked as a duplicate of this bug. ***
*** Bug 7386 has been marked as a duplicate of this bug. ****** Bug 7411 has been marked as a duplicate of this bug. ***
This should be fixed in initscripts-4.69-1 in Raw Hide now.
The patch by rhv is not the best solution. If there is a GATEWAY, every device would still get a default route. The problem is that /sbin/ifup adds a default route even when GATEWAYDEV = "". Instead ifup should add a default route only when GATEWAYDEV = DEVICE. This is also how it worked in the previous releases. This is a pretty serious problem with things like DNS. I can't believe they have not fixed this for a whole week. ates.edu
Quick comment to orders1 - the patch wasn't from me, but from linux.uk - I just commented on its being there. Unfortunately, I phrased my comment rather badly... Incidentally, linux.uk isn't me, but a friend of mine.
*** Bug 7440 has been marked as a duplicate of this bug. ***
Please post the rawhide initscripts package also in the 6.1 errata section. This is a pretty serious bug.
*** Bug 7345 has been marked as a duplicate of this bug. ***
initscripts-4.70 is now in the errata. Wheeee.