Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm running wheezy and I don't want to install network-manager.

I have a problem with network interfaces. When I restart the interfaces I cannot use any connection anymore.

I cannot reach internet or same subnet ip addresses.

here the ifconfig, route,ping and dns command before the restarting

eth0      Link encap:Ethernet  HWaddr 90:59:af:51:17:c3
          inet addr:  Bcast:  Mask:
          inet6 addr: fe80::9259:afff:fe51:17c3/64 Scope:Link
          RX packets:33873 errors:0 dropped:479 overruns:0 frame:0
          TX packets:952 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:4125488 (3.9 MiB)  TX bytes:113565 (110.9 KiB)

route -n

 Destination     Gateway         Genmask         Flags Metric Ref    Use Iface         UG    0      0        0 eth0   U     0      0        0 eth0

ping google.com

PING google.com ( 56(84) bytes of data.
64 bytes from fra07s28-in-f4.1e100.net ( icmp_req=1 ttl=55 time=30.1 ms
64 bytes from fra07s28-in-f4.1e100.net ( icmp_req=2 ttl=55 time=29.8 ms



After I run service networking restart or /etc/init.d/networking restart or stop and then start again the service I get Destination Host Unreachable. I must reboot the system to get it work.

Any idea why this happens?

here the interfaces file content

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
    metric 0
share|improve this question
Please append the contents of /etc/network/interfaces to your question. – Martin von Wittich Sep 20 '13 at 9:57
interfaces file content added – Gappa Sep 20 '13 at 10:05
Hmm, /etc/network/interfaces seems to be OK (although the fields network and metric are probably superfluous). Can you post the output of ifconfig, route -n and cat /etc/resolv.conf after you have executed /etc/init.d/networking restart? – Martin von Wittich Sep 20 '13 at 11:06
after restarting the network I get exactly the same outputs – Gappa Sep 20 '13 at 12:34
no one has the same problem? – Gappa Sep 26 '13 at 15:10

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.