Networking :: How To Stop / Start Network In Ubuntu 10.04
Jul 18, 2010
This should not be this difficult. I have a plain install of Ubuntu 10.04 64 bit with a wired network card. It picks up a private IP address from my router. It has an app called NetworkManager Applet 0.8 in the notification area of the panel. If I right click on this app and select "Disconnect" it does. ifconfig shows that the IP address is gone. I can then right click on the app again and "Auto eht0 and I am connected again and ifconfig shows the IP address restored. So far, so good. I was testing a crossover cable to see how fast I could transfer files to/from my server - both machines have gigabit cards but my switch is only 100 Mb.
I unplugged the PC from the router, hooked up the crossover cable to the server and found that I had no connectivity - the IP address was gone. Not wanting to mess with hard configuring IP addresses for the moment I connected the PC back to the router. When I unplugged the cable the app showed the networking disconnected icon. I tried right clicking on the app and unchecking [ ] Enable Networking then rechecking it. This works on my netbook running Ubuntu 9.04. No luck on 10.04 (and I had not tried the Auto eht0 as described above - did not discover that until later). So then I tried to fix it from the command line.
ken@taylor12:~$ sudo /etc/init.d/networking start
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service networking start
Since the script you are attempting to invoke has been converted to an Upstart job, you may also use the start(8) utility, e.g.
start networking
networking stop/waiting.
So I then tried
ken@taylor12:~$ sudo service networking start
networking stop/waiting
but still no connectivity. A reboot got things back in order.
Then I did a little more testing.
ken@taylor12:~$ sudo /etc/init.d/networking stop
* Deconfiguring network interfaces...
Ignoring unknown interface eth0=eth0.
and I am still connected.
Editing Connections within the NetworkManager Applet shows "Auto eth0 - last used never" even though I have used it. [Edit] Auto eth0 via the app appears to show information about my wired NIC.
ifconfig shows eht0 as active
ken@taylor12:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:25:64:e8:18:2c
inet addr:192.168.0.112 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::225:64ff:fee8:182c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2234 errors:0 dropped:0 overruns:0 frame:0
TX packets:2407 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
bytes:1824427 (1.8 MB) TX bytes:404086 (404.0 KB)
Interrupt:17
View 2 Replies
ADVERTISEMENT
Jan 29, 2011
I have a Broadcom Corporation NetXtreme BCM5721 network card on my server at work.Everything works fine for a few weeks, then randomly the network connection on the server will stop working. After it stops working, I will try to reconnect with the network manager, it shows a wired connection available, it shows the "connection in progress"animation, then the "connection disabled" icon.
I uninstalled the network manager and used manual configuration, but do you think the network manager was the issue? I can't have the server disconnecting randomly every few weeks with no way to know what the real problem is. Was there an issue with the network manager with 10.04?
View 4 Replies
View Related
Feb 9, 2011
I have installed squid 2.7 in my red hat Linux box.I need some guidance regarding to start and stop squid service. Normally when squid configuration file is n /etc/squid/squid.conf and we want to start the service we use # service squid startand to stop the service we use# service squid stopNow squid is inCode:# /usr/local/squid/etc/squid.confhere the default # service squid start and # service squid stop does not work.
View 6 Replies
View Related
Feb 22, 2010
After much work finding the bits and bobs to get my PCI controller based modem working in Ubuntu 9.10, I need a better way to start and stop it. Now it dials up when I reboot whether I want to be online or not. I can stop this, but it won't dial up again without a reboot.
I would love a way to push a button to get it to connect and disconnect, and blinking lights (like the green computer screens in WinXP) to tell me when I am communicating. Even better would be a way to set up multiple connections, again like in XP so I could use a variety of numbers and/or user names depending on where I am.
View 1 Replies
View Related
Mar 13, 2009
I am trying to give access to ONE single user to start and shutdown tomcat server. The problem being, when I enter syntax: username ALL= /etc/init.d/tomcat5, /usr/local/tomcat/webapps, PASSWD:ALL This gives the user access to start and stop tomcat but also gives user access to start and stop other services within /etc/init.d - such as httpd etc... What is the proper way to give user access to start and stop service, and limiting that power to only one service....
View 2 Replies
View Related
Feb 3, 2010
My network interaces stop working after 5-10 minutes of operation. I have 2 network cards, one static IP and the other dhcp. Sometimes I can ping my router, other times I can't.
View 9 Replies
View Related
Apr 11, 2011
I am running openVPN to secure my wireless network traffic right now. Everything works great except every once in a while, my Internet connection will drop out for about a minute or so. Ubuntu very nicely tries to reconnect, and most of the time successfully does. The issue is that if I don't catch it every time this happens, I am now running without my VPN.
I want to know if there is any way to DISABLE auto-reconnect to a wireless network if connection is lost or signal fades.
Im running ubuntu 10.10 by the way
View 3 Replies
View Related
Jul 10, 2011
I would like to stop network manager from starting up on boot. I have tried moving
Code:
/etc/init.d/network-manager stop
to rc.local and it did nothing but boot me into the CLI
I have also tried to put
Code:
sudo service network-manager stop and that did nothing also.
After I get network manager to stop on boot up. How do I make it so it will not auto connect to networks? My computer keeps on joining a different network on boot up. And I don't like this as some times I go to my banks website and I am on there network with out realizing it (because of the auto connect) Is there a way to stop this also?
View 6 Replies
View Related
Dec 10, 2009
I have 3 script BASH. I want start this script when the system start,stop and reeboot.
View 4 Replies
View Related
Nov 30, 2009
I have recently installed Centos 5.4 on a server with 3 network cards. I am trying to enable IP forwarding which has been successful by executing the following command:
echo 1 > /proc/sys/net/ipv4/ip_forward
I tried to make this permanent by adding net.ipv4.conf.default.forwarding=1 to the /etc/sysctl.conf file.
When I restart the network service I get the following code...
View 2 Replies
View Related
Feb 18, 2010
I've got a Kubuntu Karmic install that I ssh into on a frequent basis. It stays running 24/7, but sometimes the power goes out, etc. and it reboots.
The thing is, when it reboots, before I log in to KDE, there is no network connection. It is only after I log into KDE that nm-applet (I use the GNOME one because it works better than KNetworkManager) makes the connection and gets an IP address. And it does so completely automatically...no customizations by me. If I try to connect manually (sudo ifup eth0) before log in, I don't get an IP address.
How can I get it to connect to the network and get an IP address at boot, before I touch it?
View 7 Replies
View Related
Apr 30, 2010
I have 10.04 installed on my HP MiniNote Netbook. If I plug it into the the ethernet directly, all is well, but if I only use the wireless, i get no DNS servers. And one of my wireless networks is on the same router as the wired connection. Also, wireless works just perfectly on my MacBook Air. So, I do not think it is the router. So why am I not getting DNS addresses? How would I set them manually? I can't figure out how to start network manager.
View 2 Replies
View Related
May 15, 2011
I am running Ubuntu 10.10 on a brand new laptop, an install done by the company I ordered the notebook from. I have some limited experience with Linux and Ubuntu especially.I know that I'm not connected to a wired network. I haven't so much as plugged in a network cable, but the graphic appears erratically on the right hand side of the screen like I am connecting, then disconnecting. I've tried disabling the eth0 connection altogether, but no dice. I can't figure out how to make it stop.
View 7 Replies
View Related
Apr 4, 2010
All connections on my computer start loading and then hang: it happens when running apt-get update (a few repositories load successfully and then it hangs at a random one) and when loading web pages with the browser (it says "Connecting...", then "Waiting for....", sometimes some part of the page loads, and then it hangs).
This happens both with my wired and my wireless connection. It does not happen on Windows on the same computer.
Any idea on what it might be?
View 6 Replies
View Related
Sep 22, 2010
How can I start dhcpd after Network manager has set up a new connected device. The reason being that dhcpd will not start when there is nothing connected to the network interface. Therefore I would like dhcpd to start after a new device is connected. Now I have found references if ifup-post but this does not relate to NM, is this correct?
View 5 Replies
View Related
Mar 5, 2011
I have recently installed CentOS onto an old machine to get it up and running as a basic web/mail server. Originally the Network Interface worked ok, however I have been editing /etc/sysconfig/network-scripts/ifcfg-eth0 to try and set the IP address to be static.Now when I run the 'service network restart' command it won't bring the eth0 interface up and comes up with the following errors;
ifcfg-eth0 Line 3 DEVICE: command not found
missing config file ifcfg-ifcfg-eth0
It doesn't seem to like any of the command words, even though most of these were in the original file that worked and the ones I added to do static I have commented out.
View 4 Replies
View Related
May 30, 2010
When copying files to USB drives, the file progress bar moves it 'bursts', sometimes doing nothing for long periods, then moving forward quickly and stopping again.It's almost like it is showing the transfer to the cache, not the transfer to the actual drive.
View 5 Replies
View Related
Mar 10, 2010
Host - ubuntu 9.10 64bit
Virtualizer - KVM
I need to stop KVM starting at boot. I added following 2 lines at the bottom of /etc/modprobe.d/blacklist.conf
Code: blacklist kvm
blacklist kvm-amd Reboot PC
It doesn't work.
$ lsmod | grep kvm Code: kvm_amd 41556 0
kvm 190648 1 kvm_amd
What further command I have to run in order to activate the new blacklist.conf ?
View 2 Replies
View Related
Aug 12, 2011
I'm putting a opensuse 11.4 64 bit KDE install on an HP -G62 laptop.
I also use an NFS network.
I want to use a wireless network.
The problem is that network manager keeps insisting on asking kwallet for permission to start up the network. As a consequence boot hangs because the nfs network can't find the files in /etc/fstab because the network can't start because you can't see kwallet until it finishes booting.
I have options set in networkmanager to store the password in connection secrets in secure storage, and it insists on asking kwallet!
I don't want to get rid of kwallet because it's very useful otherwise - just not at boot time?
How do I modify the behaviour shown here?
View 1 Replies
View Related
Feb 19, 2011
I have somehow messed up my network (onboard) card in the process of configuring network settings. how I managed to do so is that I did not use ifdown before making changes to my "/etc/network/interfaces" file. Also I think it might be relevant to mention that the sshd was running -although with no active connections at that time- since I have the service installed on my 10.04 Ubuntu Server (x64). So step by step what I did to end up with no network connection:
1) sudo cp /etc/network/interfaces ~/myfiles/interfaces.original
2) chmod 444 interfaces.original
3) sudo nano /etc/network/interfaces and then applied my network settings (IP, netmask, etc.). The syntax and configuration of my "interfaces" file is without flaw since it was simple, typical and was assigning my up to then DHCP assigned IP of 192.168.2.3 to static.
At about that point and although "ifconfig" showed the changes had been applied as planned the network card stopped working. I could no longer ping anyone but myself and the leds both on my network adapter and on my switch were turned off. Since my configuration also has a Windows 7 installation I rebooted to Windows in hope of troubleshooting through device manager but I got an error code 10 which means that the adapter could not start. Did I fry my network adapter for good and for all or I still have a chance of repairing it?
PS: After a closer look I saw that the NIC's LEDs indicate that the device cannot start. I am considering to reboot my MB as a last resort since the NIC is an onboard device and changing BIOS settings has done nothing to restore it.
View 1 Replies
View Related
Sep 6, 2009
I'm a newbie on Linux and trying to find my feet so please be kind.I have installed vmware on my XP laptop and have installed fedora core 9. Network setting on the VMware is set to bridged. My interface eth0 which is using the wireless does not start on boot. I have to run ifup ifcfg-eth0.The file ifcfg-eth0 had onboot=yes and NM=no, so i changed it so that the NM=yes.However this does not resolve the problem at all. I have put the file back to its original configuration and I have disabled network manager and have had no luck
View 2 Replies
View Related
Sep 27, 2009
Where I can get my wireless network running by typing the following lines of code:
Code:
But I have to do this every time I boot the machine. Ideally, I want the machine to do this on it's own at startup.
Also, I'm totally new to linux and I don't really understand what the 1st line of code is doing? The 2nd is just to check that the 1st line worked, and the 3rd does the settings for the wireless network I'm connecting to.
If you want to get into why I have to do this every time, then look at my original thread. But I started this new thread just to find out how I can get these lines of code done automatically at startup.
View 4 Replies
View Related
Jun 27, 2010
I thought it was in the System>administration menu somewhere, but I just can't see it. What is it called, and where do I find it please?
View 9 Replies
View Related
Jul 25, 2010
i installed linux ubuntu 10.04 successfully.it only works for a few minutes then the mouse and the keyboard start to stop working, they completely freeze then i have to restart the computer.
View 1 Replies
View Related
Mar 4, 2009
I'm trying to start/stop Informix along with my linux os start/stop. For this I've made a test script in order to test this but I'm facing a problem. The service is starting along with the system but when I'm stopping (rebooting) the system it doesn't run the "K10test" script.
After sistem reboot you can see that the /etc/init.d/test stop is not executed.
View 11 Replies
View Related
Oct 28, 2009
i've made a big update of almost 300Mb.I'had a working DNS server.Now, when i boot the box, named works and it resolves all the clients.If i make any change (enter a new client for example) and of course i restart named (service named restart), named stop but does not start again !!!In order to get a working named, i 'm obliged to reboot the box?
View 6 Replies
View Related
Nov 5, 2009
How do I configure a network bridge to start on boot?
I have two network interfaces eth0 and eth1.
Here is my current network script configuration:
Code:
#/etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
TYPE=Ethernet
HWADDR=00:10:18:4e:5e:a7
[Code]....
The bridge will come up if I restart the network service after boot....but it won't automatically come up when the computer starts.
View 4 Replies
View Related
Apr 30, 2010
I upgraded from Kubuntu 9.10 to 10.04. 32 bit. The install had not finished as it barked at tripwire config. I have had to stop it and continue from command prompt. More or less the install went OK. After the install, mysql 5.1 does not want to start or stop. Commands
/etc/init.d/mysql stop ( or 'stop mysql' , or service mysql stop' )
/etc/init.d/mysql start
Do not finish - do not return to command prompt. No log messages insyslog or mysql logs. Say, I do 'service mysql start', the command does not return, I click Ctrl+C, then repeat the command. This displays :
'start: Job is already running: mysql'.
Of course mysql is not running. I've tried to remove and reinstall the packages. No result. There is 'stop mysql' command in one of install scripts that hangs.
View 9 Replies
View Related
Aug 25, 2010
With the advent of Ubuntu 10.04 Lucid Lynx LTS People are migrating servers to the latest LTS. One fundamental thing that has changed is the move to Upstart. In the old days to stop multidaemon service such as Samba, one would simply type /etc/init.d/samba stop and to disable it from starting on boot one would simply type update-rcd samba disable.
Now its the year 2010 and in 10.04 it seems on has to edit a bunch of files, etc. Is there not an easy tool to correctly and properly disable services on startup in 10.04 consistently? in Redhat/Mandrake 10 years ago it was simply
Code:
service smb off
In Ubuntu 10.04 its
1) edit /etc/init/smbd.conf and modify the line that says
Code:
stop on runlevel [!2345]
and change it to
[Code]...
And one has to remember all these changes when the get ready to enable the samba service in the future? This can't be right.I know I must be missing something here. or maybe overlooked something in the upstart documentation.Which seems quite sparse by the way. So the question remains. How does one simply disable a multidaemon service starting on boot such as samba. Any tool to do this ? Is the above the correct method recommended by Canonical to disable services? and enable them?
View 2 Replies
View Related
Oct 23, 2010
I need to stop a program when notebook goes on battery and start it when using AC. I'm using 10.10 netbook edition.
View 2 Replies
View Related