LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Internet connection between Linux and Windows (https://www.linuxquestions.org/questions/linux-newbie-8/internet-connection-between-linux-and-windows-4175598230/)

wBB 01-25-2017 12:14 PM

Internet connection between Linux and Windows
 
Hi,

I would like to share the internet connection of my Windows 10 laptop with a Linux Debian device.
They are connected via cable cross.

On the Windows 10 laptop there are two connections:
1) Wifi connection: Connected to the internet and with automatic IP (active DHCP).
2) Network card with Ethernet cable: Fixed IP 192.168.0.110

On the Debian Linux device there is only one connection:
1) Network card with Ethernet cable: Fixed IP 192.168.0.150

From the Linux device I can ping the IP of the laptop's network card, IP 192.168.0.110. Communication between both works, but Linux does not connect to the internet using the laptop's wifi network, as I expected.

How to connect the Linux device to the internet via laptop?

jamison20000e 01-25-2017 12:34 PM

Seems like a microcoughed-losedough$ question?
http://www.sc.edu/beaufort/library/p...es/bones.shtml :hattip:
http://www.windowscentral.com/how-tu...reless-hotspot :scratch:

wBB 01-25-2017 01:36 PM

I didn't see a solution on this link above.

Hosted network supported: NO
For this link above, in my case the answer to the tutorial presented is "NO": network NOT supported

suicidaleggroll 01-25-2017 01:55 PM

How about:
http://www.windowscentral.com/how-se...ion-windows-10

stanvan 01-25-2017 02:05 PM

Just a guess here, but it sounds like you need to configure Debian to make your Windows connection (192.168.0.110) the "default gateway"... and configure Windows 10 to act as a "bridge" between its two networks. The two Windows connections may also need to subnet differently from each other. There used to be a setting in (older) Windows to "share a network connection" but I have no idea if that remains in Window 10. Try Googling the quoted phrases and see what you get.

Ah, I've been beat to the punch. Nice link, suicidaleggroll.

jamison20000e 01-25-2017 02:19 PM

Quote:

Originally Posted by wBB (Post 5660099)
...
I didn't see a solution on this link above.
...

Quote:

TUTORIAL ON SEARCHING THE WEB
;)
;) ;)

wBB 01-25-2017 07:55 PM

suicidaleggroll, I've tried to follow yours tutorial, but I didn't get to solve this problem yet.

I've created a new bridge connection in Windows and I still have access to the internet from my laptop. Already on the Linux device it works partially. When I try to ping the Router IP, where my latptop is connected via new Windows bridged Wi-Fi connection, it works fine. But when I try to ping another IP from an external server, it does not work. This error occurs:

ping google.com
The answer is: "ping: unknown host google.com"
I don't know what happens...


Another problem with the bridge is the disconnection of the internet at all times.

suicidaleggroll 01-25-2017 09:00 PM

It sounds like DNS might not be set up. What if you try to ping 8.8.8.8?

JeremyBoden 01-25-2017 09:00 PM

Wouldn't getting a router make this a whole lot easier?

Doug G 01-25-2017 10:34 PM

Take a look here: http://www.quepublishing.com/article...55390&seqNum=6

Unless MS has changed their ways, back when I used windows ICS you didn't have much control over ip address range, dhcp setting, dns settings, etc on the windows side, but it did work.

However, as Jeremy said your life will be much easier if you got a router instead of trying to share via Windows. Microsoft ICS, or an computer-based internet connection sharing, has drawbacks. Imagine you're in the middle of a 2 hour download of something and without thinking, decided to reboot the sharing computer. Oops!

wBB 01-26-2017 03:50 PM

Quote:

suicidaleggroll
It sounds like DNS might not be set up. What if you try to ping 8.8.8.8?
In my opinion the problem may be on the router. I guess it's stopping my Linux device from gaining access to the internet.
It really could be DNS problem, as you said. But I still can't identify where exactly. The access from device to router, through the laptop, occurs correctly but is interrupted on the router.

Quote:

JeremyBoden
Wouldn't getting a router make this a whole lot easier?
No, because this Linux device it'll be operating in an "industrial factory" (I don't know if is this way it writes in English). So there it'll not be a connection available with a router, so I can't rely on this choice.

I tried to follow the tutorial you indicated, but when the check box "Allow Other Network Users to Connect Through This Computer’s Internet Connection" is marked, Windows sends the message that indicates the need to change the Ethernet IP to the number 192.168.137.1. Then the connection to the Linux device is interrupted. I assume it's because the Linux device belongs to another subnet.

It's so hard!!:banghead:

michaelk 01-26-2017 04:11 PM

When you turn on Windows connection sharing it will automatically configure the ethernet port with an IP address and turn on its DHCP server. If you go back to using DHCP on both ethernet ports then turn on connection sharing it will be easier.

wBB 01-26-2017 06:39 PM

michaelk
Just by confirming, when wifi (on laptop) connection sharing is enabled, are you saying that Windows will create a DHCP server to manage the IPs of my other ethernet connection from my laptop and the IP that my Linux device will need as well? That's right?

michaelk 01-26-2017 06:55 PM

Correct.

jamison20000e 01-26-2017 07:18 PM

Is funny the mod &c had to switch OSs... :p

This could help: https://www.thinkpenguin.com/catalog...rking-gnulinux

Add (particularly:) Penguin Wireless N USB Adapter for GNU / Linux (TPE-N150USB)


All times are GMT -5. The time now is 07:48 AM.