Bug 429 - dhcpcd creates default route that is marked down when it should be up
dhcpcd creates default route that is marked down when it should be up
Status: CLOSED CURRENTRELEASE
Product: Red Hat Linux
Classification: Retired
Component: dhcpcd (Show other bugs)
5.2
All Linux
medium Severity medium
: ---
: ---
Assigned To: Erik Troan
:
: 373 (view as bug list)
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 1998-12-15 11:08 EST by D. Boyter
Modified: 2008-05-01 11:37 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 1998-12-23 16:33:29 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description D. Boyter 1998-12-15 11:08:26 EST
I found a bug in the dhcpcd client daemon.
I found that
the client adds a default route and fails to
mark the route
active.  The kernel will in some cases use
the default
route anyway, but since it is not marked
active route or
netstat may not show the default in the
routing tables.
Here is the fix I used to fix it.


diff -ru dhcpcd-0.70/if.c
dhcpcd-0.70-FIXED/if.c
--- dhcpcd-0.70/if.c    Mon Sep  1 15:00:24
1997
+++ dhcpcd-0.70-FIXED/if.c      Mon Dec 14
12:52:22 1998
@@ -277,7 +277,7 @@
                        p->sin_addr.s_addr
= gwAddr;
                        rtent.rt_dev
= ifinfo->ifname;       /* interface name */
                        rtent.rt_metric
= 2;                            /* metric
(see route.h) */
-                       rtent.rt_flags
= RTF_GATEWAY;          /* dest. is a
gateway */
+                       rtent.rt_flags
= RTF_GATEWAY | RTF_UP;         /* dest. is
a gateway */
                        if ( ioctl(s,
SIOCADDRT, &rtent) < 0 ) {

logSysExit("ioctl SIOCADDRT (setDefRoute)");
                        }
Comment 1 David Lawrence 1998-12-23 16:17:59 EST
Verified by dlt, wanger jbj, etc 23 DEC 1998.
Comment 2 David Lawrence 1998-12-23 16:18:59 EST
Jeff has the patch.
Comment 3 Jeff Johnson 1998-12-23 16:33:59 EST
Fixed in dist-5.2.1/dhcpcd-0.70-3.
Comment 4 Jeff Johnson 1999-01-12 06:33:59 EST
*** Bug 429 has been marked as a duplicate of this bug. ***

1. Use DHCP with FTP install.
2. All the machines boot with no default gateway.  Windows
machines no problem.  DHCP server is a Linux machine.
3. Even when I add GATEWAYDEV="eth0" to
/etc/sysconfig/network, only get the gateway when restart
network, not when boot.
4. A big problem for us.

------- Additional Comments From jturner@redhat.com  12/10/98 09:49 -------
Can you send the contents of your dhcpd.conf file so that we can
recreate you test environment in the lab?

------- Additional Comments From dkl@redhat.com  12/29/98 16:05 -------
This report has been closed due to lack of responce from user.

It may be reopened if needed.

------- Additional Comments From andrew@redhat.com  01/06/99 10:56 -------
Additional information has been sent via email.
Comment 5 nicku 1999-02-18 20:33:59 EST
So please could you put dhcpcd-0.70-3 into the 5.2 updates directory?
I mean, this bug is embarrassing to large organisations that use
DHCP to configure their clients; they just don't work!
It cost me hours of my time.  Why make others do the same?  Life
is short and precious!

By the way, where on earth is "dist-5.2.1/dhcpcd-0.70-3"?
Please, don't keep those bug fixes secret: please share them with
us plebians and common masses when you have them.

------- Email Received From  Denzil Boyter <dboyter@indirect.com> 02/19/99 12:21 -------

Note You need to log in before you can comment on or make changes to this bug.