Ethernet issues with BB

Hi Group,

I am struggling getting BB on the network. I am using USB hug with
ethernet port, but am not
able to get it work.

Configurations:

BB - Revision B7
Kernel Version: 2.6.29
OS - Angstron
USB Hub: Its a gray coloured hub which says - 3-port hub with ethernet
adapter.

While booting it shows that eth0 link is working as shown below,
Complete dmsg can be viewed at http://pastebin.com/m2a14a619

eth0: link up, 100Mbps, full-duplex, lpa 0x41E1

So, I tried using lsusb, ifconfig and ping but could not ping. Results
are shown below

Using lsusb:

root@beagleboard:~# lsusb
Bus 001 Device 001: ID 1d6b:0002
Bus 002 Device 001: ID 1d6b:0002
Bus 002 Device 002: ID 0409:005a NEC Corp.
Bus 002 Device 003: ID 0461:4d15 Primax Electronics, Ltd
Bus 002 Device 004: ID 0b95:772a ASIX Electronics Corp.

Using ifconfig:

root@beagleboard:~# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:50:B6:46:B3:1B
          inet addr:192.168.0.100 Bcast:255.255.255.255 Mask:
255.255.255.0
          inet6 addr: fe80::250:b6ff:fe46:b31b/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:1024 errors:0 dropped:0 overruns:0 frame:0
          TX packets:27 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:248764 (242.9 KiB) TX bytes:5679 (5.5 KiB)

root@beagleboard:~# ifconfig usb0
usb0 Link encap:Ethernet HWaddr 8A:34:08:9B:E3:BF
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000

finally using ping command:

root@beagleboard:~# ping
74.125.159.99
PING 74.125.159.99 (74.125.159.99): 56 data
bytes
ping: sendto: Network is unreachable

root@beagleboard:~# ping
192.168.0.101
PING 192.168.0.101 (192.168.0.101): 56 data
bytes
64 bytes from 192.168.0.101: seq=0 ttl=64 time=1.587
ms
64 bytes from 192.168.0.101: seq=1 ttl=64 time=1.587
ms
64 bytes from 192.168.0.101: seq=2 ttl=64 time=1.495
ms
64 bytes from 192.168.0.101: seq=3 ttl=64 time=1.495
ms
64 bytes from 192.168.0.101: seq=4 ttl=64 time=0.366
ms

--- 192.168.0.101 ping statistics

Is it a self powered hub ?

BB needs the hub to be self powered and not draw power from the board.

Yes it is self powered hub
Link shows the hub i am using:
https://specialcomp.com/beagleboard/DSCN0394.JPG

so, your ethernet adapter is fine. But it looks like you haven’t configured your router to send out your ip traffic if it is not within your subnet. Just look at how your pc on the same subnet has been configured and try to replicate it on the board

Looks like you are able to ping the local addresses (in the same subnet) but unable to ping the external world (Internet). Are you sure the routing config is correct?

-SV.

Hi Amit
My first idea would be to be sure you can ping from your local network out on another computer.
Also from BB attempt to browse to http://74.125.159.99 (remember www.google.com requires dns server to resolve).
I would also check on your gateway to check the firewall settings you have on the BB node. (Firewalls are designed to block specific ports for you security).
I believe your problem is more likely upstream from your local network.

Hope this helps.

Martin

Can you give me a brief overview of your network setup?

Thanks for the reply, 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.

Thanks,
Amit

See if eth0 has a gateway set by doing:

cat /proc/net/route

If not, try this:

route add default gw 192.168.0.1 dev eth0

Assuming that your gateway is 192.168.0.1.

Thanks Pawel .. that was the problem, for eth0 gateway was set to
0000000.
I changed it to my routers default address and now it works.

Thanks everyone for your prompt response.

-Amit

Congrats on the solution! Gateway setting on BB works for me too!

Martin

Did you try what Pawel suggested?
Hopefully that should work. Let us know if that doesn't.

Hi Martin,

I am using beaglebone A6 revision with interface to Windows XP. While going through several threads on internet issues with BB, I came across this one. I have tried doing what Pawel suggested but to no effect. Here is a brief summary of what I have got so far.

  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

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

  1. 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

I understand that this error is occurring because the gateway is already added.

  1. 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

  1. I thought it is a problem of router not able to resolve the IP address. So I did the following:

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.

Here is a snapshot of my LAN settings on windows.

Please suggest something that will make the communication work!

Thanks a lot
Siddharth