LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Network is running even if network service is stopped (https://www.linuxquestions.org/questions/linux-newbie-8/network-is-running-even-if-network-service-is-stopped-794117/)

achtani_jeetu 03-08-2010 11:50 PM

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

MS3FGX 03-09-2010 01:07 AM

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.

evo2 03-09-2010 01:20 AM

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.

achtani_jeetu 03-09-2010 11:32 PM

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


All times are GMT -5. The time now is 05:22 PM.