LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-24-2014, 09:26 AM   #1
baronobeefdip
Senior Member
 
Registered: Jul 2009
Distribution: Debian Squeeze
Posts: 1,267

Rep: Reputation: 32
Can I use two network connections at the same time in Network-Manager in ubuntu


I have two devices, one that I want connected to the internet and another that I don't. I have setup a dhcp server on the one connected to the internet and I have the other device connected to it. I want to be able to connect to the internet on one device and connect to the other through a different subnet. I don't want to bridge the two devices because I don't want the other one to have an internet connection. Whenever I do this setup, my internet connection on the device I have connected to the internet stops working whenever the ethernet connection is active. I want to be able to connect to the device connected to my DHCP server and SSH and VNC into it while maintaining the internet connection on the dhcp server. I don't want to use the networking script, I want to use the network-manager GUI that comes in ubuntu because I have it connected to a PEAP authentication wireless network and I don't think wpa_supplicant supports that. (Plus it's hard to find a hot spot to connect to since there are several in the area that I am at and the device might have a hard time selecting one.
 
Old 07-24-2014, 10:30 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,251

Rep: Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321
I can't follow your description - you obviously know what you are talking about, but I missed it. I am taking it to be:

You have box A with a standard internet feed, and another nc. Box B you want to connect to box A, but not the internet.

The way I would do that is to put Box B in /etc/hosts, add a static route to it, and then connect to the internet, leaving the default route as the internet. You can control whether Box B has internet access or not by enabling/disabling ip forwarding with a command.
Code:
 echo 1 > proc/sys/net/ipv4/ip_forwarding
echo 0 to disable, 1 to enable. Maybe do it with ip[v6 as well if you are futuristic :-P.

Then I fix whatever didn't work :-)).
 
Old 07-24-2014, 11:52 AM   #3
stateless
Member
 
Registered: Jan 2013
Distribution: Debian
Posts: 166
Blog Entries: 1

Rep: Reputation: 4
I don't know anything about the Network manager... but with the network manager running the wireless interface, can you still bring up and configure the other (presumably ethernet) interface with ifconfig?
 
Old 07-24-2014, 01:27 PM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,251

Rep: Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321
If you have NetworkManager, you probably have system-config-network - a python script to set things up. It barfs a little less often than NetworkManager. You could try with that. I run slackware, which has neither.

My experience is that the config things like we are mentioning are good for basic setups, but not at the races when you get involved with your setup.
 
  


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
Connections tab missing from network manager klepow Debian 11 03-31-2012 06:15 PM
Ubuntu 11.10 Network Manager issues connecting to wireless network after restart depam Linux - Software 2 01-22-2012 08:39 PM
Connections tab missing from network manager in Debian 6 Omnilogist Debian 8 08-15-2011 07:40 AM
want ubuntu 8.10 to connect to network on BOOT, but still have Network Manager work monkeyman2000 Ubuntu 0 02-13-2009 03:22 PM
Network Manager - Two eth0 connections? hessond Linux - Newbie 2 03-20-2008 08:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:09 PM.

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
Open Source Consulting | Domain Registration