RE: [beagleboard] Unable to ping internet from beaglebone (Using windows XP)

3,551 views
Skip to first unread message

William Pretty Security

unread,
Apr 2, 2013, 10:30:11 AM4/2/13
to beagl...@googlegroups.com

It looks to me like you have a connection to your internal LAN, via tcpip however you have no connection to the internet.

 

How does you Xp machine connect to the internet? Presumably thru a hub/router of some sort.

You need to get access to an ip address from the internet via DHCP or whatever means your Xp machine uses.

 

 

From: beagl...@googlegroups.com [mailto:beagl...@googlegroups.com] On Behalf Of siddh...@gmail.com
Sent: Tuesday, April 02, 2013 9:39 AM
To: beagl...@googlegroups.com
Cc: shra...@gmail.com
Subject: [beagleboard] Unable to ping internet from beaglebone (Using windows XP)

 

Hello All,

Sorry for probably posting a naive query, but I would really appreciate some quick help here!

I recently purchased a beaglebone and am trying to connect it to the internet while using windows XP. I am trying to follow the link given here: http://learn.adafruit.com/beaglebone/ethernet and have successfully come up to the point when I am supposed to test the outgoing connection by pinging an address (..."Now you can test the outgoing connection. Type in ping 18.70.0.160 and hit return."...). Somehow all I am getting is this:

--- 18.70.0.160 ping statistics ---
103 packets transmitted, 0 received, 100% packet loss, time 102007ms


I have tried pinging various website (www.google.com, www.ieee.org, etc.) but to no avail.

I also tried pinging an intranet link and, to my surprise, in this case it transmits all the packets successfully!

Any idea why this is happening and how I can get around it?

Thanks & Best Regards,
Siddharth


--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No virus found in this message.
Checked by AVG - www.avg.com
Version: 2013.0.3267 / Virus Database: 3161/6220 - Release Date: 04/02/13


No virus found in this message.
Checked by AVG - www.avg.com
Version: 2013.0.3267 / Virus Database: 3161/6209 - Release Date: 03/27/13

Gopal

unread,
Apr 2, 2013, 11:37:27 PM4/2/13
to beagl...@googlegroups.com, shra...@gmail.com, siddh...@gmail.com
Probably you are missing to setup the gateway and DNS on your beaglebone. If your XP machine can connect to Internet and is on the same network as your beaglebone, then try to find the settings from the XP machine.

Ed Kirk

unread,
Apr 3, 2013, 11:53:14 AM4/3/13
to beagl...@googlegroups.com, shra...@gmail.com, siddh...@gmail.com
Is this a domestic router? It's not common to have a public IP as the default route on a domestic router. You also shouldn't have to set any routes manually on such a router as they're added via DHCP.

What is the model of your router? Is it perhaps just a modem, how many network connectors does it have?

On Wednesday, April 3, 2013 10:01:16 AM UTC+1, siddh...@gmail.com wrote:
Thanks for the reply William and Gopal...

@Gopal - Its exactly what you mentioned. I am not much familiar with network options. I have my BB connected to a router. The same router is also connected to my host PC and it works fine. I can surely give u more details, if u can guide on what all you need.

Looking at another similar thread I have tried some things:

1) Checked if eth0 has a gateway set by doing: root@beaglebone:~# cat /proc/net/route
The message I get upon hitting return is:

Iface   Destination     Gateway         Flags   RefCnt  Use     Metric  Mask   M
TU      Window  IRTT
eth0    00000000        FEF3B394        0003    0       0       0       00000000
        0       0       0

eth0    10CAB394        FEF3B394        0007    0       0       0       FFFFFFFF
        0       0       0

eth0    00F3B394        00000000        0001    0       0       0       00FFFFFF
        0       0       0

eth0    FEF3B394        00000000        0005    0       0       0       FFFFFFFF
        0       0       0

eth0    1B326E97        FEF3B394        0007    0       0       0       FFFFFFFF
        0       0       0

eth0    1C326E97        FEF3B394        0007    0       0       0       FFFFFFFF
        0       0       0

2) I tried adding a default gateway by doing the following: root@beaglebone:~# route add default gw 148.179.243.254 dev eth0
(148.179.243.254 is the default gateway for my router)
To this, I am getting this message:
route: SIOCADDRT: File exists


3) Tried pinging external internet: root@beaglebone:~# ping -c 5 google.com
To this, I am getting this message:

--- ping statistics ---
5 packets transmitted, 0 received, 100% packet loss, time 9007ms


Would appreciate any further suggestions/ideas to make it work!

Thanks,
Siddharth

Mike Borden

unread,
Apr 3, 2013, 11:59:30 AM4/3/13
to beagl...@googlegroups.com, shra...@gmail.com, siddh...@gmail.com
This part:

===
Iface   Destination     Gateway         Flags   RefCnt  Use     Metric  Mask   M
TU      Window  IRTT
eth0    00000000        FEF3B394        0003    0       0       0       00000000
        0       0       0
===

indicates that you already have that default GW in your routing table. If you do "netstat -rn" you'll be able to see that (perhaps more clearly). The SIOCADDRT error is because you're trying to add a route that already exists.

Can you ping 173.194.73.103? That's one IP address for google. If you can hit that, Gopal is correct that your issue is with not having a DNS server configured, because it can't resolve "google.com" into an IP address.

Mike Borden

unread,
Apr 4, 2013, 11:20:27 AM4/4/13
to beagl...@googlegroups.com, shra...@gmail.com, siddh...@gmail.com
A few questions: 
1) Did you set your IP address manually or using DHCP? 
2) Can you show the output of "netstat -rn"? 
3) Can you show the output of "nm-tools"? 

On Thursday, April 4, 2013 4:16:06 AM UTC-4, siddharth kabra wrote:
Thanks Mike. I tried doing what you suggested:

root@beaglebone:~# ping 173.194.73.103
PING 173.194.73.103 (173.194.73.103) 56(84) bytes of data.
^C
--- 173.194.73.103 ping statistics ---
11 packets transmitted, 0 received, 100% packet loss, time 10007ms


I also tried pinging google:

root@beaglebone:~# ping google.com
PING google.com (173.194.69.139) 56(84) bytes of data.
^C
--- google.com ping statistics ---
5 packets transmitted, 0 received, 100% packet loss, time 4007ms


In the message, the IP address next to google.com shows that router is able to resolve website into IP address. But still there is no communication taking place!

I tried pinging an intranet website, and it works just fine. Could there be an issue with the DNS server configuration? Please advice.

Thanks,
Siddharth

Gopal

unread,
Apr 4, 2013, 2:14:10 PM4/4/13
to beagl...@googlegroups.com, shra...@gmail.com, siddh...@gmail.com
On your windows XP machine, what is the IP address, gateway and DNS server setting? It should be there in the LAN properties.


On Thursday, April 4, 2013 1:46:06 PM UTC+5:30, siddharth kabra wrote:
Thanks Mike. I tried doing what you suggested:

root@beaglebone:~# ping 173.194.73.103
PING 173.194.73.103 (173.194.73.103) 56(84) bytes of data.
^C
--- 173.194.73.103 ping statistics ---
11 packets transmitted, 0 received, 100% packet loss, time 10007ms


I also tried pinging google:

root@beaglebone:~# ping google.com
PING google.com (173.194.69.139) 56(84) bytes of data.
^C
--- google.com ping statistics ---
5 packets transmitted, 0 received, 100% packet loss, time 4007ms


In the message, the IP address next to google.com shows that router is able to resolve website into IP address. But still there is no communication taking place!

I tried pinging an intranet website, and it works just fine. Could there be an issue with the DNS server configuration? Please advice.

Thanks,
Siddharth

On Wednesday, 3 April 2013 21:29:30 UTC+5:30, Mike Borden wrote:

siddharth kabra

unread,
Apr 5, 2013, 3:58:36 AM4/5/13
to beagl...@googlegroups.com, shra...@gmail.com, siddh...@gmail.com
1) I did not set my IP address manually. I am using a computer connected to an organization's network.

2) root@beaglebone:~# netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
0.0.0.0         148.179.243.254 0.0.0.0         UG        0 0          0 eth0
148.179.202.16  148.179.243.254 255.255.255.255 UGH       0 0          0 eth0
148.179.243.0   0.0.0.0         255.255.255.0   U         0 0          0 eth0
148.179.243.254 0.0.0.0         255.255.255.255 UH        0 0          0 eth0
151.110.50.27   148.179.243.254 255.255.255.255 UGH       0 0          0 eth0
151.110.50.28   148.179.243.254 255.255.255.255 UGH       0 0          0 eth0


3) root@beaglebone:~# nm-tools
-sh: nm-tools: command not found


Thanks,
Siddharth

siddharth kabra

unread,
Apr 5, 2013, 4:07:00 AM4/5/13
to beagl...@googlegroups.com, shra...@gmail.com, siddh...@gmail.com


The machine is configured to obtain the IP address and DNS server address automatically.

Mike Borden

unread,
Apr 5, 2013, 10:41:49 AM4/5/13
to beagl...@googlegroups.com, shra...@gmail.com, siddh...@gmail.com
Some thoughts:

On your Windows computer: 
1) Do "ipconfig /all" so we can see the values assigned to "DNS Servers"

On your BeagleBone
1) Do "ifconfig -a" so we can see what your IP address info is for the Bone
2) Do "cat /etc/resolv.conf" so we can see what DNS info you have there
3) You mentioned that you can ping other intranet devices. Can you ping the default gateway address? 
4) Can you ping back and forth between the Windows computer and the BeagleBone?
4) You mentioned that you are "in an organization". Do they have any firewalls that prevent unknown devices from getting external access? Sometimes companies will have whitelists for known hosts and block all others.

siddharth kabra

unread,
Apr 9, 2013, 8:39:41 AM4/9/13
to beagl...@googlegroups.com, shra...@gmail.com, siddh...@gmail.com

1) Results of ipconfig /all on windows


2) Results of 'ifconfig -a' on beaglebone



3) Doing cat /etc/resolv.conf gives following result

root@beaglebone:~# cat /etc/resolv.conf
# Generated by Connection Manager
nameserver 127.0.0.1

4) Yes, I can ping the default gateway
root@beaglebone:~# ping 148.179.243.254
PING 148.179.243.254 (148.179.243.254) 56(84) bytes of data.
64 bytes from 148.179.243.254: icmp_req=1 ttl=255 time=0.671 ms
64 bytes from 148.179.243.254: icmp_req=2 ttl=255 time=0.427 ms
64 bytes from 148.179.243.254: icmp_req=3 ttl=255 time=0.610 ms
64 bytes from 148.179.243.254: icmp_req=4 ttl=255 time=0.489 ms
^C
--- 148.179.243.254 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 2999ms
rtt min/avg/max/mdev = 0.427/0.549/0.671/0.097 ms


5) Yes, the firewall is setup.

Eric Keller

unread,
Apr 9, 2013, 10:34:40 AM4/9/13
to beagl...@googlegroups.com
On Tue, Apr 9, 2013 at 8:39 AM, siddharth kabra <siddh...@gmail.com> wrote:

3) Doing cat /etc/resolv.conf gives following result

root@beaglebone:~# cat /etc/resolv.conf
# Generated by Connection Manager
nameserver 127.0.0.1

Unless I missed a change somewhere in your email, your nameserver is the loopback device and you will never resolve a hostname that way.  You can ping IP addresses, no problem.  Set the nameserver to 8.8.8.8 and become part of the google evil empire

siddharth kabra

unread,
Apr 9, 2013, 12:13:35 PM4/9/13
to beagl...@googlegroups.com
Thanks Eric.

Pardon my naivety, but how do I set or rather change the nameserver to 8.8.8.8?

Thanks once again,
Siddharth


--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/6VCaDabyowk/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Thanks & Best Regards,
Siddharth Kabra

siddharth kabra

unread,
Apr 9, 2013, 12:20:44 PM4/9/13
to beagleboard
I searched on google, and I could find this:

To change the nameservers to Googles nameservers: 8.8.8.8, first find the name of the cable connection by doing this:

/usr/lib/connman/test/get-services

and suppose this name is : ethernet_0018318ddea3_cable, do this:

root@beaglebone:~# /usr/lib/connman/test/set-nameservers ethernet_0018318ddea3_cable 8.8.8.8

Is this how even I am supposed to proceed?

Thanks,
Siddharth

Koen Kooi

unread,
Apr 9, 2013, 12:21:47 PM4/9/13
to beagl...@googlegroups.com

Op 9 apr. 2013, om 16:34 heeft Eric Keller <eeke...@psu.edu> het volgende geschreven:

> On Tue, Apr 9, 2013 at 8:39 AM, siddharth kabra <siddh...@gmail.com> wrote:
>
> 3) Doing cat /etc/resolv.conf gives following result
>
> root@beaglebone:~# cat /etc/resolv.conf
> # Generated by Connection Manager
> nameserver 127.0.0.1
>
> Unless I missed a change somewhere in your email, your nameserver is the loopback device and you will never resolve a hostname that way.

dnsmasq should be running and listening on localhost.

Eric Keller

unread,
Apr 9, 2013, 2:06:06 PM4/9/13
to beagl...@googlegroups.com
On Tue, Apr 9, 2013 at 12:21 PM, Koen Kooi <ko...@beagleboard.org> wrote:


dnsmasq should be running and listening on localhost.

Since he isn't getting names resolved, it seems there is a problem there.  

siddharth kabra

unread,
Apr 10, 2013, 9:57:25 AM4/10/13
to beagl...@googlegroups.com, eeke...@psu.edu
Below is the result that I am obtaining after changing the nameserver to 8.8.8.8 as suggested by Eric.

1) Getting the ethernet name:
root@beaglebone:~# /usr/lib/connman/test/get-services
[ /net/connman/service/ethernet_001831938d36_cable ]
    IPv6.Configuration = { Method=auto Privacy=disabled }
    AutoConnect = false
    Name = Wired
    Nameservers = [ 148.179.202.16 151.110.50.27 151.110.50.28 ]
    Provider = { }
    Favorite = true
    Domains.Configuration = [ ]
    State = ready
    Proxy = { Method=direct }
    Nameservers.Configuration = [ 148.179.202.16 151.110.50.27 151.110.50.28 ]
    IPv4 = { Netmask=255.255.255.0 Gateway=148.179.243.254 Method=dhcp Address=1
48.179.243.101 }
    IPv6 = { }
    Domains = [ xxxxxxxxxx ]
    Ethernet = { Interface=eth0 MTU=1500 Method=auto Address=00:18:31:93:8D:36 }

    Security = [ ]
    Proxy.Configuration = { }
    Type = ethernet
    Immutable = false
    IPv4.Configuration = { Method=dhcp }


2) Changing the nameserver to 8.8.8.8
root@beaglebone:~# /usr/lib/connman/test/set-nameservers ethernet_001831938d36_c
able 8.8.8.8
Setting nameserver to ['8.8.8.8']

3) Pinging google
root@beaglebone:~# ping google.com
PING google.com (74.125.225.137) 56(84) bytes of data.

^C
--- google.com ping statistics ---
5 packets transmitted, 0 received, 100% packet loss, time 4007ms

4) Checking the changed nameserver:

root@beaglebone:~# cat /etc/resolv.conf
# Generated by Connection Manager
nameserver 127.0.0.1
This shows that the nameserver is not changed!

How to go about doing that?

Thanks,
Siddharth

Mike Borden

unread,
Apr 10, 2013, 10:50:51 AM4/10/13
to beagl...@googlegroups.com, eeke...@psu.edu
Ah, I didn't realize you were using connman for your network configuration. Changing the nameserver with connman doesn't seem to change anything in the /etc/resolv.conf file, so no worries there. If your Nameservers [] field is updated when you execute "get-services", you should be ok. 

I checked the output of my "get-services" against yours and the only difference is that your "State = ready" and my "State = online". From this link:

http://comments.gmane.org/gmane.linux.network.connman/10238

it appears that the transition to "online" only occurs when it is able to fetch the page indicated in the link. So if you don't have internet connectivity (which your previous posts indicate you don't), that would explain why your status hasn't transitioned. Also, since you're using DHCP, your server seemed to be serving you a couple perfectly good nameservers (presumably, since they're the same ones that were handed to your XP box).

In a previous post you mentioned that your organization did have a firewall. You said you can ping your gateway (which is on the same subnet as your BeagleBone), but can you ping your DNS servers? Can you ping anything not on your immediate subnet? Is it possible that your organization's routers are setup to block unknown hosts or ports? At this point your configuration does not immediately appear to be the issue, so I would investigate those next. At my last company ports were tied to specific MAC addresses, so rogue devices could DHCP an address, but could not actually reach any other machines. Just a thought.

siddharth kabra

unread,
Apr 10, 2013, 12:07:18 PM4/10/13
to beagl...@googlegroups.com, eeke...@psu.edu


On Wednesday, 10 April 2013 20:20:51 UTC+5:30, Mike Borden wrote:
Ah, I didn't realize you were using connman for your network configuration. Changing the nameserver with connman doesn't seem to change anything in the /etc/resolv.conf file, so no worries there. If your Nameservers [] field is updated when you execute "get-services", you should be ok. 

I checked the output of my "get-services" against yours and the only difference is that your "State = ready" and my "State = online". From this link:

http://comments.gmane.org/gmane.linux.network.connman/10238

it appears that the transition to "online" only occurs when it is able to fetch the page indicated in the link. So if you don't have internet connectivity (which your previous posts indicate you don't), that would explain why your status hasn't transitioned. Also, since you're using DHCP, your server seemed to be serving you a couple perfectly good nameservers (presumably, since they're the same ones that were handed to your XP box).

In a previous post you mentioned that your organization did have a firewall. You said you can ping your gateway (which is on the same subnet as your BeagleBone), but can you ping your DNS servers?
 
Thanks for replying Mike.
I tried pinging the nameservers. Is that what you meant by pinging DNS server?

root@beaglebone:~# /usr/lib/connman/test/get-services
[ /net/connman/service/ethernet_78c5e5b1079c_cable ]

    IPv6.Configuration = { Method=auto Privacy=disabled }
    AutoConnect = false
    Name = Wired
    Nameservers = [ 148.179.202.16 151.110.50.27 151.110.50.28 ]
    Provider = { }
    Favorite = true
    Domains.Configuration = [ ]
    State = ready
    Proxy = { Method=direct }
    Nameservers.Configuration = [ ]

    IPv4 = { Netmask=255.255.255.0 Gateway=148.179.243.254 Method=dhcp Address=1
48.179.243.143 }
    IPv6 = { }
    Domains = [ napa.ad.etn.com ]
    Ethernet = { Interface=eth0 MTU=1500 Method=auto Address=78:C5:E5:B1:07:9C }


    Security = [ ]
    Proxy.Configuration = { }
    Type = ethernet
    Immutable = false
    IPv4.Configuration = { Method=dhcp }



root@beaglebone:~# ping 148.179.202.16
PING 148.179.202.16 (148.179.202.16) 56(84) bytes of data.
64 bytes from 148.179.202.16: icmp_req=1 ttl=127 time=0.367 ms
64 bytes from 148.179.202.16: icmp_req=2 ttl=127 time=0.366 ms
64 bytes from 148.179.202.16: icmp_req=3 ttl=127 time=0.427 ms
^C
--- 148.179.202.16 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1998ms
rtt min/avg/max/mdev = 0.366/0.386/0.427/0.036 ms

root@beaglebone:~# ping 151.110.50.27
PING 151.110.50.27 (151.110.50.27) 56(84) bytes of data.
64 bytes from 151.110.50.27: icmp_req=1 ttl=122 time=343 ms
64 bytes from 151.110.50.27: icmp_req=2 ttl=122 time=343 ms
64 bytes from 151.110.50.27: icmp_req=3 ttl=122 time=345 ms
^C
--- 151.110.50.27 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 343.293/343.984/345.031/0.752 ms

root@beaglebone:~# ping 151.110.50.28
PING 151.110.50.28 (151.110.50.28) 56(84) bytes of data.
64 bytes from 151.110.50.28: icmp_req=1 ttl=120 time=349 ms
64 bytes from 151.110.50.28: icmp_req=2 ttl=120 time=355 ms
64 bytes from 151.110.50.28: icmp_req=3 ttl=120 time=349 ms
^C
--- 151.110.50.28 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 349.518/351.512/355.103/2.544 ms

This shows that I can ping my nameservers.
 
Can you ping anything not on your immediate subnet?

I can ping my company's url. But I am assuming that is also on my immediate subnet.
 
Is it possible that your organization's routers are setup to block unknown hosts or ports?

Yes it might be possible. At this moment, I am not aware.
 
At this point your configuration does not immediately appear to be the issue, so I would investigate those next. At my last company ports were tied to specific MAC addresses, so rogue devices could DHCP an address, but could not actually reach any other machines. Just a thought.


Thanks & Best Regards,
Siddharth Kabra

Mike Borden

unread,
Apr 10, 2013, 1:04:53 PM4/10/13
to beagl...@googlegroups.com, eeke...@psu.edu
So you can ping hosts on your subnet, and you are being routed (through your default gateway) to hosts on other subnets (i.e. your nameservers), and you can even ping your own company's URL, which would likely indicate that your nameservers are resolving that for you. But you can't ping external hosts via hostname or direct IP (i.e. the Google IP I gave you to try before). This sounds like it's not an issue with your BeagleBone config, but more likely a routing issue internal to your company. I would contact your IT folks to see if they can help you figure it out.

siddharth kabra

unread,
Apr 11, 2013, 2:19:47 AM4/11/13
to beagl...@googlegroups.com, eeke...@psu.edu


On Wednesday, 10 April 2013 22:34:53 UTC+5:30, Mike Borden wrote:
So you can ping hosts on your subnet, and you are being routed (through your default gateway) to hosts on other subnets (i.e. your nameservers), and you can even ping your own company's URL, which would likely indicate that your nameservers are resolving that for you. But you can't ping external hosts via hostname or direct IP (i.e. the Google IP I gave you to try before). This sounds like it's not an issue with your BeagleBone config, but more likely a routing issue internal to your company. I would contact your IT folks to see if they can help you figure it out.

Thanks, I will do that and will let you know.
 

siddharth kabra

unread,
Apr 23, 2013, 9:12:28 AM4/23/13
to beagl...@googlegroups.com, eeke...@psu.edu
Hello All,

Thanks for all the help that was offered to me. 

Finally, I could get the internet on beaglebone working! Now, I am able to ping any site outside the intranet. The problem was my company's firewall, as rightly suggested by Mike. The firewall was blocking the access to internet.

Now, the next part of the problem is to transfer data from my laptop to the beaglebone.I have a laptop with windows 7 OS installed. I want to transfer data from the laptop to the beaglebone. For starting, I want to transfer any random number. Please help! It seems like another naive issue, but I would appreciate any help in this regard. 

Please let me know if any details are required.

Thanks & Best Regards,
Siddharth 

Mike Borden

unread,
Apr 23, 2013, 9:42:02 AM4/23/13
to beagl...@googlegroups.com, eeke...@psu.edu
I would suggest starting a new thread with your follow-up question so as to not congest this now solved one.
Reply all
Reply to author
Forward
0 new messages