Change IP in Linux from the Command Line

Posted by Johan Cyprich on 03 Jan 2008 | Tagged as: How To

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.



Tweet This Tweet This Post!

Related posts:
    Using Line Numbers in vi
    Updating PostgreSQL With yum
    Extracting Files from an ACE Archive
    PowerShell: A Better CMD.EXE

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.


2 Responses to “Change IP in Linux from the Command Line”

  1. on 05 Feb 2009 at 1:21 am 1.Anupam Kumar said …

    command for this is
    ifconfig eth0 10.1.7.13 netmask 255.255.255.0 up

  2. on 12 Oct 2009 at 3:38 am 2.Andrew Virender said …

    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.

Trackback This Post | Subscribe to the comments through RSS Feed

Leave a Reply

CommentLuv Enabled