Tether BBBW Wifi connection to USB

42 views
Skip to first unread message

karaj...@gmail.com

unread,
Mar 22, 2019, 7:53:02 AM3/22/19
to BeagleBoard
If a Debian BBBW or BBBGW has wlan0 connected to a wifi router via connmanctl, how does one go about sharing that internet connection with a device connected via usb0 or usb1?

To be clear, the debian computer i use only has usb ports for io, so i want to get internet access with just it’s usb connectivity to a BBBW that is connected to the internet. I can ssh to the bbbw via the usb1 network on 192.168.6.*

I tried messing with IP tables on the BBBW to no avail, and every search for this leads to results solving the opposite problem

devm...@gmail.com

unread,
Mar 22, 2019, 8:43:17 AM3/22/19
to BeagleBoard
Hi,

I used BeagleBoard.org Debian Image 2019-03-17 and by default the forward between two networks is active for ipv4:

$cat /proc/sys/net/ipv4/ip_forward
1
So you have just config the gateway of your computer with the IP (usb0 or usb1) of BBW!

windows_ip_static_example.jpg

It's an example on Windows 7.



Le vendredi 22 mars 2019 12:53:02 UTC + 1, Herbert Von Karajan a écrit:
Si un BBBW ou BBBGW de Debian est connecté à un routeur wifi via un connecteur wifi, comment peut-on partager cette connexion Internet avec un périphérique connecté via usb0 ou usb1?

Pour être clair, l’ordinateur Debian que j’utilise ne dispose que de ports usb pour io, je souhaite donc obtenir un accès Internet avec sa connectivité USB à un BBBW connecté à Internet. Je peux passer au bbbw via le réseau usb1 sur 192.168.6. *

J'ai essayé de jouer avec les tables IP sur le BBBW sans succès, et chaque recherche dans ce but aboutit à des résultats qui résolvent le problème inverse.

Herbert Von Karajan

unread,
Mar 22, 2019, 2:53:42 PM3/22/19
to BeagleBoard
I am using a debian linux laptop. Doing ip route add default via 192.168.7.2 works for about 30 seconds before that route is kicked off the route list.

Is there dhcp settings on the bbbw that’s causing it to reset the default gateway of my laptop?

devm...@gmail.com

unread,
Mar 25, 2019, 10:24:17 AM3/25/19
to BeagleBoard

Le vendredi 22 mars 2019 19:53:42 UTC+1, Herbert Von Karajan a écrit :
I am using a debian linux laptop. Doing ip route add default via 192.168.7.2 works for about 30 seconds before that route is kicked off the route list.

Is there dhcp settings on the bbbw that’s causing it to reset the default gateway of my laptop?
Not if you use a static ip address on your linux laptop! The dhcp on the bbbw can't change your network settings on your laptop.
If you have only 30secs, it's probably because you have a network software on your laptop who stop the connection with bbbw.
Reply all
Reply to author
Forward
0 new messages