PDA

View Full Version : Howto: Laptop/PC + "Internet via ADSL/PPPOE/DHCP" as "router via WAN" to Tablet



rajibando
02-11-2015, 05:10 AM
I have a Huawei MediaPad 7 Youth 2 with Android 4.3. I have a 2G SIM from BSNL, karnataka, and charged it with 2G data plan. The transmission is very slow and I can't install apps. The data network gets disconnected frequently.
Is there a way to use the PC's broadband internet connection via some way? There is a tethered USB option in my tablet. Can it be used?
Is there a way to use the PC's wireless networking? To make the PC/Laptop as a wireless router and the tablet use that WAN network?
There is a post: How to Debian linux act as a router (http://forums.debian.net/viewtopic.php?f=5&t=100677#p487015)
Also, there is a debian article, NetworkManager (https://wiki.debian.org/NetworkManager)
Also, another post Debian / Ubuntu Linux: Setup Wireless Access Point (WAP) with Hostapd (http://www.cyberciti.biz/faq/debian-ubuntu-linux-setting-wireless-access-point/)
The matter appears beyond my present abilities.
The articles are conflicting. Moreover, I wish to use the Network Manager applet and to make the PC/Laptop as a wireless router and the tablet use that WAN network.
Or, any other simple way possible...
Please note that my internet service provider, BSNL, provides a dynamic IP for my connection plan. Hence, I don't wish to overwrite the files /etc/network/interfaces and sysctl.conf
Please advise.

rajibando
02-11-2015, 06:22 AM
The tab is Huawei Mediapad 7 Youth 2, with Android 4.3. The tab can be connected to a computer using its mini USB port and a USB cable.
the code:

ip addr show yields:

5: usb0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000
link/ether 02:3c:6d:51:04:05 brd ff:ff:ff:ff:ff:ff
inet6 fe80::3c:6dff:fe51:405/64 scope link
valid_lft forever preferred_lft forever
This article is of interest: Bridging Network Connections (https://wiki.debian.org/BridgeNetworkConnections), particularly,

# brctl addbr br0
and
brctl addif br0 usb0 usb1 i.e., or something similar, i.e., the usb0 of the first (server) to the second (Huawei).
I need some guidance.