Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-08-2010, 11:50 PM   #1
LQ Newbie
Registered: Feb 2010
Posts: 13

Rep: Reputation: 0
Network is running even if network service is stopped

hi to all
I just want to know one thing. I had stop the network service in
ubuntu, still i can able to ping u think might be
things to consider. these are the outputs see.

root@jeetendra-desktop:~# /etc/init.d/networking stop
* Deconfiguring network
interfaces... [ OK ]
root@jeetendra-desktop:~# ping
PING ( 56(84) bytes of data.
64 bytes from ( icmp_seq=1
ttl=243 time=147 ms
64 bytes from ( icmp_seq=2
ttl=242 time=131 ms
--- ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 131.765/139.424/147.083/7.659 ms
root@jeetendra-desktop:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref
Use Iface U 1 0
0 eth0 U 1000 0
0 eth0 UG 0 0
0 eth0

Responses are highly appreciated.
Old 03-09-2010, 01:07 AM   #2
LQ Guru
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
What are you looking to do? If you just want to turn off the network interfaces you can simply do:

ifconfig interface down
Which will bring that network interface down and prevent it from transmitting or receiving anything.
Old 03-09-2010, 01:20 AM   #3
LQ Guru
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
All the below, assumes you are using a standard Debian style networking setup: ie no network manager or wicd. If you are using these sort of tools, the standard Debian tools will probably not work and you should either use your network manager or wicd frontend or, as suggested by ms3fgx, use a low level tool like ifconfig.

Can you please post you /etc/network/interfaces file and the output of
ifconfig -a
just before and after calling "/etc/init.d/networking stop".

Also, if you just want to bring down a specific interface (eg eth0) on a system using a Debian style networking setup, you can bring that interface down with:
ifdown eth0
This will ensure that any hooks defined for that interface will be run.

Old 03-09-2010, 11:32 PM   #4
LQ Newbie
Registered: Feb 2010
Posts: 13

Original Poster
Rep: Reputation: 0
found the solution

network-manger is the service which decides when the connection is active or not. when i stop this service i am unable to access net.
but thank u so much for ur support
i appreciate that


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
Network Manager service vs Network service jeromeNP7 Fedora 2 07-18-2009 03:28 PM
Network connection stopped working... network icon at bottom right corner dissapered? MFA Linux - Newbie 6 03-29-2009 06:00 AM
what is the difference between service network reload and service network restart ? markraem Linux - Networking 3 11-21-2007 03:08 PM
In FC6 network interface doesn't come up if 'service network restart' command is run rajat Linux - Networking 2 05-02-2007 11:53 PM
Help please.. Network Servers stopped working after strarting Telnet service deanbrown3d Linux - Networking 1 06-16-2004 10:08 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:51 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration