<div dir="ltr">This picture shows the network topology, A Router( only One eth port) with isc-dhcp-server, a PC with 4 ethernet ports and two clients,<div><br></div><div><img src="cid:ii_14225fa5408dbed3" alt="ÄÚǶͼƬ 1"><br>
</div><div><br></div><div>my configuration file on AP(192.168.1.1)</div>
<div><br></div><div>#dhcpd.conf</div><div>authoritative;</div><div><br></div><div>subnet 192.168.1.0 netmask 255.255.255.0 {</div><div>  interface eth0;</div><div>  range 192.168.1.10 192.168.1.50</div><div>  default-lease-time 72000;</div>
<div>  max-lease-time 144000;</div><div>}</div><div><br></div><div><div>subnet 192.168.2.0 netmask 255.255.255.0 {</div><div>  interface eth0;</div><div>  range 192.168.2.10 192.168.2.50</div><div>  default-lease-time 72000;</div>
<div>  max-lease-time 144000;</div><div>}</div></div><div><br></div><div><div>subnet 192.168.3.0 netmask 255.255.255.0 {</div><div>  interface eth0;</div><div>  range 192.168.3.10 192.168.3.50</div><div>  default-lease-time 72000;</div>
<div>  max-lease-time 144000;</div><div>}</div></div><div><br></div><div><br></div><div>the ifconfig result on DHCP Relay Agent</div><div>eth0 192.168.1.125</div><div>eth1 192.168.2.1</div><div>eth2  192.168.3.1</div><div>
<br></div><div>And I run the dhcrelay daemon like this</div><div><br></div><div>  dhcrelay 192.168.1.1</div><div><br></div><div><br></div><div>But the above confinguration can not work, the two PC clients can not get IP, so I really need help.</div>
<div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/11/4 Glenn Satchell <span dir="ltr"><<a href="mailto:glenn.satchell@uniq.com.au" target="_blank">glenn.satchell@uniq.com.au</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">There is no configuration file for dhcrelay as the options are very<br>
simple. Typical usage is<br>
<br>
  dhcrelay serverip1 serverip2<br>
<br>
where serveip1 is the fully qualified hostname or ip address of the dhcp<br>
server. You can specify multiple servers if you have more than one (eg<br>
failover configuration).<br>
<br>
Full details are in the man page for dhcrelay.<br>
regards,<br>
-glenn<br>
<div><div class="h5"><br>
On Mon, November 4, 2013 3:38 pm, banglang huang wrote:<br>
> Hi all,<br>
>         As I am new to isc-dhcp-server, so I do not know how to configure<br>
> the relay agent.<br>
>         Is there anyone can tell or show a sample configuration<br>
> file(dhcpd.conf or other) to me ??<br>
</div></div>> _______________________________________________<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>
<br>
<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></div>