View previous topic :: View next topic |
Author |
Message |
nazoa
Joined: 09 Feb 2007 Posts: 56
|
DHCP Not bound |
Posted: Fri Jan 11, 2008 5:52 am |
|
|
Hello,
I am learning about ethernet using CCS's Ethernet Kit. The problem I have is that the example program (web server) is not finding the DHCP server. I keep getting 'DHCP Not Bound' message. I am connecting the board to our SBS2003 network that does have a DHCP server.
Can anyone suggest where I may be going wrong? Our network IP range is 192.168.1.xxx and I noticed the examples set up for 192.168.100.xxx. Could this have anything to do with it?
Thanks |
|
|
nazoa
Joined: 09 Feb 2007 Posts: 56
|
|
Posted: Fri Jan 11, 2008 8:12 am |
|
|
Some progress, if I connect the board to the network using a 3Com OfficeConnect hub it works fine.
However, if I connect it through the main network switch (Netgear GS116 - can handle 10/100/1000 speeds) the board is unable to find the DHCP server.
Has anyone else come accross this problem?
Thanks |
|
|
asmallri
Joined: 12 Aug 2004 Posts: 1634 Location: Perth, Australia
|
|
Posted: Fri Jan 11, 2008 9:38 am |
|
|
nazoa wrote: | Some progress, if I connect the board to the network using a 3Com OfficeConnect hub it works fine.
However, if I connect it through the main network switch (Netgear GS116 - can handle 10/100/1000 speeds) the board is unable to find the DHCP server.
Has anyone else come accross this problem?
Thanks |
Check if the link is shown as active on the switch. IF the link is not active, it could be you are using the wrong cable (cross-over vs straight thru) and that one device supports autodetection and the other does not. _________________ Regards, Andrew
http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!! |
|
|
nazoa
Joined: 09 Feb 2007 Posts: 56
|
|
Posted: Fri Jan 11, 2008 10:40 am |
|
|
Thanks for the suggestion but that is not the problem. The link shows active at both ends of the cable - in fact disconnecting the cable changes the message on the lcd to 'no ethernet link'. |
|
|
asmallri
Joined: 12 Aug 2004 Posts: 1634 Location: Perth, Australia
|
|
Posted: Fri Jan 11, 2008 11:38 am |
|
|
nazoa wrote: | Thanks for the suggestion but that is not the problem. The link shows active at both ends of the cable - in fact disconnecting the cable changes the message on the lcd to 'no ethernet link'. |
If the cable is straight thru, then change to cross-over and visa-versa. The embedded Ethernet controller had a bug with auto-polarity. See if this helps. _________________ Regards, Andrew
http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!! |
|
|
nazoa
Joined: 09 Feb 2007 Posts: 56
|
|
Posted: Fri Jan 11, 2008 11:48 am |
|
|
Thanks again. I did try swapping the cable with a crossover a couple of times but it has made no difference.
The switch appears to be detecting the board correctly as the correct speed LED comes on when the board is connected.
I did not notice another posting here a few days ago with someone else getting the same message. I'll chase that up in case it was the same problem.
Any suggestions welcomed. |
|
|
joven
Joined: 30 Jan 2007 Posts: 56 Location: Viana do Castelo - Portugal
|
|
Posted: Fri Jan 11, 2008 1:09 pm |
|
|
I have used the DHCP one school project.
In my house i have a wireless router, and gives the IP. But in my school I've tried but no sucess.
I think the problem is the stack use arp and some switch and router do not respond a arps |
|
|
nazoa
Joined: 09 Feb 2007 Posts: 56
|
|
Posted: Sat Jan 12, 2008 4:45 am |
|
|
Thanks Joven.
Well, I have tried the board with a FS116 switch and it works OK. So it seems there is something about the GS116 switch that makes the DHCP in the mchip TCP/IP stack not work. In summary, this is the situation:
GS116 switch (10/100/1000 speeds): DHCP server not found
FS116 switch (10/100 speeds): DHCP works OK
3Com OfficeConnect hub (10/100 speeds): DHCP works OK
I assume that what I am seeing is an issue with the mchip stack so I'd be interested to hear of any suggestions as to what it may be.
By the way, is there any way of setting a host name in the mchip stack?
Thanks. |
|
|
bwhiten
Joined: 26 Nov 2003 Posts: 151 Location: Grayson, GA
|
Authorized? |
Posted: Sat Jan 12, 2008 9:25 am |
|
|
Is it possible the main network switch doesn't recognize your device as valid and then won't allow DHCP to give you and IP? Putting the FS116 or hub between the main switch and your device may be recognized. |
|
|
joven
Joined: 30 Jan 2007 Posts: 56 Location: Viana do Castelo - Portugal
|
|
Posted: Sat Jan 12, 2008 10:40 am |
|
|
in my school use switch HP and the dhcp don't attribute the IP.
Because the switch delete all the messages coming from arp. |
|
|
nazoa
Joined: 09 Feb 2007 Posts: 56
|
|
Posted: Sat Jan 12, 2008 11:12 am |
|
|
OK, all the tests I have done have been using the same DHCP server and THROUGH the GS116 switch. The tests where I refer to the FS116 and 3Com hub is where I have put the extra switch or hub after the GS116 switch. So the connections used in my three tests are as shown:
DHCP Server > GS116 switch > PIC Evaluation board
DHCP Server > GS116 switch > 3COM hub > PIC Evaluation board
DHCP Server > GS116 switch > FS116 switch > PIC Evaluation board
The DHCP Not Bound message only occurs with the first test where the board is connected directly to the GS116 switch. |
|
|
|