Linux USB Ethernet/RNDIS Gadget connectivity problem

Hello beagleboard gurus,

Greetings!

I have a problem in networking the beagle board with development pc.

host machine : WinXp + Ubuntu as guest OS on top of VMware
There is one ethernet card which I use to connect to intranet.
the network setting is showing

2 VMWare virtual ethernet adapters [VMnet8,VMnet1]
1 LAN - connected to intranet

I am using Linux USB Ethernet/RNDIS Gadget to connect the beagleboard
to host machine.After the ifonfig [ifconfig usb0 192.168.1.115] on
beagleboard,the network setting is showing one more connection
LAN2 with IP addr: 192.168.1.15

I could ping the networked beagleboard from Windows
but the IP address of beagleboard is not available/visible in the
Linux guest OS.The IP of Linux OS is neither visible in beagleboard.

My intention is to use NFS mounted rootfile system for my beagleboard
so that the development/testing can be faster.

Is there any way make linux visible for beagleboard over USB Ethernet
network?

any help would be greatly appreciated.

Thanks in advance
Don Cherian

Don,
I first want to make sure I understand your setup.

  1. You have a Desktop PC with Windows and Linux (over VMWare).

  2. You have the beagle board and you are using a USB/Ethernet dongle.
    If this is correct:

  3. What is the LAN config you are using? Is the Windows adapter configured to use 192.168.1.x IP with subnet mask 255.255.255.0?

  4. Did you configure the ethernet adapter in Ubuntu for this IP and subnet?

Or is it that you have done the above, and still unable to ping between Ubuntu and Beagle?

Regards,
Sri.

PS: Also, how are you connecting the beagle board to the desktop? Using Cross-Cable or via a hub?

hello Sri!

thanks for yor reply..

1. You have a Desktop PC with Windows and Linux (over VMWare).

yes

2. You have the beagle board and you are using a USB/Ethernet dongle.

No,I have only one ethernet port on my host computer and i am using it
to connect to intranet.
Instead i wanted to connect the board via usb emulated ethernet.

For that i am connecting the beagleboard's USB-OTG port to host
machine's USB port through usb cable.After the new hardware is
detected in Windows,i installed the driver of Linux USB Ethernet/RNDIS
Gadget.Then a new LAN will appear on my network connections.

I then configured the IP address of the virtual network card[host
side] to 192.168.1.15
and set the IP address of development board to 192.168.1.115
[ifconfig usb0 192.168.1.115]

after it is connected ,ifconfig on beagleboard is giving me the
following connections and i could ping between windows and
beagleboard.

Ok. Now i get it.
Did you try restarting the Ubuntu network? It could be that vmware is
not dynamically adding the new network connection. I may be wrong, but
no harm in trying. Infact i would first connect beagle to windows,
configure both interfaces and them start vmware and ubuntu. This would
clear any vmware issues that might exist.
Also, are you able to see this usb eth in host ubuntu?

Please try the following.
1. Run ifconfig in ubuntu and see if it is showing the usb conn. Or,
maybe you should up the new interface.
2. If you dont see the usb interface on ubuntu, shut it down and
connect the beagle, configure and verify with ping and then restart
ubuntu. And, run ifconfig again.

Regards,
Sri

Assuming everything on the VMWare side of things is configured properly...

Since you are using Ubuntu, which has NetworkManager you don't have to
mess with anything on the command-line. NetworkManager will handle the
ifconfig, iptables, and DHCP server tasks for you:
http://neuvoo.org/wiki/index.php?title=USB_(Networking)#NetworkManager

The rest of that page might be of interest if you are intent on
configuring by hand.

I forgot to mention that NetworkManager can also mess up any manual
configuration of usb0 if you don't specifically use it, so it's best
to turn off NetworkManager (/etc/init.d/networking stop) if you want
to configure usb0 yourself. You'll have to find a way to
hand-configure your connections in the meantime, or set up an
alternative network manager.

Just curious. Will manual configuration, while network manager is running, not override the configuration set by the NM?

-Scott

It certainly may. I've had nothing but problems trying to manually
configure with NetworkManager running, but you can certainly try. Let
me know if you get it to work.