You are not logged in.
I have a BeagleBone Black running Arch Linux ARM that loads g_ether and associates the IP address 192.168.10.42 with the resulting network device. This seems to be working fine.
EDIT: Please see subsequent post for update.
I can't figure out how to connect from my Arch Linux desktop. I'm not very familiar with networking and especially not with iproute2.
Looking at the results of
ip link show
when the BBB is plugged in, it appears that the USB interface registers as the network device enp0s20u4.
So I've tried
ip addr add 192.168.10.42 dev enp0s20u4
but when I try to ssh into 192.168.10.42 it redirects me to localhost.
Any advice would be greatly appreciated.
Last edited by egan (2015-04-01 16:58:04)
Offline
I have managed to connect. First, it was a dumb error to use the same IP on the local machine as on the BBB, which accounts for the redirection. Choosing a different ip address for enp0s20u4 makes it work when I set up a netctl profile rather than trying to do it manually with iproute2.
The next issue is how to get the BBB to connect to the internet via the local host. I have already added the local host ip as the gateway in the BBB netctl profile. I just need to figure out the best way to forward the traffic.
Doing the following on the localhost after setting a nameserver on the BBB works:
sudo iptables -A POSTROUTING -t nat -j MASQUERADE
echo 1 | sudo tee /proc/sys/net/ipv4/ip_forward > /dev/null
But I am wondering if there is a way to do this automatically when the netctl profile is brought up.
Last edited by egan (2015-04-01 16:57:26)
Offline
There's a wiki page on internet sharing.
But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner
Offline