Change IP in Linux from the Command Line

Changing the IP in Fedora is easy. All you have do is go to the Administration -> Network utilitiy (through the Fedora menu), select the network card, and press the Edit button. From there you can change the IP and other settings.
If your using an older version of Linux, there may not be a friendly GUI application like this to change your IP, or you may be connected to a server by ssh or some other command line console. The IP can be changed through the ifconfig command.
Quick and Easy Steps
You first need to run ifconfig to see what network adapters are present in your computer. Once you have this information, you can change the IP with the following command, assuming eth0 is your network adapter:
ifconfig eth0
This command changes the IP of eth0 to There are many more options available for ifconfig and you can read about them by typing man ifconfig on the command line.

2 thoughts on “Change IP in Linux from the Command Line”

  1. That wasn’t difficult at all. I understand it is important to change IP for a variety of reasons. One of the most important one is to be able to be secure and enjoy some privacy on the internet or at least try. There have become available some cool software such as Private Proxy software to rapidly change IP and route the connection through multiple servers. Thus effectively hiding your IP address and allowing one to surf the net anonymously. In order to combat security and privacy challenges on the internet Changing the IP has become an effective weapon against hackers and identity thieves.


Leave a Comment