How to Change Your IP Address in Linux Shell

Ever wonder how to easily change your IP address without having to go through the daunting task of going through the system menu? If you can open a Linux Shell and type on a keyboard, then you can change your IP Address with one command line.

  1. Turn on the computer in which you are running a Linux distribution. Once started, open a Shell, which is similar to a command prompt screen in Windows.
  2. To change the IP address you will need to use the “ifconfig” command. Also, you should have an IP address in mind that is different than your current IP address.
  3. With an IP address in mind, type: “ifconfig eth0 192.168.X.XXX up” without the quotation marks and placing your numbers in for the Xs. Keep in mind that a normal IP address will begin 192.168 and then you should normally have one number then two to three numbers for the last section of the address
  4. Press “Enter” to run the command and change your IP address. Once it is completed you should check the change by simply typing “ifconfig” without the quotation marks, and pressing “Enter.” This will display your current IP address so you can verify that is was changed to the one you entered in Step 3.


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.