8

I've broken my window manager on my Debian 6 machine, and so I am stuck to recovery mode for now. That is, I got a plain root shell. Now here's my problem: how can I get a internet connection, so I can pull new sources and compile my window manager?

ifconfig eth0 up
/etc/init.d/network-manager restart

does not work. eth0 is up, but I cannot access the internet. What's wrong?

Sirex
  • 5,499
  • 2
  • 33
  • 54
DebiMan
  • 83
  • 1
  • 3

1 Answers1

10

Try dhclient eth0 if it's a direct connection to your ISP or there's a DHCP server in your network.

Can you ping hosts in your network, if any? Please post the output of ifconfig eth0 and route -n.

Eduardo Ivanec
  • 14,881
  • 1
  • 37
  • 43