Ubuntu Networking :: Ethtool Is Reseting Wol Setting Before Suspendind?
Feb 28, 2011
So I have tried looking on the web for a solution to this, but I can't find anything. I have only found 2 posts with the same problem and both went unanswered. So I want to set my ubuntu machine to WOL with both Magic Packet and Unicast (the g and u functions in ethtool wol) wol supported: pumbg (thus g and u are both supported) I use "sudo ethtool -s eth0 wol ug" and check to see if it changed, and it does
sudo ethtool eth0
After I suspend though, only magic packet will wake it up! I go back in and check with "sudo ethtool eth0" and low and behold, it is back to only being "wol g", which is the default. For some reason it must bump back to default before going into suspend. NOTE, this is with suspend, not even a reboot or a shutdown! Even suspend will reset it to default. I have worked on adding a script to /etc/init.d, adding lines to /etc/rc.local, and adding lines to /etc/networking/interfaces, all with no change.
Any idea what is going on and why it is resetting wol back to default?? I know I should be happy at LEAST it does magic packet, but I want to know why it wont change.
I am trying to set my gigabit NIC to 1000 MB setting using ethtool. The only way I can get it to register that way is to turn off auto negotiation and that just kills my signal. Below is the output of the current settings and the commands I have attempted with zero success.
I'm having problems enabling Wake-on-LAN using ethtool.I'm using ethtool 5.1 on Fedora 8. Ethtool reports that the card supports u,m,b,g for WOL modes. I can run "ethtool -s eth0 wol g", which completes without errors.If I run ethtool again, the Wake-on setting is changed to whatever I just set it to. However, when I actually shutdown the machine, the lights on the NIC don't stay on as they normally should, and any attempts to wake the machine have no effect. The machine dual-boot Windows XP, and I have enabled WOL in the driver there. When I shutdown the machine from XP, everything works just fine. The NIC lights remain on and the machine wakes up properly. So...I think I have my BIOS configured properly, and my WOL utility is working properly.
Hardware Info: ------------------------------------------------------------ Adapter: Intel Pro/1000 GT PCI (Vendor ID: 8086, Device ID: 107C Motherboard: Asus P5Q Pro
ethtool Output: ------------------------------------------------------------ Settings for eth0: Supported ports: [ TP ] Supported link modes: 10baseT/Half 10baseT/Full
dmesg Output: ------------------------------------------------------------ e1000: eth0: e1000_probe: Intel(R) PRO/1000 Network Connection ADDRCONF(NETDEV_UP): eth0: link is not ready e1000: eth0: e1000_watchdog: NIC Link is Up 100 Mbps Full Duplex, Flow Control: RX/TX
Im trying to remote power on my debian machine with gnome with the wake on lan function. I enabled it on my mainboard and was configuring my ethtool. There i see:
root@lappy:~# ethtool eth0 Settings for eth0: Supports Wake-on: g Wake-on: d Link detected: yes
and after this command ethtool -s eth0 wol g i get this:
root@lappy:~# ethtool eth0 Settings for eth0: Supports Wake-on: g Wake-on: g Link detected: yes
So i enabled it on software and hardware. Now im trying to sent the magic packets with a windows tool "wake on lan" I see that the package has been sent but the pc wont turn on. So when i check the ethtool settings again i see that it turned to:
I have two onboard gigabit connections and a PCI-E gigabit card, none of which seem to want to run beyond 100M. Everytime I issue the command to change speed to 1000M, it does nothing. I have tried modifying the interfaces file to make sure the command line for ethtool gets done automatically, but still no luck.
Below is the output from the use of ethtool to change speed. Since I am having performance issues with my local area networking (e.g. Samba transferring slower than the internet), I have been trying to figure out how to debug my network performance, and this was an obvious thing that stood out. The router and card are gigabit, yet don't use their full transfer rates.
I just started learning network on linux platform. Today I came across two commands ethtool and miitool. Both of them seems to do similar kind of jobs. Now I am confused what is the difference between them.
I am running a test to determine when packet drops occur. I'm using a Spirent TestCenter through a switch (necessary to aggregate Ethernet traffic from 5 ports to one optical link) to a server using a Myricom card.While running my test, if the input rate is below a certain value, ethtool does not report any drop (except dropped_multicast_filtered which is incrementing at a very slow rate). However, tcpdump reports X number of packets "dropped by kernel". Then if I increase the input rate, ethtool reports drops but "ifconfig eth2" does not. In fact, ifconfig doesn't seem to report any packet drops at all. Do they all measure packet drops at different "levels", i.e. ethtool at the NIC level, tcpdump at the kernel level etc?nd am I right to say that in the journey of an incoming packet, the NIC level is the "so-called" first level, then the kernel, then the user application? So any packet drop is likely to happen first at the NIC, then the kernel, then the user application? So if there is no packet drop at the NIC, but packet drop at the kernel, then the bottleneck is not at the NIC?
I have a CentOS 5.5 machine (hosted at a remote hosting company) where "ethtool" reports that the eth0 device is currently in 10 Mbps mode, but the output indicates that it supports 100 Mbps. But if I try using ethtool to switch the device into 100 Mbps mode, it doesn't work; after running the command to switch it to 100 Mbps, ethtool reports the speed is still 10 Mbps:
[root@sls-eb5p17 network-scripts]# ethtool eth0 Settings for eth0: Supported ports: [ TP MII ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full
The man page at [URL]..ethtool seems to suggest that this should have worked. Any reason why the reported speed of the device didn't change? Changing other settings doesn't appear to work either, e.g. if I specify "duplex half" instead of "speed 100", eth0 still reports "Duplex: Full".
I have a question regarding packet drops. I am running a test to determine when packet drops occur. I'm using a Spirent TestCenter through a switch (necessary to aggregate Ethernet traffic from 5 ports to one optical link) to a server using a Myricom card. While running my test, if the input rate is below a certain value, ethtool does not report any drop (except dropped_multicast_filtered which is incrementing at a very slow rate). However, tcpdump reports X number of packets "dropped by kernel". Then if I increase the input rate, ethtool reports drops but "ifconfig eth2" does not.
In fact, ifconfig doesn't seem to report any packet drops at all. Do they all measure packet drops at different "levels", i.e. ethtool at the NIC level, tcpdump at the kernel level etc? And am I right to say that in the journey of an incoming packet, the NIC level is the "so-called" first level, then the kernel, then the user application? So any packet drop is likely to happen first at the NIC, then the kernel, then the user application? So if there is no packet drop at the NIC, but packet drop at the kernel, then the bottleneck is not at the NIC?
I have a little issue here. Im running Ubuntu 10.10 .And sometimes when I boot my screen looks like from 1990. So I chose System->Preference->Appearance and chose the Ambience theme. All the bars and panels looked OK but when I try to search through the filesystem all the windows look like this (picture included).
I found on the Internet how to reset the whole GNOME code...
I have installed Ubuntu 10.10 on my external hard disk but now when am booting it on another machine am not able to do as grub wont find new machine as the original one.I want to know if there is any command which i can run during boot only on os selection page which would rebuilt grub and the menu list so that i can use my external hdd more friendly way.
I have fedora 12 installed in VMWare ESX on a Dell Optiplex machine with a Intel GBit lan.While transfering from fedora's vsftpd to my workstation trough a sitecom gbit switch i get a real bad performance, mostly not higher then 8mb/s. (btw on the same ESX i have Windows 2008 from which i get around 60mb/s)I have tried to set the eth0 to 1000Mb/s full duplex using ethtools but this fails (ethtool -s eth0 speed 1000 duplex full autoneg off). I keep recieving the following error:
Code: Cannot get current device settings: Operation not supported not setting speed
I am fighting with the WOL settings of my Ubuntu box at the moment. The idea is to have an HTTP/SVN server to sleep while it's unused and wake up when it's accessed. So far, wake-on-LAN works and is activated on startup:
As you can see, I also set the wol p flag ('wake on physical activity'). My assumption was that I could convince the device to wake up not only on magic packets, but on any network access. This, however, seems to be wrong.
Somebody gave me an old Celeron 333MHz system w/ 96 MB RAM and I thought I would set it up as a little torrent server. So I installed Ubuntu server on it, but it does not see the NIC. I know the NIC functions because the person was using it hooked up to a network until a few days ago. Unfortunately, it's an ISA-based NIC and not PCI and my understanding is that I have to pass it IRQ and DMA settings to get it to work. Unfortunately, I wiped the windows 98 partition without thinking of snagging those settings. First of all, lspci does not show the hardware AT ALL. Here's the output I get:
I want to do is make an old computer of mine that I use for web development be accessible to anyone within my LAN only.
so in a nutshell i don't want the world wide web to be able to access this server since I use it for development work only and i do most of my actual development work on another system since most of the applications i use requires windows.
I know you can block incoming traffic to all IPs or add individual IPs to allow in, but how can i make the firewall only accept incoming traffic from those within my LAN network?
if you wish to know what I'm using to configure my firewall, I'm using firestarter on this server
I want to login to my university server, in windows i used Putty and rdp.the setting in putty (download to my ubuntu and runnig) SSH-> tunnels
destination: 2.bgu.ac.il:3389 source port:7000 on local session SSH type 1.bgu.ac.il port:22
so far so good i logged in and i can see the files on the 1.bgu the next step is to open RDP and ask him to login localhost:7000Not Working, i use Gnome-RDP and Remmina Remote Desktop Client no luck on both.
I was trying to set up my computer as a wireless AP/router. I am using a D-Link wireless dongle for the wireless network. I have ensured it can be put in the master mode. I followed the instructions on [url] and steps seemed to have been completed without a problem.
However, the wireless signal is not being broadcasted. I cannot see it on my phone or my laptop. The only difference I see is that my Ubuntu installation is the desktop version instead of the server edition. However, I don't think that should be the issue!
The ip addr command produces
I suspect this down state to be an issue but the command ip link set wlan1 up is not doing anything
I'm not the greatest with linux in general, I mean I know my way around it okay but theres still a ton to learn, and 11.04 is the first version to work on my custom PC without messing up after I update it so I'm left with natty. Anyway I bought my PC with an Asus U8B-N13 Wireless adapter. The disc it came with has the program to install the drivers in Windows, Mac, and Linux, but the Linux drivers need to be compile and I'm yet to have luck doing so. I've tried to somewhat follow an older guide here: [URL].. but I made it as far as extracting the .tgz, then running the make command and got a couple errors. Here is that attempt:
Code: dom@NZXT:~$ cd Desktop dom@NZXT:~/Desktop$ tar -xvzf DPO_RT3070_LinuxSTA_V18.104.22.168_20100422.tgz DPO_RT3070_LinuxSTA_V22.214.171.124_20100422/ DPO_RT3070_LinuxSTA_V126.96.36.199_20100422/iwpriv_usage.txt DPO_RT3070_LinuxSTA_V188.8.131.52_20100422/LICENSE ralink-firmware.txt DPO_RT3070_LinuxSTA_V184.108.40.206_20100422/Makefile
how to set up a static IP from Ubuntu... Secondly, on some of the tutorials I read, there was something about changing the DNS server IP adresses. I do know what a DNS server is (Courtesy of www.howstuffworks.com ) but I don't understand why the DNS servers must be changed simply because I chose to use a static IP address.. (My PC connects to the internet via a router.. )
I have 4 machines 2 running Ubuntu 9.10, and one running windowsXP, and the forth will be Windows XP,only because some of my printer functions I can only get to work with windows, previous to upgrading to Ubuntu 9.10, I had everything working fine, my windows could see my Ubuntu's and my Ubuntu could see my windows, at that tine only had 1 ubuntu, now windows cannot see ubuntu and ubuntu cannot see ubuntu, my plan is to switch to mythbuntu , when I get things working, because I plan on adding 3 more machines, I have Gadmin-Samba installed on my ubuntu machines, do I need anything else. after upgrading to ubuntu 9.10, I had a system crash and had to start all over, this is just a home network with only one user.
I have a problem with ssh, in that it's extremely slow when using putty to connect from Windows. A bit of googling suggested that I should use -u0 as a startup option since there's no DNS entry for this machine.
So, at the risk of sounding stupid, how do I put this options in to the /etc/init.d/ssh file? I tried adding it in the the "set" part but got an error, tried adding another "set" line and got an error and tried adding it to the first command there, but also got an error! Where does it go?
I'm trying Ubuntu for the first time; it's actually the first time I've messed with Linux at all-- and, well, it's kind of intimidating. One of my hobbies is playing with dead computers, and long story short, I have Ubuntu installed to a partition on an external drive connected to an older Dell desktop with no internal storage to call its own. The only network adapter I have to spare right now is the rather wimpy USB one that came with said desktop. I have the CD with the drivers to it, but I think the Linux drivers on it are for a different distribution. Am I going to need to scrounge up another network card or adapter, or am I going to have to start sheepishly asking ridiculous questions regarding basic operation of the command console?
I've been trying to set up a music server and running into some difficulty.
I want to be able to stream music and video to my network and over the internet.
From what I've read so far ampache is what I would like to use but I've yet to find a user friendly guide on how to set it up. I've never set up a server before so all of the guides and documentation have just confused the heck out of me.
I just installed Ubuntu 10.04 and am very excited about using it for the first time. I am very new to computers and stuff though so I don't have much of a clue as to what I'm doing. Although it installed fine, for my wireless connection it says "device not ready". What does this mean and how do I connect to the internet?