From: rketcham <Ric...@gm...> - 2009-01-23 16:02:42
|
Hi Dave! I think you're right; udhcpc is somehow not getting the gateway IP. I read up on what the udhcpc error I received when starting udhcpc: root@gumstix-custom-verdex:~$ udhcpc udhcpc (v1.2.1) started Sending discover... Sending select for 68.25.157.115... Lease of 68.25.157.115 obtained, lease time 14400 route: SIOC[ADD|DEL]RT: Network is unreachable adding dns 68.28.114.91 adding dns 68.28.122.93 From: http://www.daemon-systems.org/man/route.8.html route Network is unreachable An attempt to add a route failed because the gateway listed was not on a directly-connected network. The next-hop gateway must be given. I might be wrong, but I'm guessing that the gateway IP must be looking kind of strange so route just dumps it. Although, when I connected with my windows machine IP Address: 68.25.157.115 Subnet Mask: 255.255.255.255 Default Gateway: 68.25.157.1 DHCP Server: 192.168.13.31 Lease Obtained: 1/22/2009 10:14:22 PM Lease Expires: 1/23/2009 2:14:22 AM DNS Servers: 68.28.114.91, 68.28.122.93 WINS Server: 192.168.13.31 Actually, the gateway doesn't look strange at all. Is there a way that I could set this up manually instead of relying on udhcpc? Also, is there an alternate dhcp client within the buildroot that I could use that doesn't rely on route? Using wireshark to monitor traffic over a router with the gumstix and the Airlink RavenX connected, these are the packets sent: 1 0.000000 AirlinkC_01:2e:e8 Broadcast ARP Gratuitous ARP for 192.168.13.31 (Request) 2 2.993985 AirlinkC_01:2e:e8 Broadcast ARP Gratuitous ARP for 192.168.13.31 (Request) 3 5.988144 AirlinkC_01:2e:e8 Broadcast ARP Gratuitous ARP for 192.168.13.31 (Request) 4 24.234328 0.0.0.0 255.255.255.255 DHCP DHCP Discover - Transaction ID 0xf86f3a01 5 24.294234 0.0.0.0 255.255.255.255 DHCP DHCP Request - Transaction ID 0xf86f3a01 5 24.294234 0.0.0.0 255.255.255.255 DHCP DHCP Request - Transaction ID 0xf86f3a01 Protocols in frame: eth:ip:udp:bootp Packet 4 is sent when I give this command: root@gumstix-custom-verdex:~$ udhcpc After the fifth packet, no more packets are sent or received. I also found this reference to a similar problem http://osdir.com/ml/2003-12/msg00284.html BusyBox udhcpc Thanks for the help! Rich Dave Hylands wrote: > > Hi Rich, > > ...snip... >> Does anyone know what could be the issue? Do you have any suggestions on >> how >> to troubleshoot this problem? > ...snip... > >> root@gumstix-custom-verdex:~$ ifconfig >> eth0 Link encap:Ethernet HWaddr 00:15:C9:08:91:90 >> inet addr:68.25.157.115 Bcast:68.255.255.255 >> Mask:255.255.255.255 > > Having a mask of 255.255.255.255 means that any request for ANY > off-board IP address needs to be directed to the gateway. > >> root@gumstix-custom-verdex:~$ route >> Kernel IP routing table >> Destination Gateway Genmask Flags Metric Ref Use >> Iface > > Unfortunately, no gateway's are shown here, so there's no place to > send the packets. Normally the gateway information gets sent by the > DHCP server. Perhaps it's using some extension that udhcp doesn't > support? You'll probably need to capture the DHCP transactions to see > what's going on. > > -- > Dave Hylands > Shuswap, BC, Canada > http://www.DaveHylands.com/ > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > gumstix-users mailing list > gum...@li... > https://lists.sourceforge.net/lists/listinfo/gumstix-users > > -- View this message in context: http://www.nabble.com/Help-with-ethernet-settings-tp21593619p21627182.html Sent from the Gumstix mailing list archive at Nabble.com. |