LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to get wired and wireless connection at the same time using NetworkManager? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-get-wired-and-wireless-connection-at-the-same-time-using-networkmanager-886572/)

veeruk101 06-15-2011 02:14 PM

How to get wired and wireless connection at the same time using NetworkManager?
 
I have a wireless connection to the internet, as well as a wired connection to a local network. When the wired connection to my local network is enabled, the wireless connection to the internet no longer works until I disconnect the ethernet cable.

(This setup used to work just fine when I was using Windows, but now doesn't seem to work. I wasn't using IP aliasing in Windows, but I am now, which may be causing the problem.)

My original connection to the internet was a wired one, at eth0, so once I got wireless enabled (on eth1), I created an IP alias to my local network of eth0:1 which is a static IP on my local network. The only configuration I did at all was to add a file named /etc/sysconfig/network-scripts/ifcfg-eth0:1, with the following contents:

Code:

DEVICE=eth0:1
IPADDR=192.168.0.39
NETMASK=255.255.255.0
ONBOOT=yes

And NetworkManager just seemed to pick it up automatically - I didn't change anything else in NetworkManager or anywhere else.

(Also I use 'service NetworkManager start/stop' entirely rather than 'service network start/stop' to manage my connnections. i.e. I did 'chkconfig network off' when setting everything up initially.)

Any idea what I could do to get it working?

flakblas 06-16-2011 08:19 AM

In my experience NetworkManager doesn't play well when you start messing with configs (which is why I don't use it myself.) Have you tried it without using NetworkManager?

veeruk101 06-16-2011 12:04 PM

I tried it without NetworkManager initially but there were lots of problems with getting wireless to work on my model of wireless network card, so I was advised to use NetworkManager which solved the problem. I'm sure it's just that I don't know how to go about configuring it correctly rather than it not being possible, so if anyone has suggestions I'm willing to try them.

kennyhendrick 07-04-2011 10:58 PM

Huh?
 
Erased by author.


All times are GMT -5. The time now is 05:22 AM.