Announcement

Collapse
No announcement yet.

[Solved]Setting static IP address

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

    [Solved]Setting static IP address

    The reason that I was "gone" from this site for a while is that I had no connection on my Kubuntu.
    I finally decided to call my ISP provider to ask if they know what the problem is.
    they said that I had to change my dynamic IP to static IP (for free). So I did, but I have some problems with setting my IP address at Kubuntu.
    I know where to put IP address, subnet mas and default gateway, but have no idea where to put prefered and alternate DNS server.
    I put their addresses under last two options (I unfortunately forgot what they were). But it doesn't work, as I write this from Windows...

    Please help.
    I'm magnet for errors, problems and bugs...

    #2
    Re: Setting static IP address

    Primoz, the standard supplied network manager cannot handle static IP address, so your problems start earlier than the DNS. Remove network manager and install WiCD instead.

    Comment


      #3
      Re: Setting static IP address

      Originally posted by barbolani
      Primoz, the standard supplied network manager cannot handle static IP address, so your problems start earlier than the DNS. Remove network manager and install WiCD instead.
      Thanks for help, but the reason for changing to static IP is because I can't connect to internet in Kubuntu, therefore I can't install WiCD.
      But if I'll do a clean install I'll probably install it.

      (Now to get my network working....)
      I'm magnet for errors, problems and bugs...

      Comment


        #4
        Re: Setting static IP address

        How are you setup? Do you connect through a router which in turn is connected to a DSL or cable modem? Are you connecting wired or wireless?

        Comment


          #5
          Re: Setting static IP address

          Originally posted by Detonate
          How are you setup? Do you connect through a router which in turn is connected to a DSL or cable modem? Are you connecting wired or wireless?
          Oh sorry I forgot to write that. And I ask why nobody helps me...
          Yes I have a direct to modem FTTH (fibreoptics) wired connection...

          The problem was as I said before in dynamic IP, because my OSes demanded new IP while other IP was in use on the other OS.
          Meaning that Windows had an real IP but Kubuntu instead of using that one tried to fetch a new IP...
          Now I changed my IP in Windows from dynamic to static but can't change it in my Kubuntu, as there is no option to specify prefered and alternate DNS servers in KNetwork manager...

          Hope I'm clear enough...
          I'm magnet for errors, problems and bugs...

          Comment


            #6
            Re: Setting static IP address

            OK, let's try this. First, remove Knetworkmanager.

            Code:
            sudo apt-get remove knetworkmanager
            Then run

            Code:
            cat /etc/network/interfaces
            and

            Code:
            cat /etc/resolv.conf
            And copy and paste the contents here.

            Comment


              #7
              Re: Setting static IP address

              Originally posted by Detonate
              OK, let's try this. First, remove Knetworkmanager.

              Code:
              sudo apt-get remove knetworkmanager
              Then run

              Code:
              cat /etc/network/interfaces
              and

              Code:
              cat /etc/resolv.conf
              And copy and paste the contents here.
              Will do...
              Just that you know I also reported this as bug and am trying to resolve it with help of Launchpad...
              So I really should get some results from all the help...
              I'm magnet for errors, problems and bugs...

              Comment


                #8
                Re: Setting static IP address

                Ok I tried to remove Knetworkmanager, but when I wrote the code it said that it's not installed... WTF?
                So I decided to do the 2 and 3 from you're list...
                It didn't do anything...

                Now my main question is how come I have and don't have knetworkmanager at the same time??
                I mean there is a tray icon for it and when I write:
                Code:
                knetworkmanager&
                In console it does start it...
                But when I try to remove it it says there isn't one installed...

                Why can't I have just an normal installation of anything?? (other my Windows thankfully they still run... )
                I'm magnet for errors, problems and bugs...

                Comment


                  #9
                  Re: Setting static IP address

                  Originally posted by Detonate
                  OK, let's try this. First, remove Knetworkmanager.

                  Code:
                  sudo apt-get remove knetworkmanager
                  Then run

                  Code:
                  cat /etc/network/interfaces
                  and

                  Code:
                  cat /etc/resolv.conf
                  And copy and paste the contents here.
                  OK I found another post in which you wrote how to set static IP I did what your post said and now my network is recognized, but when it tries to connect it says no server address. It must be because I didn't specified my preferred and alternative DNS servers.
                  So where do I write those two IPs?
                  I'm magnet for errors, problems and bugs...

                  Comment


                    #10
                    Re: Setting static IP address

                    That's where the resolv.conf file comes in. Do you know the address of your modem and the DNS that your ISP wants you to use?

                    Comment


                      #11
                      Re: Setting static IP address

                      Originally posted by Detonate
                      That's where the resolv.conf file comes in. Do you know the address of your modem and the DNS that your ISP wants you to use?
                      Yes I have all I need...
                      I did the thing you posted on the other post:
                      # The loopback network interface
                      auto lo
                      iface lo inet loopback
                      address 127.0.0.1
                      netmask 255.0.0.0

                      # The primary network interface
                      auto eth0
                      #iface eth0 inet dhcp

                      iface eth0 inet static
                      address 192.168.1.10
                      netmask 255.255.255.0
                      gateway 192.168.1.1
                      And replaced the IPs under static to what my ISP gave me...
                      But as I said I have to put in the DNS serves but don't know where they go...

                      I didn't touch the loopback IPs as I don't know what to put in...
                      I'm magnet for errors, problems and bugs...

                      Comment


                        #12
                        Re: Setting static IP address

                        Open resolv.conf and put them there.
                        Code:
                        kdesudo kate /etc/resolv.conf
                        Edit the file to look like mine. These are the entries in mine, you will substitute what your ISP provided.

                        nameserver 208.67.222.222
                        nameserver 208.67.220.220
                        nameserver 192.168.0.1


                        Save the file, then:

                        Code:
                        sudo /etc/init.d/networking restart

                        Comment


                          #13
                          Re: Setting static IP address

                          Originally posted by Detonate
                          Open resolv.conf and put them there.
                          Code:
                          kdesudo kate /etc/resolv.conf
                          Edit the file to look like mine. These are the entries in mine, you will substitute what your ISP provided.

                          nameserver 208.67.222.222
                          nameserver 208.67.220.220
                          nameserver 192.168.0.1


                          Save the file, then:

                          Code:
                          sudo /etc/init.d/networking restart
                          thanks man it works!!!
                          I'm magnet for errors, problems and bugs...

                          Comment


                            #14
                            Re: Setting static IP address

                            OK, you have it working, but it is possible that the next time you boot up, knetwork manager may screw it up again. So back up those files, and you will be able to easily replace them if that happens. That's why I wanted you to remove knetworkmanager. Are you sure you entered the code to remove it correctly?

                            Code:
                            sudo apt-get remove knetworkmanager

                            Comment


                              #15
                              Re: Setting static IP address

                              in 8.10, it is
                              Code:
                              sudo apt-get remove network-manager
                              I believe...
                              Dell Inspiron 1720 Laptop<br />Intel T9300 Core2Duo Processor @ 2.5Ghz<br />4 GB Ram | 1920 X 1200 Resolution<br />2 X 160 GB SATA HD Internal<br />Nvidia GeForce 8600M Graphics Adapter<br />Using Kubuntu 9.10

                              Comment

                              Working...
                              X