Tuesday, August 9, 2011

Issssshhhhh....I mistakenly deleted my interface file

Guys..it command that when we work with root privilege, we tend to make mistake. And the most common mistake is deleting the files. I encountered a situation where I was configuring my DNS Server, and mistakenly I deleted the interface file. I thought, I am gone. Since it was a mission critical server.But quickly I realized, let me create one manually and see if it works. And guess what.....It really worked. I never though, I am so witty :).

[root@localhost~:]#nano /etc/networking/interfaces

Add the following line:

iface eth0 inet dhcp

and exit the editor saving the file.

[root@localhost~:]#/etc/init.d/networking restart

No comments:

Post a Comment