<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi glenn,<br><br>Than you so much for prompt reply. I think this is the problem with the relay agent since relay agent is sending the DHCP discovery with destination port as 68. <br><br>But the server is sending unicast message to the relay at port 67. CAn you tell me if it possible to change the relay agent behavior with some or other configuration.<br><br>I have dd-wrt as the relay agent. I will send the packet capture if you require further information.<br><br>Thanks in advance,<br><br>Neeraj Jain. <br><br>--- On <b>Wed, 8/6/11, Glenn Satchell <i><glenn.satchell@uniq.com.au></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Glenn Satchell <glenn.satchell@uniq.com.au><br>Subject: Re: DISCOVER at wrong port<br>To: "Users of ISC DHCP"
<dhcp-users@lists.isc.org><br>Date: Wednesday, 8 June, 2011, 4:40 PM<br><br><div class="plainMail">Ok, so what you should see on the server is:<br><br>% netstat -an | grep 67<br> *.67 Idle<br><br>This means the server is listening on port 67. The dhclient should be <br>listening on port 68 for replies. The client may or may not use port 68 <br>as the source port. Likewise the server may or may nor use port 67 as <br>the source port.<br><br>The relay is kind of special, it needs to listen on port 68 for <br>broadcast messages from clients. dhcp server send packets to the relay <br>using unicast (as opposed to broadcast). It then re-transmits those <br>packets to the client using a broadcast. The unicast communications <br>follows normal conventions - the relay transmits from a random port <br> >1023 with
destination port 67. The responses should come back as <br>source port 67 and destination the random high port on the relay.<br><br>Are you seeing something different to this? Your description doesn't <br>help work out what is wrong, so can you post dhcp logs and packet dumps <br>using tcpdump? Should only need to see a couple to packets. dhcpd.conf <br>and the command line used to start the relay would also be helpful.<br><br>regards,<br>-glenn<br><br>On 06/08/11 20:10, neeraj jain wrote:<br>> Hi Glenn,<br>><br>> Thank you so much for the reply. I have checked the configuration on the<br>> /etc/services and it is same as you have given.<br>><br>> My problem is that DHCP server is always replying on the 67 port which<br>> against the protocol. I am not able to find a clue why this is happening?<br>><br>> Please help.<br>><br>> Thanks in advance.<br>> Neeraj Jain<br>><br>> --- On *Tue, 7/6/11, Glenn Satchell
/<<a ymailto="mailto:glenn.satchell@uniq.com.au" href="/mc/compose?to=glenn.satchell@uniq.com.au">glenn.satchell@uniq.com.au</a>>/* wrote:<br>><br>><br>> From: Glenn Satchell <<a ymailto="mailto:glenn.satchell@uniq.com.au" href="/mc/compose?to=glenn.satchell@uniq.com.au">glenn.satchell@uniq.com.au</a>><br>> Subject: Re: DISCOVER at wrong port<br>> To: "Users of ISC DHCP" <<a ymailto="mailto:dhcp-users@lists.isc.org" href="/mc/compose?to=dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a>><br>> Date: Tuesday, 7 June, 2011, 5:23 PM<br>><br>> On 06/07/11 21:39, neeraj jain wrote:<br>> > Hi all,<br>> > I am facing problem while giving offer to the discovery request. I am<br>> > seeing that my relay agent is sending the
disocver request at prot 68<br>> > and Dhcp server is sending offer at 67 port.<br>> > Because of that relay agent is not forwording the response to the<br>> client<br>> > machine. I am not sure if I can change any thing in the DHCP server<br>> > side. Or it is relay agent issue???<br>> > Please assis.<br>> > Thanks in advance,<br>> > Neeraj Jain<br>> ><br>><br>><br>> Those port numbers are quite normal, see the entries from<br>> /etc/services. Don't get confused by source and destination ports...<br>><br>> $ grep bootp /etc/services<br>> bootps 67/udp # BOOTP/DHCP server<br>>
bootpc 68/udp # BOOTP/DHCP client<br>><br>> There must be something else wrong. What messages are in the dhcp<br>> server logs?<br>><br>> -- regards,<br>> -glenn<br>> _______________________________________________<br>> dhcp-users mailing list<br>> <a ymailto="mailto:dhcp-users@lists.isc.org" href="/mc/compose?to=dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a> </mc/compose?to=<a ymailto="mailto:dhcp-users@lists.isc.org" href="/mc/compose?to=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 ymailto="mailto:dhcp-users@lists.isc.org" href="/mc/compose?to=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></blockquote></td></tr></table>