← Back to team overview

ubuntu-phone team mailing list archive

Re: Not Tethering

 

El día Monday, August 17, 2015 a las 06:59:33PM +0200, Oliver Grawert escribió:

> generally wired tethering works though, it gets tested on Ubuntu,
> Windows and Mac OS where it usually works, i supposed there is something
> wrong with the network setup of the OP's desktop here (routing or DNS
> issues with his install)

I do tethering between my FreeBSD netbook and the BQ E4.5 all the days
to connectr my netbook to Internet. When on the side of the FreeBSD the
interface 'ue0' comes up, some devd allows hook scripts which does all
the work for me:

$ cat /usr/local/etc/devd/bq.sh
#!/bin/sh
#
# When the BQ E4.5 is attached on USB we have to assign IP ...
#
# <guru@xxxxxxxxxxx>, June 2016
#
ifconfig ue0 || {
    printf "interface ue0 not found -- exit.\n"
    exit 1
}

# shutdown my own Wifi, routing and dhclient
#
ifconfig wlan0 down
route delete default
killall dhclient
rm -f /etc/resolv.conf

# start a new dhclient for ue0
#
dhclient ue0

# re-init sendmail
#
/etc/rc.d/sendmail stop
sleep 3
/etc/rc.d/sendmail start

# we are done
#
exit 0

As I said, this works all days nicely by just connecting both devices
with the USB cable.

May be all the above is done on Ubuntu by some high sofisticated network
manager. But sometimes it is better to understand what must be happen and
do it by some own script :-)

	matthias

-- 
Matthias Apitz, ✉ guru@xxxxxxxxxxx, http://www.unixarea.de/  ☎ +49-176-38902045
No! Nein! ¡No! Όχι! -- Ευχαριστούμε!


References