Many newcomers to the Linux platform find the command-line interface (CLI) a little daunting at first, but with a little bit of research and an ounce of Mr. Common Sense’s inspiration, it’s not that hard to learn the basics.
In this article I’ll be discussing the common task of changing the IP address and DNS settings on your server. Most of the time you’ll want to use a static IP for your server and it’s best to do this during installation, but if you need to move your server to a different location or change its IP settings for any other reason, here are the simple steps.
1. Open up the Network Interfaces file
To open the file using the vi text editor, type sudo vi /etc/network/interfaces and press ENTER. You’ll then be prompted for your admin password. Enter this, and then vi will open up with your current IP settings. It might look something like this:
Recent Comments