<div dir="ltr">thanks for ur valuable advice ,<br>static entry makes working my set up but still i have some doubt<br>now network topology is like this<br><br>client ------->layer2------>[if0]Router[if1]-------->dhcp server<br>
<br>layer2 ip[static]----<a href="http://192.168.1.46/24">192.168.1.46/24</a><br>router if0------------192.168.1.1/24<br>router if1------------192.168.2.5/24<br>dhcp server------192.168.2.1/24<br><br>but if layer 2 switch is also getting ip from dhcp server , how can we achieved that??<br>
thanks once again .<br>regards,<br>abhijit<br><br><br><br><div class="gmail_quote">On Thu, Oct 16, 2008 at 6:57 PM, Simon Hobson <span dir="ltr"><<a href="mailto:dhcp1@thehobsons.co.uk">dhcp1@thehobsons.co.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I now see what your problem is - you appear to have little understanding of IP addressing & routing. A bit like an architect having no knowledge of building materials.<br>

<br>
And a quick rant before I reply - PLEASE DON'T POST IN HTML THAT SCREWS UP THE CONTENT. I fyou want help, then don't leave the people offering it to have to edit :<br>
<<a href="http://192.168.2.0" target="_blank">http://192.168.2.0</a>><a href="http://192.168.2.0" target="_blank">192.168.2.0</a>     <<a href="http://0.0.0.0" target="_blank">http://0.0.0.0</a>><a href="http://0.0.0.0" target="_blank">0.0.0.0</a> <<a href="http://255.255.255.0" target="_blank">http://255.255.255.0</a>><a href="http://255.255.255.0" target="_blank">255.255.255.0</a>   U         0 0          0 eth1<br>

<br>
to :<div class="Ih2E3d"><br>
<br>
<a href="http://192.168.2.0" target="_blank">192.168.2.0</a>     <a href="http://0.0.0.0" target="_blank">0.0.0.0</a>         <a href="http://255.255.255.0" target="_blank">255.255.255.0</a>   U         0 0          0 eth1<br>

<br>
<br>
<br></div><div class="Ih2E3d">
abhijit khadatare wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
thanks for ur helpfull reply.<br>
my network topology is as below<br>
<br>
client----->layer2-[switch]----->[if0]router[if1]-------[isc]dhcp server<br>
<br>
layer2 switch is manager switch----192.168.1.46/24<br>
router interface0 -----<a href="http://192.168.1.1/24" target="_blank">192.168.1.1/24</a><br>
router interface 1---192.168.2.5/24<br>
dhcp server ------<a href="http://192.168.2.1/24" target="_blank">192.168.2.1/24</a><br>
<br>
i'm putting giaddr as layer2 switch which is <a href="http://192.168.1.46" target="_blank">192.168.1.46</a><br>
 PROBLEM  is discover is reached upto the server ,but we dont get any offer<br>
routing table is as below<br>
#route -en<br>
Kernel IP routing table<br>
<a href="http://192.168.2.0" target="_blank">192.168.2.0</a>     <a href="http://0.0.0.0" target="_blank">0.0.0.0</a>         <a href="http://255.255.255.0" target="_blank">255.255.255.0</a>   U         0 0          0 eth1<br>

<a href="http://192.168.0.0" target="_blank">192.168.0.0</a>     <a href="http://0.0.0.0" target="_blank">0.0.0.0</a>         <a href="http://255.255.255.0" target="_blank">255.255.255.0</a>   U         0 0          0 eth0<br>

<a href="http://0.0.0.0" target="_blank">0.0.0.0</a>         <a href="http://192.168.0.1" target="_blank">192.168.0.1</a>     <a href="http://0.0.0.0" target="_blank">0.0.0.0</a>         UG        0 0          0 eth0<br>

<br>
but when i add static route for <a href="http://192.168.1.1" target="_blank">192.168.1.1</a> on server<br>
<br>
#route -en<br>
Kernel IP routing table<br>
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface<br>
<a href="http://192.168.2.0" target="_blank">192.168.2.0</a>     <a href="http://0.0.0.0" target="_blank">0.0.0.0</a>         <a href="http://255.255.255.0" target="_blank">255.255.255.0</a>   U         0 0          0 eth1<br>

<a href="http://192.168.1.0" target="_blank">192.168.1.0</a>     <a href="http://0.0.0.0" target="_blank">0.0.0.0</a>         <a href="http://255.255.255.0" target="_blank">255.255.255.0</a>   U         0 0          0 eth1<br>

<a href="http://192.168.0.0" target="_blank">192.168.0.0</a>     <a href="http://0.0.0.0" target="_blank">0.0.0.0</a>         <a href="http://255.255.255.0" target="_blank">255.255.255.0</a>   U         0 0          0 eth0<br>

<a href="http://0.0.0.0" target="_blank">0.0.0.0</a>         <a href="http://192.168.0.1" target="_blank">192.168.0.1</a>     <a href="http://0.0.0.0" target="_blank">0.0.0.0</a>         UG        0 0          0 eth0<br>

</blockquote>
<br></div>
You have NOT added a route to <a href="http://192.168.1.1" target="_blank">192.168.1.1</a> here ! That line should read :<div class="Ih2E3d"><br>
<a href="http://192.168.1.0" target="_blank">192.168.1.0</a>     <a href="http://192.168.2.5" target="_blank">192.168.2.5</a>     <a href="http://255.255.255.0" target="_blank">255.255.255.0</a><br>
<br>
</div><div class="Ih2E3d"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
then we got offer we saw on wireshark that<br>
discover   from <a href="http://192.168.2.5" target="_blank">192.168.2.5</a> to <a href="http://192.168.2.1" target="_blank">192.168.2.1</a><br>
offer from <a href="http://192.168.2.1" target="_blank">192.168.2.1</a> to <a href="http://192.168.1.46" target="_blank">192.168.1.46</a><br>
</blockquote>
<br></div>
That is worrying. The request is from <a href="http://192.168.2.5" target="_blank">192.168.2.5</a> but the reply is to <a href="http://192.168.2.46" target="_blank">192.168.2.46</a>. My guess here is that you have configured both the layer2 switch AND the router to do DHCP forwarding. You do NOT need to do this, the layer2 switch should be transparent to DHCP requests - or if you need it to act as the relay agent (such as to use the circuit ID), then you need to configure the router to NOT also mangle the packets.<br>

<br>
<br>
Now, to your DHCP config posted in your first message.<div class="Ih2E3d"><br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
shared-network 224-29 {<br>
  subnet <a href="http://192.168.2.0" target="_blank">192.168.2.0</a> netmask <a href="http://255.255.255.0" target="_blank">255.255.255.0</a> {<br>
  }<br>
  subnet <a href="http://192.168.1.0" target="_blank">192.168.1.0</a> netmask <a href="http://255.255.255.0" target="_blank">255.255.255.0</a> {<br>
  }<br>
  pool {<br>
<br>
    allow members of "foo";<br>
  log(info ,("ur known to me"));<br>
    range <a href="http://192.168.1.25" target="_blank">192.168.1.25</a> <a href="http://192.168.1.50" target="_blank">192.168.1.50</a>;<br>
  }<br>
<br>
  pool {<br>
    deny members of "foo";<br>
    ignore unknown-clients;<br>
    range <a href="http://192.168.2.140" target="_blank">192.168.2.140</a> <a href="http://192.168.2.150" target="_blank">192.168.2.150</a>;<br>
  }<br>
 }<br>
</blockquote>
<br>
</div><a href="http://192.168.1.0/24" target="_blank">192.168.1.0/24</a> and <a href="http://192.168.2.0/24" target="_blank">192.168.2.0/24</a> are on different networks separated by a router - you do NOT have a shared network.<br>

<br>
Also, your pool declarations should be INSIDE the subnet declarations, thus :<div class="Ih2E3d"><br>
<br>
subnet <a href="http://192.168.2.0" target="_blank">192.168.2.0</a> netmask <a href="http://255.255.255.0" target="_blank">255.255.255.0</a> {<br></div><div><div></div><div class="Wj3C7c">
  pool {<br>
    deny members of "foo";<br>
    ignore unknown-clients;<br>
    range <a href="http://192.168.2.140" target="_blank">192.168.2.140</a> <a href="http://192.168.2.150" target="_blank">192.168.2.150</a>;<br>
  }<br>
}<br>
subnet <a href="http://192.168.1.0" target="_blank">192.168.1.0</a> netmask <a href="http://255.255.255.0" target="_blank">255.255.255.0</a> {<br>
  pool {<br>
    allow members of "foo";<br>
   log(info ,("ur known to me"));<br>
    range <a href="http://192.168.1.25" target="_blank">192.168.1.25</a> <a href="http://192.168.1.50" target="_blank">192.168.1.50</a>;<br>
  }<br>
}<br>
<br>
<br>
</div></div></blockquote></div><br></div>