Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Connection sharing (with NetworkManager?)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
nihil39
Tux's lil' helper
Tux's lil' helper


Joined: 15 Nov 2005
Posts: 97
Location: Italy

PostPosted: Fri Aug 19, 2016 3:14 pm    Post subject: Connection sharing (with NetworkManager?) Reply with quote

Hi,

I have a laptop connected to the internet via WiFi through a router. I have to share its connection with a desktop pc connected to the laptop with an ethernet cable, I need this just for the time necessary to install gentoo because it would be inconvenient to bring the desktop close to the router.
How can I do it? Is it possible to do it with Network Manager which I'm using on the laptop?

Thank you in advance.
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9677
Location: almost Mile High in the USA

PostPosted: Fri Aug 19, 2016 5:07 pm    Post subject: Reply with quote

One thing to check is to make sure you have USE=connection-sharing for net-misc/networkmanager built.
Maybe with this set it will become a bit more self explanatory, found
http://askubuntu.com/questions/691986/network-manager-shared-connection-and-manual-settings-of-the-interface

that might work using nm-applet. Keep in mind you want to set it the other way around where you want to share the wifi...

[EDIT]
Actually it doesn't seem to want to "share" my cellular connection, so might want to take this with a grain of salt, it might still not work; but having that USE flag is still needed to pull in the necessary deps.
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
Buffoon
Veteran
Veteran


Joined: 17 Jun 2015
Posts: 1369
Location: EU or US

PostPosted: Fri Aug 19, 2016 5:58 pm    Post subject: Reply with quote

Download stage3 to your laptop and share the portage from your laptop with your desktop and you won't need to mess with NetworkManager.
Back to top
View user's profile Send private message
nihil39
Tux's lil' helper
Tux's lil' helper


Joined: 15 Nov 2005
Posts: 97
Location: Italy

PostPosted: Sat Aug 20, 2016 12:14 pm    Post subject: Reply with quote

eccerr0r wrote:
One thing to check is to make sure you have USE=connection-sharing for net-misc/networkmanager built.
Maybe with this set it will become a bit more self explanatory, found
http://askubuntu.com/questions/691986/network-manager-shared-connection-and-manual-settings-of-the-interface

that might work using nm-applet. Keep in mind you want to set it the other way around where you want to share the wifi...

[EDIT]
Actually it doesn't seem to want to "share" my cellular connection, so might want to take this with a grain of salt, it might still not work; but having that USE flag is still needed to pull in the necessary deps.


Thank you. I have the connection-sharing use flag enabled and dnsmasq installed. Maybe it isn't working for you because of some missing use flag in dnsmasq, I don't know.

I'll try that or maybe I will use something like those PowerLan connectors.
Back to top
View user's profile Send private message
nihil39
Tux's lil' helper
Tux's lil' helper


Joined: 15 Nov 2005
Posts: 97
Location: Italy

PostPosted: Sat Aug 20, 2016 12:28 pm    Post subject: Reply with quote

Buffoon wrote:
Download stage3 to your laptop and share the portage from your laptop with your desktop and you won't need to mess with NetworkManager.


I have to set the desktop machine to have a working kernel with a working wi-fi connection, it would definitely be easier to make it connect to the internet in the meantime.
Back to top
View user's profile Send private message
Buffoon
Veteran
Veteran


Joined: 17 Jun 2015
Posts: 1369
Location: EU or US

PostPosted: Sat Aug 20, 2016 1:08 pm    Post subject: Reply with quote

nihil39 wrote:
Buffoon wrote:
Download stage3 to your laptop and share the portage from your laptop with your desktop and you won't need to mess with NetworkManager.


I have to set the desktop machine to have a working kernel with a working wi-fi connection, it would definitely be easier to make it connect to the internet in the meantime.


Your choice, I personally wouldn't waste time with NetworkManager just to perform the install.
Back to top
View user's profile Send private message
nihil39
Tux's lil' helper
Tux's lil' helper


Joined: 15 Nov 2005
Posts: 97
Location: Italy

PostPosted: Sat Aug 20, 2016 1:44 pm    Post subject: Reply with quote

Buffoon wrote:
nihil39 wrote:
Buffoon wrote:
Download stage3 to your laptop and share the portage from your laptop with your desktop and you won't need to mess with NetworkManager.


I have to set the desktop machine to have a working kernel with a working wi-fi connection, it would definitely be easier to make it connect to the internet in the meantime.


Your choice, I personally wouldn't waste time with NetworkManager just to perform the install.


If it works like it is supposed to do I just have to make the connection available to other pc's in Network Manager on the laptop and have a working dhcp client on the desktop: not a lot of time required.
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9677
Location: almost Mile High in the USA

PostPosted: Sun Aug 21, 2016 1:02 am    Post subject: Reply with quote

I have a feeling that it makes a bad assumption that you never want to share wifi or a broadband cellular connection...where that couldn't be farther from the truth. You do see the option for sharing Ethernet however?

---
Edit

To be honest I never used this service, maybe it does work as advertised and I'm explaining how to do this wrong. It seems interfaces you want to have the leaching computers interface should be set to 'share' and NM will find which network interface is the "upstream" so in this case it is ethernet you want to set sharing despite wifi is the WAN. In my case setting cellular to share would not make any sense....
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
nihil39
Tux's lil' helper
Tux's lil' helper


Joined: 15 Nov 2005
Posts: 97
Location: Italy

PostPosted: Mon Aug 22, 2016 10:39 am    Post subject: Reply with quote

eccerr0r wrote:
I have a feeling that it makes a bad assumption that you never want to share wifi or a broadband cellular connection...where that couldn't be farther from the truth. You do see the option for sharing Ethernet however?

---
Edit

To be honest I never used this service, maybe it does work as advertised and I'm explaining how to do this wrong. It seems interfaces you want to have the leaching computers interface should be set to 'share' and NM will find which network interface is the "upstream" so in this case it is ethernet you want to set sharing despite wifi is the WAN. In my case setting cellular to share would not make any sense....


Thanks, it seems reasonable. Test it if you can: it seems that I will not get the desktop box as soon as I thought.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum