I fucked my window manager on my Debian 6 machine up, 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?

link|improve this question
feedback

1 Answer

up vote 2 down vote accepted

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.

link|improve this answer
dhclient did the job. Thanks man! – DebiMan Jun 18 '11 at 19:55
ip addr sh and ip ro sh - also come to play as ifconfig and route should be considered deprecated (but yes, they still work). – cstamas Jun 18 '11 at 21:02
@cstamas: true, but old habits die hard! netstat -nr can also replace route. – Eduardo Ivanec Jun 18 '11 at 21:06
nice, did not know the latter. – cstamas Jun 18 '11 at 21:10
feedback

Your Answer

 
or
required, but never shown

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