Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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:192.168.1.30  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::9259:afff:fe51:17c3/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          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)
          Interrupt:56

route -n

 Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
 0.0.0.0         192.168.1.10    0.0.0.0         UG    0      0        0 eth0
 192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0

ping google.com

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

DNS

nameserver 8.8.8.8
nameserver 8.8.4.4

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
    address 192.168.1.30
    netmask 255.255.255.0
    network 192.168.1.0
    dns-nameservers 8.8.8.8 8.8.4.4
    gateway 192.168.1.10
    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

 
discard

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

Browse other questions tagged or ask your own question.