<div dir="ltr">Thank you very much, I make it now, the two PC clients can get their ip address on the specific network, 192.168.2.x and 192.168.3.x.</div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/11/5 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">In subnet 192.168.2.0 you need to define<br>
<br>
  option routers 192.168.2.1;<br>
<br>
and in subnet 192.168.3.0 you need to define:<br>
<br>
  option routers 192.168.3.1;<br>
<br>
so that the clients get a default route back to the dhcp server.<br>
<br>
Next things to try after that are:<br>
<br>
Is there a firewall on the dhcp relay box? It needs to allow udp port 67<br>
and udp port 68 traffic for all IPs including 255.255.255.255.<br>
<br>
Is ip_forwarding enabled on the dhcp relay box? Usually /etc/sysctl.conf<br>
or a subdirectory to set this.<br>
<br>
Is there any useful information in the syslog files? Exactly which file<br>
will depend on how syslog is configured on your system, but something like<br>
/var/log/messages or /var/log/syslog.<br>
<br>
Next step after that is to sniff packets on the dhcp relay box:<br>
<br>
  tcpdump udp port 67 or udp port 68<br>
<br>
and see which parts of the handshake you are seeing. My bet is adding the<br>
routers statement will fix it though.<br>
<br>
regards,<br>
-glenn<br>
<div class="im"><br>
On Tue, November 5, 2013 12:59 pm, banglang huang wrote:<br>
> This picture shows the network topology, A Router( only One eth port) with<br>
> isc-dhcp-server, a PC with 4 ethernet ports and two clients,<br>
><br>
</div>> [image: ÄÚǶͼƬ 1]<br>
<div class="im">><br>
> my configuration file on AP(192.168.1.1)<br>
><br>
> #dhcpd.conf<br>
> authoritative;<br>
><br>
> subnet 192.168.1.0 netmask 255.255.255.0 {<br>
>   interface eth0;<br>
>   range 192.168.1.10 192.168.1.50<br>
>   default-lease-time 72000;<br>
>   max-lease-time 144000;<br>
> }<br>
><br>
> subnet 192.168.2.0 netmask 255.255.255.0 {<br>
>   interface eth0;<br>
>   range 192.168.2.10 192.168.2.50<br>
>   default-lease-time 72000;<br>
>   max-lease-time 144000;<br>
> }<br>
><br>
> subnet 192.168.3.0 netmask 255.255.255.0 {<br>
>   interface eth0;<br>
>   range 192.168.3.10 192.168.3.50<br>
>   default-lease-time 72000;<br>
>   max-lease-time 144000;<br>
> }<br>
><br>
><br>
> the ifconfig result on DHCP Relay Agent<br>
> eth0 192.168.1.125<br>
> eth1 192.168.2.1<br>
> eth2  192.168.3.1<br>
><br>
> And I run the dhcrelay daemon like this<br>
><br>
>   dhcrelay 192.168.1.1<br>
><br>
><br>
</div>> But the above configuration can not work, the two PC clients can not get<br>
<div class="HOEnZb"><div class="h5">> IP, so I really need help.<br>
><br>
><br>
><br>
> 2013/11/4 Glenn Satchell <<a href="mailto:glenn.satchell@uniq.com.au">glenn.satchell@uniq.com.au</a>><br>
><br>
>> 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>
>><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<br>
>> 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>
><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>
</div></div></blockquote></div><br></div>