Announcement

Collapse
No announcement yet.

Static IP Address

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Static IP Address

    I am new to KDE, but not new to Linux. I don't know if this is the proper place to post this question, if I should post this else where please let me know. Why can't KDE users establish a static IP address on our KDE systems? I tried modifying the /etc/network/interfaces file but that doesn't work. I tried changing the properties of the eth0 connection but there is nothing in the KDE network manager that allows me to change its properties. I can create another wired connection, eth1, and establish a static IP but i can't get Kubuntu to automatically use that connection on startup. I would greatly appreciate any information or ideas on how i can create a wired connection, with a static IP address that will automatically be used by Kubuntu on startup. If someone could answer my question as to why KDE does not allow a static IP address to be created I would appreciate that as well. Thanks so much.


    #2
    Re: Static IP Address

    Follow my instructions here:
    http://kubuntuforums.net/forums/inde...opic=3100052.0

    Comment


      #3
      Re: Static IP Address

      Another way to do it is to create a MAC reservation on your DHCP server (your router) - I prefer this method since you manage all the IP addresses from one place.

      First, get the MAC address of your network card like this -

      wizard@wizard-desktop:~$ ifconfig eth0
      eth0 Link encap:Ethernet HWaddr 00:24:1d:71:ef:2e
      inet addr:192.168.1.101 Bcast:192.168.1.255 Mask:255.255.255.0
      inet6 addr: fe80::224:1dff:fe71:ef2e/64 Scope:Link
      UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
      RX packets:8867 errors:0 dropped:0 overruns:0 frame:0
      TX packets:7719 errors:0 dropped:0 overruns:0 carrier:0
      collisions:0 txqueuelen:1000
      RX bytes:7246238 (7.2 MB) TX bytes:1613451 (1.6 MB)
      Interrupt:49

      wizard@wizard-desktop:~$

      The hardware address (HWaddr) is your MAC address.

      Next, create a MAC reservation on your router so that the router always gives that IP address to that machine. I have static addresses for both the wired and wireless interfaces on my netbook and one for the wired interface on my desktop PC.
      we see things not as they are, but as we are.
      -- anais nin

      Comment


        #4
        Re: Static IP Address

        Both previous solutions should work, but in case you:
        a. want a literally static IP
        b. want to use a network management tool

        I haven't used networkmanager in a good while, so I really don't know, but it definitely should be possible to set up a static address (if it isn't, I'd consider that a major flaw in the software.)

        Setting up a static address should be relatively simple with wicd (an alternative network management tool), if you wish to use a tool. If you wish to try out wicd, you'll need to remove network-manager as well, the two don't really work together.

        Comment


          #5
          Re: Static IP Address

          If you modified /etc/network interfaces and it didn't work, it's likely you got something wrong there.
          Here's what it looked like before you modified it:
          Code:
          # This file describes the network interfaces available on your system
          # and how to activate them. For more information, see interfaces(5).
          
          # The loopback network interface
          auto lo
          iface lo inet loopback
          You then need to add this below:
          Code:
          # The primary network interface
          auto eth0
          iface eth0 inet static
          address 192.168.1.100
          netmask 255.255.255.0
          broadcast 192.168.1.255
          gateway 192.168.1.1
          Obviously, use your IP address(s).

          Another possible issue is if you were using knetworkmanager and removed it. It will clear out your /etc/resolv.conf file thus removing your nameserver address.

          Please Read Me

          Comment

          Working...
          X