<div dir="ltr">Hi Peter,<div>Thank you so much for helping.</div><div><br></div><div>Yes, I am using ISC dhcpd. My query is with ISC DHCPd I can ping to any network, but I did not see the ISC gateway in the kernel route table. Will it be stored somewhere else so that when packet goes out, the hardware (NIC) gets this information?</div><div><br></div><div>Regards</div><div>Simon</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Mar 18, 2021 at 5:07 PM Peter Yardley <<a href="mailto:peter.martin.yardley@gmail.com">peter.martin.yardley@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
This is prolly a problem with your configuration. Are you using ISC DHCPd? If so could provide a relevant snippet of your configuration, anonymised if necessary.<br>
<br>
I used to configure subnets like this …<br>
<br>
subnet 10.20.50.0 netmask 255.255.254.0 {<br>
    option subnet-mask 255.255.254.0;<br>
    option broadcast-address 10.20.51.255;<br>
    option routers 10.20.50.1;<br>
<br>
    pool {<br>
        # A device for Blah<br>
        host HMTXYZ           { hardware ethernet 00:40:9d:54:4c:c7;<br>
                                        fixed-address 10.20.50.32; }<br>
        …<br>
<br>
        range 10.20.51.0 138.25.51.254;<br>
    }<br>
<br>
Of course there are many other correct possiblities<br>
<br>
<br>
> On 19 Mar 2021, at 10:03 am, SIMON BABY <<a href="mailto:simonkbaby@gmail.com" target="_blank">simonkbaby@gmail.com</a>> wrote:<br>
> <br>
> Hi,<br>
> I have a query about the DHCP provided IP address vs Static IP address configured manually.  When i get the IP address from DHCP, I can ping to 8.8.8.8 (google public server) where as<br>
> with a statically configured IP address, I could not.  When I looked into the route table (route -n ), I did not see any default gateway with DHCP or Statically configured IP.  (I am testing with Linux).<br>
> <br>
> 1. Can I know when the packet goes out , how did the hardware (NIC) find the default gateway in the case of the DHCP provided IP address since I did not see any default gw IP in the routing table?<br>
> 2. With statically configured IP, if I explicitly configure a default GW, I can see packets are going out and receiving. I can see the default GW in the routing table. Do I need a default GW to send packets from a statically configured IP address ?<br>
> <br>
> Thank you for your time<br>
> <br>
> Regards<br>
> Simon<br>
>  <br>
> _______________________________________________<br>
> ISC funds the development of this software with paid support subscriptions. Contact us at <a href="https://www.isc.org/contact/" rel="noreferrer" target="_blank">https://www.isc.org/contact/</a> for more information.<br>
> <br>
> dhcp-users mailing list<br>
> <a href="mailto:dhcp-users@lists.isc.org" target="_blank">dhcp-users@lists.isc.org</a><br>
> <a href="https://lists.isc.org/mailman/listinfo/dhcp-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/dhcp-users</a><br>
<br>
Peter Yardley<br>
<a href="mailto:peter.martin.yardley@gmail.com" target="_blank">peter.martin.yardley@gmail.com</a><br>
<br>
_______________________________________________<br>
ISC funds the development of this software with paid support subscriptions. Contact us at <a href="https://www.isc.org/contact/" rel="noreferrer" target="_blank">https://www.isc.org/contact/</a> for more information.<br>
<br>
dhcp-users mailing list<br>
<a href="mailto:dhcp-users@lists.isc.org" target="_blank">dhcp-users@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/dhcp-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/dhcp-users</a><br>
</blockquote></div>