Since some days ago, I'm suffering a traumatic problem with Debian Wheezy.

Every time I boot the server, the only up interface is loopback. I have configured a static IP at /etc/network/interfaces

ifconfig -a shows properly the ethernet interface (eth2 in this case). When I do ifconfig eth2 up, it ups the interface as usual but without IP. I have to do ifconfig eth2 x.x.x.x to get an IP.

ifconfig after doing ifconfig eth2 up:

eth2      Link encap:Ethernet  HWaddr 00:25:22:0d:dd:b1  
          inet6 addr: fe80::225:22ff:fe0d:ddb1/64 Scope:Link
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:398 (398.0 B)
          Interrupt:42 Base address:0x2000 

lo        Link encap:Local Loopback  
          inet addr:  Mask:
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:36 errors:0 dropped:0 overruns:0 frame:0
          TX packets:36 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:17653 (17.2 KiB)  TX bytes:17653 (17.2 KiB)

After that, I still have no acces to the internet. When I do a ping to Google, I get "ping: unknown host google.com"

Is not a problem from the router because I have other computers at this network working and I can acces to the computer with the problem through ssh too (after giving him an IP with ifconfig)

I tried a lot of things and a lot of people tried to help me, but I still have no idea to solve this issue.

I have to say that I think (and this is a personal opinion of a non-expert) the problem is at the start because the first problem is the lack of the interface up and it's IP.

Thanks for reading me and for your time.

This is the /etc/network/interfaces file:

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth2
iface eth2 inet static
  • 1
    have you tried asking your dhcp server for an address? dhclient -v eth2... do you get a proper reply? – MariusMatutiae Oct 10 '13 at 15:44
  • Do not you have managed=true in /etc/NetworkManager/NetworkManager.conf? Also try to initialize the interface manually: ifup eth2. – pabouk Oct 10 '13 at 16:13

The problem has been found to be with the netscript-2.4 Debian Wheezy package which, while claiming to be compatible with the ifupdown package, failed to properly configure a "static" interface after bringing it up.

Installing ifupdown fixed the problem.

| improve this answer | |

Check your scripts in dirs:


| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.