Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
Last edited by stanvan; 01-25-2017 at 02:07 PM.
Reason: I type too slow.
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.
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!
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.
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.
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.