Debian Configuration :: Wireless Only Works When Ethernet Cable Is Plugged In?
Jul 9, 2011
I have a debian-powered NAS (Buffalo LinkStation) and I want to configure the following behaviour: When ethernet (eth0) is plugged in, connect and get a static ip address (ie. 192.168.0.11) When a wireless usb-adapter (wlan0) is plugged in, connect to a wireless router (ie. "Ankkanet") get another static ip address (192.168.0.12)
My /etc/network/interfaces :
iface lo inet loopback
iface eth0 inet static
what could be causing wireless to disconnect when ethernet cable is unplugged?
When the ethernet cable is plugged in, it doesnt work. I have to unplug the cable, refresh the page and let it wait for the connection, after a second or two, i plug it back in, and it works. this works only for that page, which means only that page loads.. if i try to open another site or smthing else, it doesnt work and i have to repeat the exercise for the new site..i have to unplug, refresh and let it wait for connection and plug it back in.. The same thing happens if i try to download an application.. i have to first issue the command to download, and when it says "connecting to blah blah.." i plug the cable back in and it starts downloading, it doesnt work if the cable is already plugged it..!
Acer 5250-BZ475 laptop, fresh install of Ubuntu 11.04. Boots up beautifully as long as an ethernet cable is plugged in. Otherwise, I get to the login screen and have just enough time to start typing in my password before the entire system hangs hard - no mouse, no keyboard, can't even get to a terminal, nothing. Have to hard power off the machine.
It seems to be a problem with the wireless card trying to initialize, but there doesn't seem to be a bios option to disable wireless on this laptop, so I'm a bit at a loss as to how to fix this problem. By the way, wireless works fine if I boot up with a cable connected - I can see all the wireless access points in my area no problem. I just can't boot without a wired connection, which makes my laptop more or less useless when I'm away from home with it.
For about the past month I have been having a very frustrating problem When I boot the system with the ethernet cable attached it acts as if the cable is unplugged even though the connection light is litWhen I boot the system with the ethernet cable disconnected and wait until it boots all the way to gnome and then plug in the cable everything works fine
I have got a laptop running Debian squeeze. I wish to share the wireless connection of the laptop (wlan0) to the ethernet port of the laptop, so that I can share the wireless connection to my desktop PC which is connected to the ethernet port.
I have read the article on Ubuntu community: [url]
I followed the steps, and the /etc/network/interfaces file on my laptop is:
Now the situation is: My laptop can connect to Internet (i.e. ping debian.org from laptop is fine), my desktop PC can connect to my laptop (i.e. ping 192.168.1.1 from desktop PC is fine). However, the desktop PC cannot reach the Internet.
I also read the information on Debian Wiki: [url]
It seems I must install and configure ebtables before sharing my wireless connection to ethernet port. Is it true? (But why the article on Ubuntu community doesn't mention it?) Or I just made some mistakes?
I'm a new user of Ubuntu, so i'm not that familiar with this OS. My wireless network is detected but when I'm entering my 128 bits WEP key, it doesn't connect at all. I have no clue where to start troubleshooting.
Here's some of my specs if that's of any help: Computer is a Sony Vaio laptop model VGN-SZ370P My wireless card is from Intel Corporation 82801G (ICH7 Family) USB UHCI Controller
The ethernet cable connection used to work before, but I fooled around with some commands and now seems to be disabled...
Just today I installed opensuse 11.3 on my Compaq CQ61. Even though I am able to connect to networks (both with an ethernet cable and wireless) I don't have internet access. I have used opensuse for a very brief period in the past and I had no such problem.
how I could file share, or make the whole Hard Drive (HDD) accessible to another computer. The two other computers I have are a Toshiba Laptop with Ethernet and USB, and a iMac Intel with Firewire, USB, and Ethernet. Putting these to use along with:
Three Ethernet Cables Two Printer Peripheral USB Cables The Two Computers A 2GB Flash Drive
That is all I can think of right now. I do not want to use CDs. In a way, I would like to do a network boot. So, how do I get the whole HDD visible to the others computers (either/both) and be able to write to it? I want to put Xubuntu on it, and earse the rest of the Hard Drive. The computers getting this are the iMac G3s and the eMac G4. The eMac has 256MB RAM, 40GB HDD, and a 700MHz processor. Two iMacs have 128MB RAM, 40GB HDD, and a 600MHz Processor. The other iMac is the same as the rest but has a 500MHz processor.
Using ubuntu 10.10 (pinguy OS) i connected an ethernet cable from my girl's macbook pro to her lenovo ideapad s10-3t to transfer some DS9 episodes onto it. new enough to linux to have not been able to figure out how to access the files on the mac, so i disconnected the ethernet, and the wireless hasn't worked since. tried everything i know, and googling for a while (as well as searching again on this forum) to no avail.
Just before linking the 2 computers via ethernet, the wireless worked fine on the ideapad, always had; but not so after the ethernet connection that did nothing other than apparently kill the wireless. an "lshw -C network" command tells me i have a BCM4313 wireless card, and *-network UNCLAIMED. also, if i launch "install additional drivers", i see that the proprietary driver is not active.
How could merely plugging in an ethernet cable that happened to be conncected to a MBP running OSX.6 do that? and will that happen again? i thought linux was supposed to play real nice with other OS's, so why did a simple file transfer kill my wireless connectivity? i have no access to internet via ethernet cable, so i cannot just download the driver i need now. shouldn't it still be in the computer still? somewhere? is there a simple solution to this, or has the wireless driver been wiped out by plugging in the ethernet? is this a bug that should be reported?
if i would know the terms i could search for it, so bare with my words: i got an old PC, and my ethernet-cables don't fit into its plug (port?). its a little smaller than the usual one. how is it called and what am i looking for (whats the name of the plugs which need to fit, whats the measure. all i could see is male/male and some voodoo stuff like RJ333 <-wrong.
I have a computer with grub installed, and nothing else. I'd like to install Debian on it without having to burn a CD. (and I don't have any flash disks.) It has a nice ethernet card, and I have another computer right next to it with an ethernet card. I also have an ethernet cable. However, I don't have any router free which I can mess with for these purposes. As I've looked up, apparently modern Ethernet cards don't need crossover cables, normal cables will work for this type of connection.
I've tried several different "tutorials" on how to set up a netboot server, but
None of them are complete. All of them assume that you understand how DHCP works, and that you can do things like set up a dnsmasq server. I don't understand the DHCP protocol, with submasks and whatnot (I know that it is the protocol for assigning computer network addresses, and that's it), and I don't think I should have to in order to simply connect two computers. All of the tutorials give you incomplete configuration files, and ask you to fill in things which I don't understand, and for me it doesn't make sense to customize these settings, as I just want to connect them and I really don't care what ip address the TFTP server has or whatnot. All of these assume that you are going through a router. I am not. When I try googling for ways to directly connect two linux computers with an ethernet cable, I can't even find instructions, just more references to "you need crossover cables".
So basically, I have two computers directly connected by ethernet cables. Tell me what packages I need to install, what the contents of my configuration files should look like, and what, if any, commands I need to run in order that when I turn on my second computer, and select network boot, it will start up a minimal debian system.
EDIT: Hmmm, it looks like I actually have a linux kernel installed too, but no root filesystem (so no other programs besides busybox).
I am working on h/w device having linux kernel version 2.6.27 with busybox installed. I observed below problems while working on jffs2 image is flashed on the board.
1)When the board is powered-up with n/w cable is connected, it doesn't get IP address automatically, I have to use "/etc/init.d/networking restart" in init script(/etc/init.d/rcS) to get the IP address.(I am using dynamic addressing)
2)When the board is powered-up with n/w cable is unplugged and plugging-in once the device is started, I get "link up" message from the system, but still the IP is missing in eth0 interface.
I have udhcpc(v1.14.1) installed. Giving below commands manually, get the IP for device:
Code: ifdown eth0 /etc/init.d/networking restart but It is not pretty solution for me !
What I want is, the device should get IP address automatically once the n/w cable is plugged-in. (as we get in desktop m/c's). Am I missing some scripts or configuration parameters?
I have a kubuntu 10.04 box and it runs virtualbox with windows 2000. For the most part, the network cable will be plugged in and i should be able to rdp into my windows 2000 install just fine, however, for testing purposes and for backup server testing, I will not have the cable plugged in all of the time.How would I rdp into that windows 2k install on the same machine if no cable is plugged into the ethernet port?I have both the kubuntu install and the windows 2k install setup with static ip's, but it is not working.
this is my first post here. I have been playing around with Linux for a few years now. I have a dual boot Sony laptop with XP and FC9. its a lot of fun to boot FC and see what people think. I have also installed it for some friends so they could see what it was like. I was helping someone get a enterprise server running. Everything started pretty well except for the built in network cards. there are two Realtek RTL8111C cards on the motherboard. not a big deal, we built the server and got it up and running with a PCI network card installed a I was able to download the new drivers for the built in cards, I also updated the kernel. now they are able to connect, but only if I boot the server with the cable unplugged. after the server comes up, and I sign on and plug the network cable in everything seems to be fine. but if I boot with the cable in, I can not connect. I can ping its own IP, but nothing else. and if I unplug it, and plug back in that doesn't work either. I feel like i am missing something small, but I am not sure what. I have another issue with the server taking up to 6 minutes to boot, but that is another thing to work on later.
I want to know any command which is equal to disconnecting and reconnecting lan cable. actually sometimes my router takes some time to connect to internet and when this happens my desktop shows network disconnected. but when router is connected system does no detect it and i have to manually disconnect and reconnect the cable which is not convenient.
I am trying to get my tevii650 usb DVB-S2 tuner working. I seem to have installed all the correct drivers as far as I can tell.
When I scan for services and then use femon to look at the signal strength femon -H, I get a signal of around 83% with 0 SNR and BER. Then if I remove the feed the signal goes UP to 97% 0SNR and BER.
I am trying to monitor signal the signal level coming down from the satellite. I don't even want to be able to tune to any of the channels. Basically I want to use the PC as a glorified signal meter and datalogger.
I have been encountering this problem, not only on 10.4, but on older versions too: I use a wifi router to connect my laptop to the Internet, but sometimes I need to connect directly to another computer to move some files over GLAN. But Ubuntu's Network manager doesn't allow me to configure the eth0 interface without specifying a gateway (no gateway = grey submit button), but when a gateway is specified, it always rewrites the default gw specified already by the active wifi connection and returns back after unplugging the eth cable.
Of course this can be solved by a few route commands, but this is unacceptable since it is needed to establish the cable connection without any further assistance from within and as well without replacing the default gw and thus breaking the Internet connection. Is there, please, any possibility how to prevent Network Manager from replacing these routes?
I've got a Dell Optiplex Desktop here, the CPU is a Intel(R) Core(TM) i5-2400 CPU @ 3.10GHz. The integrated ethernet here is from intel also, it's a 82579LM Gigabit Network Connection. This computer is running a Debian Squeeze 64bits, distrib sid, kernel 2.6.39-2-amd64.Well, here goes the story. I had a lot of trouble with the ethernet card, being very slow, and it just didn't work when i was using tftp. So I downloaded and compiled the latest driver available on Intel website. Currently with debian sid, the version for the driver ( e1000e ) is version: 1.3.10-k2. From Intel I got the version 1.3.17-NAPI.Alright, so I build it, and move the module manually to the right place, replacing the previous version at the same time ie :
I bought suse 10.2 the other day thinking well this will be good. Tho I am seriously doubting my judgement. I have set up my router onto the suse network manager and apparently says its plugged in and sending information across. Although.. when I click on firefox it comes up as page cannot be displayed or unable to find, the ethernet is being picked up in the bottom task bar tho no joy with browsing the net. To add I have went onto the firefox preferences and changed the network settings to direct connection and defaults and tried and it still ain't happening.
i install devian squeeze with the netinstall iso, all work fine except for the auto-detect of my ethernet card.i have a mother asrock p4i45gv with an onboard ethernet card realtek rtl8139/810x family fast ethernet NIC.i try everithing, the ifconfig shows only lo, but ifconfig -a shows a eth0 any ideas?
Go to "/lib/modules/2.6.32-5-amd64/kernel/drivers/net/e1000e/" and delete the e1000e.ko-file
Then download [URL]
Take the newly downloaded e1000e.ko-file and move it to "/lib/modules/2.6.32-5-amd64/kernel/drivers/net/e1000e/"
And finally load the module with either: "# modprobe e1000e" or "# insmod e1000e".
You should now have a working ethernet connection.
If connection is lost on system restart try rmmod e1000e; modprobe e1000e
I've for the first time installed linux (debian) to my computer. And I have a problem with ethernet that I can't solve.
I have a Asus Sabertooth P67 motherboard with built in ethernet card, I cant find any drivers for linux, I've tried google, Asus support page etc, but can't anything that says it will work with my computer, just a alot of windows drivers.
where I can find the drivers? Or if there's another way to solve the problem. When installing Debian i could choose between different drivers but no one worked, I've also tried with my motherboard CD but there was just windows drivers...
I just updated my Squeeze install now the current kernel version is now 3.0.0-1-686-pae. I now no longer have any internet connection.I have tried the failsafe boots with no luck. I have tried the 2.6 kernels and have had no luck.I have tried to manually start the connections with no luck.I have booted off of a Squeeze Live CD and the connection works just fine.
I just purchased an HP Pavilion p6710f desktop with an ralink wireless n card, and 11.04 won't recognize it in 'Additional Drivers'. I can't get it to an ethernet cable, and then check for more additional drivers (did this on an old laptop), so what can I do??
I upgraded testing today on my intel laptop. During the upgrade I got the message that the new kernel would require additional firmware, see attached. Is the solution for this to install the driver from Realtek? [URL] If so, the instructions said to check if the driver was already installed, but what does the output below mean?
This may sound ridiculous, but after installing Debian 5 (from CD 1) in my laptop, ASUS UL80VT, it fails to detect the Ethernet device. The device is "Atheros AR8131 PCI-E Ethernet Controller". I guess the problem comes with the old kernel of version 5. I was intending to compile the latest kernel anyway. But the problem is is there any heads up i need to download the kernel and trying to compile it? Is there anyone who uses Debian on UL80VT. If there is, does it works okay?In short I want to compile the latest kernel, hoping it will fix the Ethernet device. There are installers available with the latest kernel. But I want to do it on my own.
I just built my first pc, installed ubuntu 9.10 and tried connecting to the net through my ethernet cable and all that happens is it says cannot find server. Do I need to install network settings & if so what & where,or should it automatically detect them? As this is my first build I am a novice but am willing to listen & learn.
I installed Ubuntu 11.04 on my girlfriends laptop a couple days ago...had the Ethernet cable plugged in to do the install...loaded fine the first time after the install. Unplugged the Ethernet cable when I had the wireless network set up and it froze. Restarted and it wouldn't even load the desktop. Didn't make the connection at first...thought there was something wrong with Unity. After about a day and a half worth of searching Unity problems/desktop freezing and solutions, I stumbled across this:
Do you have a Broadcom card? You have probably noticed the desktop works when you run Ethernet but it locks up when your wireless connection is active.
You'll need to upgrade the kernel to fix the issue. 184.108.40.206 did it for me.
11.04 just runs fine now.
This solution was to update the kernel, but that didn't work for me. Now I'm stuck.
After to install Debian Sid, i can't to connect to my network. When i launch lsmod, ath9k is present so the module is enabled.I don't use network-manager-gnome, wicd and other, i modify myself /etc/network/interface. But even with this configuration, the wifi does not works.
I bought a laptop : Samsung R580 and when i want to install Debian Squeeze with NetInstall, it's impossible because ma Ethernet Card isn't recognized.These are the caracteristics of my card :PCI ID : 11ab4381Supporté : YesFabricant : Marvell Technology Group Ltd.Matériel : 88E8059 PCI-E Gigabit Ethernet ControllerPilote : sky2The driver is not in the kernel 2.6.32 and i must to wait a new kernel version in Debian?
have problems with my Intel 82566MM gigabit NIC. Using the default e1000e module. The module finds and load the nic but it doesn't recognize that i have plugged in cable or not. It always says "cable not plugged in". Using xubuntu now but same problem with regular ubuntu not that i think it matters. I tried downloading and installing e1000 from Intel but it doesn't seem to find the nic at all.
Any suggestions how to work this out? My googling says others too have had problems with this card. Couldn't find any real working solution though. Its Lenovo Thinkpad T61 laptop. Using 10.10 Maverick btw.
write a C program to detect whether the Ethernet cable is plugged or unplugged. I found out by using a command "nm-tool" in Linux terminal will show me whether a Ethernet cable is plugged or not. If Ethernet cable is plugged, in the device part of eth0, the Hardware Link of Wired Settings will indicate a "yes" and "no" if no Ethernet cable. Hence, in my previous code, I use one function called popen to read the state as shown below:
However, now my project wish to not use the NetworkManager (where the "nm-tool" command comes from). And this gives me trouble to detect the Ethernet cable. So is there any other method for me to detect the Ethernet cable in C programming?