I need to do a few things that can only be done on my computer, but my home internet is broken this week. The only way to get internet is on my phone. I turn on tethering and my phone acts like a WiFi router which allows my laptop to access the internet, but I need my Desktop to have internet because of the programs requirements to turn on. To reword, my phone has 3G and acts like a WiFi hotspot which my laptop receives because it has a WiFi card, but it also has an Ethernet port. I need to use my cable and connect the Ethernet port so that my laptop acts like a router and my PC can have access to internet but I don't know how to configure the laptop to do that. Both my computer and laptop have 14.04. What program allows me to do this Thanks in advance!
Ubuntu – Forward laptop’s WiFi into PC Ethernet
ethernetinternettethering
Related Solutions
You need to disable wireless network when you connect by Ethernet.
Any OS and Ubuntu has a routing table where rules are set up where to send packets in order to reach Internet or specific network segments.
If your wireless network is enabled, default route is set up to wireless interface and you can't get access to Internet.
General rule is that you can't use more than one network interface in a system without setting up routing.
I got it working. Here are the steps I used. I have a Kubuntu laptop with one ethernet port and several usb ports. I have a 4G Android phone with a tethering plan.
First, to access KDE's network manager in Kubuntu click the tray icon that looks like a connection and then click "Manage Connections..."
Using KDE's network manager in Kubuntu I edited the standard network connection called auto_eth0 and restricted it to interface eth0. That makes sense from the nomeclature perspective. (While you can probably skip this step, without it the default connection settings mean that the usb0 connection is made through the connection named auto_eth0, creating a source of confusion.)
Still using KDE's network manager in Kubuntu I created a new network connection named tethered_usb0. I restricted it to interface usb0. I enable DHCP client mode. All other settings are default.
I connected a usb cable between my phone and my laptop. I enabled usb tethering on my phone in the Android settings under "Tethering and networks". If Kubuntu doesn't automatically get an Internet connection, open the network manager tray icon and click on the connection named tethered_usb0. It will connect. I now have working Internet access through this connection on my laptop.
Here are the details of this connection:
Type: Wired Ethernet
Connection State: Connected
IP Address: 192.168.42.3
Connection Speed: Unknown
System Name: usb0
MAC Address: <redacted>
Driver: cdc_ether
Next I connected a cat5e (ethernet) cable between the only physical ethernet port on the laptop and the WAN/Internet port (where the cable modem would normally connect) on the router. It is a normal (straight through) cable.
Still using KDE's network manager in Kubuntu I created a new network connection called shared_connection. I left all settings as default. You need to click on the connection named shared_connection in network manager to activate this connection.
The connection details are:
Type: Wired Ethernet
Connection State: Connected
IP Address: 10.42.0.1
Connection Speed: 100 MBit/s
System Name: eth0
MAC Address: <redacted>
Driver: e1000e
Note that there are now two active connections on the Kubuntu laptop: tethered_usb0 and shared_connection. Both are required.
I went into the router GUI and set its WAN/Internet port to a static IP address of 10.42.0.2 and a gateway of 10.42.0.1. The subnet mask is 255.255.255.0. Note that I used a different computer to connect to my router. I used any computer on my lan. The router has the same address it always had and accessing the router's GUI is the same as before. My LAN IP address range is not the same as any of the addresses listed above. My router is a DHCP server. In short, the LAN side of the router does not change at all in this process.
Optional. Because my cable modem internet connection is not reliable, I have a frequent need to do the steps above. Therefore, I plan to purchase a fanless Intel NUC (or similar), install Kubuntu 14.04 on it, and leave it by my router. That way I won't have to dedicate a laptop to this job. I also purchased an extra phone line. (T-Mobile USA has a great deal right now called 10G 4 All.) For a very reasonable cost I now have a backup Internet service for when Comcast goes down. (This week it was down all day Monday, part of Tuesday, part of Thursday and now it has been down all day Friday as of 9pm.)
Best Answer
Yes, this should be easily doable.