beaglebone black debian wheezy usb net configuration and ssh login on windows and Linux

copyright (C) 2011-2017


follow the tutorial and make usbnet boot automatically

on my BBB debian wheezy:

sudo cat  /etc/modprobe.d/usbnet.conf

#auto load usbnet
options g_multi file=/usbnet.img stall=0
#there is a usbnet.img already there under /

settings on BBB
# g_multi has been loaded, if usb is not plugin , it seems not hang the OS
# hotplug get the device when usb is plug in?
sleep 30 # this delay should be longer than LAN eth0 delay?
ifconfig usb0 up
#route add default gw  #should be set in network/interfaces
echo “setting up usbnet with ip”

ifconfig -a >/var/log/netif.txt


sudo nano /etc/network/interfaces
#add nameserver for this interface

# Ethernet/RNDIS gadget (g_ether) or g_multi for debian
#worked on ArmStrong on MMC, but not sure for Debian on SD card
# … or on host side, usbnet and random hwaddr,  Linux host side IP should be $
#allow-hotplug usb0
iface usb0 inet static

/etc/resolv.conf is automatically generated at runtime,
/etc/hosts            add your hostname into this DNS cache file

using LAN or HDMI output to monitoring the setup


debian@EEE-BBB:~$ route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         UG    0      0        0 usb0     *        U     0      0        0 usb0
on my PC: (host)
windows 7,
after setting the new NIC ip static as,network will automaticall working if USB is plugged in,
Linux should also work

#ifconfig usb0  up

now, ssh should works at ip:

// config for ip forwarding on host ubuntu.

after that you can ping them pc-> bb and bb-> pc

to acceess internet from bb you need adding name server addr for beaglebone ( in file /ect/resolve.conf

BSD documentation licensed Free for non-commercial usage only
Author: Qingfeng XIA
copyright (C) 2011-2017
please keep the original link in your reference.
This entry was posted in Uncategorized. Bookmark the permalink.