I deactivated the network on my working laptop (the one that host the vmware player and the centos "test" server) ... After that, the linux box lost his network connection, and refuse to regain-it again.
I started digging for a method to tell linux to use DHCP to fill the eth0 settings. Here it is (learned from here) :
- tell etho to go down (if your network interface is not eth0, use ifconfig to identify it):
ifdown eth0
- edit (or create) /etc/sysconfig/network-scripts/ifcfg-eth0 and be sure it contains only :
device=eth0
bootproto="dhcp"
onboot="yes" - bring eth0 back up, and all is done :
ifup eth0
But, cd-ing and vi-ing trough the linux file system, I starting to wonder if I could use something easier, like Midnight Commander (MC). OK, I admit, I was sure the answer is "Yes", but how ?
It's simple, type:
yum install mcAnswer 'y' when prompted, and you're ready. Really. Type mc and see for yourself.
Good post.
ReplyDelete