When I install initial configuration in Ubuntu 12.04 Server, I type this command to change the network interface card (NIC) from using DHCP to a static IP:

vi /etc/network/interfaces

out put is :

vi /etc/network/interfaces  no such file or directory 

Should I create this directory or what ?

  • Try cd /etc/network/ and do ls and see what you get. – sagarchalise Sep 5 '13 at 7:14

You must leave a space between vi and the file so it should be vi /etc/network/interfaces Also , in order for you to change that file, you need to be root so i would suggest you put it as sudo vi /etc/network/interfaces. Hope that helps

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.