LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 03-09-2010, 12:50 AM   #1
achtani_jeetu
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 google.com.what 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 google.com
PING google.com (64.233.189.103) 56(84) bytes of data.
64 bytes from hkg01s01-in-f103.1e100.net (64.233.189.103): icmp_seq=1
ttl=243 time=147 ms
64 bytes from hkg01s01-in-f103.1e100.net (64.233.189.103): icmp_seq=2
ttl=242 time=131 ms
^C
--- google.com 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
192.168.1.0 0.0.0.0 255.255.255.0 U 1 0
0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0
0 eth0
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0
0 eth0
root@jeetendra-desktop:~#

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

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

Code:
ifconfig interface down
Which will bring that network interface down and prevent it from transmitting or receiving anything.
 
Old 03-09-2010, 02:20 AM   #3
evo2
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
Code:
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:
Code:
ifdown eth0
This will ensure that any hooks defined for that interface will be run.

Evo2.
 
Old 03-10-2010, 12:32 AM   #4
achtani_jeetu
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
 
  


Reply


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


All times are GMT -5. The time now is 10:40 PM.

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