<div dir="ltr">Hi,<div><br></div><div>To answer your questions :</div><div><span style="font-size:12.8000001907349px">- which distribution is this? / <b>Fedora 18</b></span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">- is dhcp provided by the a package from the distribution, or is it hand compiled? / <b>Package</b></span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">- which release of dhclient/dhcp is in use? / <b>Internet Systems Consortium DHCP Server V3.0.5-RedHat & nternet Systems Consortium DHCP Client 4.2.5</b></span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">- dhclient typically calls a script to set the values. Is this script correct and in place? / <b>Which script are you talking about here? The dhclient init script???</b></span><br style="font-size:12.8000001907349px"></div><div><span style="font-size:12.8000001907349px"><b><br></b></span></div><div><span style="font-size:12.8000001907349px"><b>I've four other systems with exactly the same configuration and connected to same dhcp server, which are working fine.<br><br></b></span></div><div><b style><div style><span style="font-size:12.8000001907349px">[PRD][root@hostname]# cat /var/lib/dhclient/dhclient.leases</span></div><div style><span style="font-size:12.8000001907349px">lease {</span></div><div style><span style="font-size:12.8000001907349px">  interface "eth0";</span></div><div style><span style="font-size:12.8000001907349px">  fixed-address 10.10.10.22;</span></div><div style><span style="font-size:12.8000001907349px">  option subnet-mask 255.255.255.240;</span></div><div style><span style="font-size:12.8000001907349px">  option routers 10.10.10.17;</span></div><div style><span style="font-size:12.8000001907349px">  option dhcp-lease-time 604800;</span></div><div style><span style="font-size:12.8000001907349px">  option dhcp-message-type 5;</span></div><div style><span style="font-size:12.8000001907349px">  option domain-name-servers 1.1.2.3,1.2.2.3;</span></div><div style><span style="font-size:12.8000001907349px">  option dhcp-server-identifier 11.12.254.100;</span></div><div style><span style="font-size:12.8000001907349px">  option nis-domain "xxx.priv";</span></div><div style><span style="font-size:12.8000001907349px">  option domain-name "<a href="http://fr.mydomain.org">fr.mydomain.org</a>";</span></div><div style><span style="font-size:12.8000001907349px">  renew 5 2015/02/20 22:26:22;</span></div><div style><span style="font-size:12.8000001907349px">  rebind 1 2015/02/23 14:21:26;</span></div><div style><span style="font-size:12.8000001907349px">  expire 2 2015/02/24 11:21:26;</span></div><div style><span style="font-size:12.8000001907349px">}</span></div><div style="font-size:12.8000001907349px"><br></div><div style><div style="font-size:12.8000001907349px">[PRD][root@hostname]# cat /var/lib/dhclient/dhclient-b6a65dbe-6524-4070-b4b7-3cb2b1333187-eth0.lease</div><div style="font-size:12.8000001907349px">lease {</div><div style="font-size:12.8000001907349px">  interface "eth0";</div><div style="font-size:12.8000001907349px">  fixed-address 10.10.0.22;</div><div style="font-size:12.8000001907349px">  option subnet-mask 255.255.255.240;</div><div style="font-size:12.8000001907349px">  option dhcp-lease-time 604800;</div><div style="font-size:12.8000001907349px">  option routers 10.10.10.17;</div><div style="font-size:12.8000001907349px">  option dhcp-message-type 5;</div><div style="font-size:12.8000001907349px">  option dhcp-server-identifier 11.12.254.100;</div><div style="font-size:12.8000001907349px">  option domain-name-servers 1.1.2.3,1.2.2.3;</div><div style="font-size:12.8000001907349px">  option nis-domain "xxx.priv";</div><div style="font-size:12.8000001907349px">  option domain-name "<a href="http://fr.mydomain.org">fr.mydomain.org</a>";</div><div style="font-size:12.8000001907349px">  renew 4 2015/02/19 14:33:43;</div><div style="font-size:12.8000001907349px">  rebind 0 2015/02/22 15:00:34;</div><div style="font-size:12.8000001907349px">  expire 1 2015/02/23 12:00:34;</div><div style="font-size:12.8000001907349px">}</div><div style="font-size:12.8000001907349px">lease {</div><div style="font-size:12.8000001907349px">  interface "eth0";</div><div style="font-size:12.8000001907349px">  fixed-address 10.10.10.22;</div><div style="font-size:12.8000001907349px">  option subnet-mask 255.255.255.240;</div><div style="font-size:12.8000001907349px">  option routers 10.10.10.17;</div><div style="font-size:12.8000001907349px">  option dhcp-lease-time 604800;</div><div style="font-size:12.8000001907349px">  option dhcp-message-type 5;</div><div style="font-size:12.8000001907349px">  option domain-name-servers 1.1.2.3,1.2.2.3;</div><div style="font-size:12.8000001907349px">  option dhcp-server-identifier 10.12.254.100;</div><div style="font-size:12.8000001907349px">  option nis-domain "xxx.priv";</div><div style="font-size:12.8000001907349px">  option domain-name "<a href="http://fr.mydomain.org">fr.mydomain.org</a>";</div><div style="font-size:12.8000001907349px">  renew 4 2015/02/19 17:16:26;</div><div style="font-size:12.8000001907349px">  rebind 0 2015/02/22 16:20:59;</div><div style="font-size:12.8000001907349px">  expire 1 2015/02/23 13:20:59;</div><div style="font-size:12.8000001907349px">}</div><div style="font-size:12.8000001907349px"><br></div><div style><div style><span style="font-size:12.8000001907349px">[PRD][root@hostname]# cat /etc/sysconfig/network-scripts/ifcfg-eth0</span></div><div style><span style="font-size:12.8000001907349px"># Generated by parse-kickstart</span></div><div style><span style="font-size:12.8000001907349px">UUID=b6a65dbe-6524-4070-b4b7-3cb2b1333187</span></div><div style><span style="font-size:12.8000001907349px">BOOTPROTO=dhcp</span></div><div style><span style="font-size:12.8000001907349px">DEVICE=eth0</span></div><div style><span style="font-size:12.8000001907349px">ONBOOT=yes</span></div><div style><span style="font-size:12.8000001907349px">IPV6INIT=no</span></div><div style><span style="font-size:12.8000001907349px">PERSISTENT_DHCLIENT=yes</span></div></div><div style="font-size:12.8000001907349px"><br></div></div></b></div><div><span style="font-size:12.8000001907349px"><b>Are you seeing anything missing here??? Thanks.</b></span></div><div><span style="font-size:12.8000001907349px"><b><br></b></span></div><div><span style="font-size:12.8000001907349px"><b>Regards,</b></span></div><div><span style="font-size:12.8000001907349px"><b>Eugène NG</b></span></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-02-17 12:16 GMT+01:00 Rudy Zijlstra <span dir="ltr"><<a href="mailto:rudy@grumpydevil.homelinux.org" target="_blank">rudy@grumpydevil.homelinux.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <div>Hi Patrick,<br>
      <br>
      I would suggist to find a strong cup of coffee ;)<br>
      <br>
      DHCP is designed to work with no IP routing  in place at all.
      Please consider that DHCP provides the computer with the IP
      address it is to use. Any gateway is dependent on that IP address
      and CANNOT be assigned before the IP address is known. <br>
      <br>
      The correct question is indeed posed by the OP, which is why the
      gateway is not applied from the DHCP response. <br>
      <br>
      Some questions:<br>
      - which distribution is this?<br>
      - is dhcp provided by the a package from the distribution, or is
      it hand compiled?<br>
      - which release of dhclient/dhcp is in use?<br>
      - dhclient typically calls a script to set the values. Is this
      script correct and in place?<br>
      <br>
      Cheers<span class="HOEnZb"><font color="#888888"><br>
      <br>
      <br>
      <br>
      Rudy</font></span><div><div class="h5"><br>
      <br>
      On 17-02-15 11:59, Patrick Trapp wrote:<br>
    </div></div></div><div><div class="h5">
    <blockquote type="cite">
      
      <div>Perhaps I am not completely awake yet, but don't you have to
        have the default gateway in place to have network communication?
        That is, doesn't it have to precede the DHCP process?</div>
      <div><br>
      </div>
      <div>It sounds to me like you just need to make the default route
        persistent so it will survive a reboot. How that is done depends
        on the flavor of Linux you are running.</div>
      <div><br>
      </div>
      <div>Patrick<br>
        <br>
        <br>
      </div>
      <div><br>
        On Feb 17, 2015, at 4:43 AM, Eugène Ngontang <<a href="mailto:sympavali@gmail.com" target="_blank">sympavali@gmail.com</a>>
        wrote:<br>
        <br>
      </div>
      <blockquote type="cite">
        <div>
          <div dir="ltr">
            <div>Hi all,</div>
            <div><br>
            </div>
            <div>I've a remote linux machine whose the routing table is
              :</div>
            <div><br>
            </div>
            <div>    [root@hostname]# route -n</div>
            <div>    Kernel IP routing table</div>
            <div>    Destination     Gateway         Genmask        
              Flags Metric Ref    Use Iface</div>
            <div>    0.0.0.0         0.0.0.0         0.0.0.0         U  
                0      0        0 eth0</div>
            <div>    10.10.10.16    0.0.0.0         255.255.255.240 U  
                0      0        0 eth0</div>
            <div>    169.254.0.0     0.0.0.0         255.255.0.0     U  
                1002   0        0 eth0</div>
            <div><br>
            </div>
            <div>The default gateway I should use is  10.10.10.17, and
              should be given by a linux dhcp server. So to be able to
              connect to the system I call someone on the site ask him
              to add the route manually (**route add default gw
              10.10.10.17**).</div>
            <div>When the route has been added I can now connect to the
              system. And once connected when I check the routing table
              again I have this :</div>
            <div><br>
            </div>
            <div>    [root@hostname]# route -n</div>
            <div>    Kernel IP routing table</div>
            <div>    Destination     Gateway         Genmask        
              Flags Metric Ref    Use Iface</div>
            <div>    0.0.0.0         10.10.10.17    0.0.0.0         UG  
               0      0        0 eth0 (UG flag means it's up and is the
              gateway)</div>
            <div>    0.0.0.0         0.0.0.0         0.0.0.0         U  
                0      0        0 eth0</div>
            <div>    10.10.10.16    0.0.0.0         255.255.255.240 U  
                0      0        0 eth0</div>
            <div>    169.254.0.0     0.0.0.0         255.255.0.0     U  
                1002   0        0 eth0</div>
            <div><br>
            </div>
            <div>And when I restart the system, it boots without the
              right default gateway, and I'm obliged to call again to
              set the route manually. The dhclient lease file has the
              good **"option routers"** taken from the dhcp server.</div>
            <div><br>
            </div>
            <div>Now I'm trying to remove the unspecified route from the
              routing table but each time I try I'm disconnected from
              the machine. </div>
            <div><br>
            </div>
            <div>I've tried these different ways  :</div>
            <div><br>
            </div>
            <div>    route del -net 0.0.0.0 netmask 0.0.0.0 metric 0</div>
            <div><br>
            </div>
            <div>    route del default gw 0.0.0.0</div>
            <div><br>
            </div>
            <div>    route del -net 0.0.0.0 gw 0.0.0.0</div>
            <div><br>
            </div>
            <div>The three attempts disconected me from the server, and
              the guy at the other side tells me that each time I try to
              remove the route the default route becomes a star
              (**default ***). I'm obliged to let him add the route
              again mannualy, and when I'm connected, and I restart the
              network I lose the connection again.</div>
            <div><br>
            </div>
            <div>So my questions are : </div>
            <div>1) Why does this unspecified default route come back
              every time?</div>
            <div>2) How can I (what's the way to) remove it without
              spoiling the routing table (losing the good  default
              gateway).</div>
            <div><br>
            </div>
            <div>Thanks.<br>
            </div>
            <div><br>
            </div>
            <div>Regards,</div>
            <div>Eugène NG</div>
            <div><br>
            </div>
            <div><br>
            </div>
            <div><br>
            </div>
            -- <br>
            <div><font color="#3366ff"><a href="mailto:ngonta_e@epitech.net" target="_blank">ngonta_e@epitech.net</a></font>
              <div><font color="#3366ff"><a href="mailto:sympavali@gmail.com" target="_blank">sympavali@gmail.com</a></font></div>
              <div>------------------------------------------------------------</div>
              <div><i><b>Aux hommes il faut un chef, et au</b></i><i><b> chef
                    il faut des hommes!<br>
                    L'habit ne fait pas le moine, mais lorsqu'on te voit
                    on te juge!<br>
                  </b></i></div>
            </div>
          </div>
        </div>
      </blockquote>
      <blockquote type="cite">
        <div><span>_______________________________________________</span><br>
          <span>dhcp-users mailing list</span><br>
          <span><a href="mailto:dhcp-users@lists.isc.org" target="_blank">dhcp-users@lists.isc.org</a></span><br>
          <span><a href="https://lists.isc.org/mailman/listinfo/dhcp-users" target="_blank">https://lists.isc.org/mailman/listinfo/dhcp-users</a></span></div>
      </blockquote>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_______________________________________________
dhcp-users mailing list
<a href="mailto:dhcp-users@lists.isc.org" target="_blank">dhcp-users@lists.isc.org</a>
<a href="https://lists.isc.org/mailman/listinfo/dhcp-users" target="_blank">https://lists.isc.org/mailman/listinfo/dhcp-users</a></pre>
    </blockquote>
    <br>
  </div></div></div>

<br>_______________________________________________<br>
dhcp-users mailing list<br>
<a href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/dhcp-users" target="_blank">https://lists.isc.org/mailman/listinfo/dhcp-users</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><font color="#3366ff"><a href="mailto:ngonta_e@epitech.net" target="_blank">ngonta_e@epitech.net</a></font><div><font color="#3366ff"><a href="mailto:sympavali@gmail.com" target="_blank">sympavali@gmail.com</a></font></div><div>------------------------------------------------------------</div><div><i><b>Aux hommes il faut un chef, et au</b></i><i><b> chef il faut des hommes!<br>L'habit ne fait pas le moine, mais lorsqu'on te voit on te juge!<br></b></i></div></div>
</div>