I thought I posted here once before but I don’t see the posting or any replies so if this is a dup my apologies.
I’m trying to set up a pocket beagle with my Mac and I can’t seem to get USB networking up.
When I connect the device to my mac is shows up on the networking tab as BeagleBone, and BeagleBone2. And I can ssh into the dvice. However as soon as I turn on network sharing everything blows up. The devices go from being useable network entries to one being “red” and the other going to a self assigned IP address. The ssh connection is broken and the only recovery is to turn off shared networking and disconnect the cable and then reconnect it.
I’ve made atempts on the board side to set up a default route. And enable dhcp, which actually seems to be running already. If I try to ping from the pocket to the outside world it either fails to work or I get network unavailable.
The mac is a macbook pro running sierra. Any additional suggestions would be greatly appreciated.
I'm not clear - where are you turning on "network sharing" and *why*
are you turning it on?
Uninstall the horndis driver. The reason you are seeing two
interfaces, we have rndis for windows, and a cdc interface for mac.
This was exactly the problem. Once I removed the horndis all was good.
it seems I spoke too soon.
I now can turn on network sharing on my mac. To keep the pocketbeagle connected I have to switch from DHCP to manual on the mac side.
I execute this on the pocketBeagle.
$ sudo /sbin/route add default gw 192.168.6.1
but then get this result:
$ ping 18.104.22.168
PING 22.214.171.124 (126.96.36.199) 56(84) bytes of data.
From 192.168.6.2 icmp_seq=1 Destination Host Unreachable
The mac is set up with
on the beaglebone,
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 192.168.6.1 0.0.0.0 UG 0 0 0 usb0
192.168.6.0 0.0.0.0 255.255.255.252 U 0 0 0 usb0
192.168.6.0 0.0.0.0 255.255.255.252 U 0 0 0 usb1
Once you enable, network sharing on the mac, just login thru the
serial interface and run:
sudo dhclient usb1 (or usb0)