Change IP in Linux from the Command Line

Posted by Johan Cyprich on 03 Jan 2008 | Tagged as: Tech Tips

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 192.168.147.1

This command changes the IP of eth0 to 192.168.147.1. There are many more options available for ifconfig and you can read about them by typing man ifconfig on the command line.


Related posts:
    Updating PostgreSQL With yum
    How to Uncompress Files in Linux
    Do You Really Want to Compile Source Code?
    Installing Joomla on 1&1

Share this post:

del.icio.us:Change IP in Linux from the Command Line digg:Change IP in Linux from the Command Line spurl:Change IP in Linux from the Command Line wists:Change IP in Linux from the Command Line simpy:Change IP in Linux from the Command Line newsvine:Change IP in Linux from the Command Line blinklist:Change IP in Linux from the Command Line furl:Change IP in Linux from the Command Line reddit:Change IP in Linux from the Command Line fark:Change IP in Linux from the Command Line blogmarks:Change IP in Linux from the Command Line Y!:Change IP in Linux from the Command Line smarking:Change IP in Linux from the Command Line magnolia:Change IP in Linux from the Command Line segnalo:Change IP in Linux from the Command Line gifttagging:Change IP in Linux from the Command Line

Follow Me:

Did you find this post interesting and useful? You can keep up to date on this blog by subscribing to my RSS feed, or you can have new posts sent to you by e-mail. You can also follow me on Twitter.


Trackback This Post | Subscribe to the comments through RSS Feed

Leave a Reply