LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 01-25-2017, 01:14 PM   #1
wBB
LQ Newbie
 
Registered: Jan 2017
Posts: 25

Rep: Reputation: Disabled
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?

Last edited by wBB; 01-25-2017 at 01:15 PM.
 
Old 01-25-2017, 01:34 PM   #2
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth( I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that works well on my cheapest; has been KDE or CLI but open... http://goo.gl/NqgqJx &c ;-)
Posts: 3,874
Blog Entries: 2

Rep: Reputation: 1319Reputation: 1319Reputation: 1319Reputation: 1319Reputation: 1319Reputation: 1319Reputation: 1319Reputation: 1319Reputation: 1319Reputation: 1319
Seems like a microcoughed-losedough$ question?
http://www.sc.edu/beaufort/library/p...es/bones.shtml
http://www.windowscentral.com/how-tu...reless-hotspot
 
1 members found this post helpful.
Old 01-25-2017, 02:36 PM   #3
wBB
LQ Newbie
 
Registered: Jan 2017
Posts: 25

Original Poster
Rep: Reputation: Disabled
Unhappy

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

Last edited by wBB; 01-25-2017 at 02:38 PM.
 
Old 01-25-2017, 02:55 PM   #4
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137
How about:
http://www.windowscentral.com/how-se...ion-windows-10
 
Old 01-25-2017, 03:05 PM   #5
stanvan
Member
 
Registered: May 2007
Posts: 123

Rep: Reputation: 50
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 03:07 PM. Reason: I type too slow.
 
Old 01-25-2017, 03:19 PM   #6
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth( I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that works well on my cheapest; has been KDE or CLI but open... http://goo.gl/NqgqJx &c ;-)
Posts: 3,874
Blog Entries: 2

Rep: Reputation: 1319Reputation: 1319Reputation: 1319Reputation: 1319Reputation: 1319Reputation: 1319Reputation: 1319Reputation: 1319Reputation: 1319Reputation: 1319
Quote:
Originally Posted by wBB View Post
...
I didn't see a solution on this link above.
...
Quote:
TUTORIAL ON SEARCHING THE WEB

 
Old 01-25-2017, 08:55 PM   #7
wBB
LQ Newbie
 
Registered: Jan 2017
Posts: 25

Original Poster
Rep: Reputation: Disabled
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.
 
Old 01-25-2017, 10:00 PM   #8
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137
It sounds like DNS might not be set up. What if you try to ping 8.8.8.8?
 
Old 01-25-2017, 10:00 PM   #9
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,648

Rep: Reputation: 359Reputation: 359Reputation: 359Reputation: 359
Wouldn't getting a router make this a whole lot easier?

Last edited by JeremyBoden; 01-25-2017 at 10:02 PM.
 
Old 01-25-2017, 11:34 PM   #10
Doug G
Member
 
Registered: Jul 2013
Posts: 749

Rep: Reputation: Disabled
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!
 
Old 01-26-2017, 04:50 PM   #11
wBB
LQ Newbie
 
Registered: Jan 2017
Posts: 25

Original Poster
Rep: Reputation: Disabled
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!!
 
Old 01-26-2017, 05:11 PM   #12
michaelk
Moderator
 
Registered: Aug 2002
Posts: 19,526

Rep: Reputation: 3137Reputation: 3137Reputation: 3137Reputation: 3137Reputation: 3137Reputation: 3137Reputation: 3137Reputation: 3137Reputation: 3137Reputation: 3137Reputation: 3137
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.
 
Old 01-26-2017, 07:39 PM   #13
wBB
LQ Newbie
 
Registered: Jan 2017
Posts: 25

Original Poster
Rep: Reputation: Disabled
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?
 
Old 01-26-2017, 07:55 PM   #14
michaelk
Moderator
 
Registered: Aug 2002
Posts: 19,526

Rep: Reputation: 3137Reputation: 3137Reputation: 3137Reputation: 3137Reputation: 3137Reputation: 3137Reputation: 3137Reputation: 3137Reputation: 3137Reputation: 3137Reputation: 3137
Correct.
 
Old 01-26-2017, 08:18 PM   #15
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth( I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that works well on my cheapest; has been KDE or CLI but open... http://goo.gl/NqgqJx &c ;-)
Posts: 3,874
Blog Entries: 2

Rep: Reputation: 1319Reputation: 1319Reputation: 1319Reputation: 1319Reputation: 1319Reputation: 1319Reputation: 1319Reputation: 1319Reputation: 1319Reputation: 1319
Is funny the mod &c had to switch OSs...

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

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

Last edited by jamison20000e; 01-26-2017 at 08:21 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slow internet connection on multiple linux distros but fast connection on windows Preston3050 Linux - Newbie 7 10-31-2013 01:21 AM
Slow internet connection on multiple linux distros but fast connection on windows Preston3050 Linux - Networking 1 10-29-2013 01:03 PM
Internet Connection Sharing from Windows XP to Linux Patchy Linux - Networking 2 09-21-2005 04:02 PM
Windows - linux internet connection beepee Linux - Networking 3 09-01-2005 05:35 PM
i can get internet connection in windows but in LINUX there is no connection ruzvay Linux - Networking 2 06-08-2004 08:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration