eHow launches Android app: Get the best of eHow on the go.

How To

How to Change an Internal IP in Kubuntu

Member
By draik
User-Submitted Article
(2 Ratings)

If your router moves IP addresses around, due to dynamic IPs, it can make a mess of your port-forwarding setup. If you need to keep the IPs dynamic, you can manually change the IP to match what you need.

Difficulty: Easy
Instructions

Things You'll Need:

  • Computer with Kubuntu or variant
  1. Step 1

    Before changing the IP address assigned by your router, you will want to make sure it is available. You can check availability by pinging the IP you want by opening your favorite Command Line Interface (CLI) application (Konsole, Terminal or Yakuake) and typing: ping -c 4 192.168.1.2 . The IP address varies by what your router has setup for assignment. This is just an example. The command will send 4 packages to the IP address you specify and hope to get a response. We, on the other hand, do not want a response. If you do not have a response, skip to step 3. If you receive a response, proceed to step 2.

  2. Step 2

    If the IP address is taken by another computer, you can choose to turn off the computer or disable the network connection. Either method will work to release the IP address. The command in Kubuntu and its variants is: sudo ifconfig eth0 down. This will turn off the network card. If it is connected to a printer or other network device, simply turn it off.

  3. Step 3

    With the IP address available, and your CLI application open, we can assign it to the computer by typing: sudo ifconfig eth0 192.168.1.2 . The IP address will vary, but you will know this information since you are the Network Administrator. This will setup the IP address for the computer. Repeat as many times necessary for other computers.

Tips & Warnings
  • eth0 is eth zero. This means ethernet device zero. In all computer languages, zero counts as a number.
  • If you want to see the device and IP address assigned, you can type "ifconfig" in Konsole, Terminal and Yakuake.
  • This tutorial is for changing your network IP address. Contact your Internet Service Provider to change your world-viewed (broadcasted) IP address.
  • When changing IP addresses, make sure it is not being used elsewhere. This will complicate network communications.

Comments  

pianistic said

Flag This Comment

on 11/13/2008 Thanks for sharing your knowledge.

Wasatch said

Flag This Comment

on 11/13/2008 Good article. You know your stuff. Thanks

Subscribe

Post a Comment

Post a Comment

Related Ads

  • Have you done this? Click here to let us know.
I Did This
Get Free Computers Newsletters

Copyright © 1999-2009 eHow, Inc. Use of this web site constitutes acceptance of the eHow Terms of Use and Privacy Policy.   en-US Portions of this page are modifications based on work created and shared by Google and used according to terms described in the Creative Commons 3.0 Attribution License.

eHow Computers
eHow_eHow Technology and Electronics