Announcement

Collapse
No announcement yet.

[SOLVED]Strange DHCP setting

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

    [SOLVED]Strange DHCP setting

    First, I am sorry that my English is not good.

    My computer has dual boot, Windows XP and Kubuntu FF. I just installed Kubuntu Feisty Fawn. Everything goes well except the network setting. I am using Intel Pro/1000 MT. Internet connection type is cable connection from LAN. (My windows using E-PRO Realtek 8139D. The Knetworkmanager doesn't detect my Realtek. But somehow I can see Realtek 8139D in lspci. So I only have eth0, while eth1 there is no device)

    When I set automatic with DHCP it seems the KnetworkManager able detect there is wire plug in the ethernet card. But the problem is, the IP address, netmask and gateway is not same with the setting in the windoz(windows' setting has proved work). And in fact I can't connect to internet with these settings. But when I try to set manual the IP address, netmask and the gateway same with the windows, it seems the KnetworkManager can't detect the wire. I just wondering why it can be. Am I do mistake in setting, or I just miss something? Can anybody help me? I just not so understand about network, so I don't know what should I do to check the problem....

    Thanks before....

    P4 3.06 HT,RAM 512 MB, 80GB HD, Geforce 6200 LE, Kubuntu 8.04

    #2
    Re: Strange DHCP setting

    I understand you use a router, can you ping it? (in case you do not use a router, you might check your hostname or cname. Some providers require you to give your computer a certain name).

    With DHCP enabled, do you have a DNS server specified? If not try 208.67.222.222 and 208.67.220.220 (OpenDNS) or in case you use a router, try the same IP as the gateway.

    If this doesn't work, please post the output of the command "ifconfig" in the console.
    Once your problem is solved please edit the first post of your topic and add [SOLVED] in front of the subject. In that way, others can benefit from your experience!

    Comment


      #3
      Re: Strange DHCP setting

      Forget about knetwork manager. Use kmenu>>systemsettings>>network settings.

      Fill in the correct info and it should work.

      eriefisher
      ~$sudo make me a sandwich

      Comment


        #4
        Re: Strange DHCP setting

        How to ping router? Sorry I don't really understand about network. but I try to ping default getway, my IP address. It did reply. About hostname or cname, no. The ISP never requires to give certain name.

        With DHCP enabled, there are 2 DNS servers.

        I type ifconfig and this is the result :

        eth0 Link encap:Ethernet HWaddr 00:134:F2:8E:EA
        inet addr:172.20.0.208 Bcast:172.20.3.255 Mask:255.255.252.0
        inet6 addr: fe80::213:d4ff:fef2:8eea/64 Scope:Link
        UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
        RX packets:13906 errors:0 dropped:0 overruns:0 frame:0
        TX packets:613 errors:0 dropped:0 overruns:0 carrier:0
        collisions:0 txqueuelen:100
        RX bytes:1306470 (1.2 MiB) TX bytes:58431 (57.0 KiB)
        Base address:0xec00 Memory:f9ea0000-f9ec0000

        lo Link encap:Local Loopback
        inet addr:127.0.0.1 Mask:255.0.0.0
        inet6 addr: ::1/128 Scope:Host
        UP LOOPBACK RUNNING MTU:16436 Metric:1
        RX packets:3 errors:0 dropped:0 overruns:0 frame:0
        TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
        collisions:0 txqueuelen:0
        RX bytes:204 (204.0 b) TX bytes:204 (204.0 b)

        But I think I just realize, that I musn't use DHCP. Coz when I try in Windoz(set obtain IP automaticaly) I fail to connect to Internet. So I try to focus on set manually.

        As eriefisher suggests I try to set at network settings, not in Knetworkmanager. But the strange is everytime I set the address. After clicking apply it would return to old setting (the IP address and Netmask are return to DHCP settings).


        Here is the settings in Windows.

        I set the IP and netmask in Kubuntu same with the windows. The broadcast, I let it empty. while the gateway I also follow the windows. Maybe I must set other things in manual setting?

        Thanks

        Oh yeah...I also have to configure the proxy in order to connect. I have set the proxy in Konqueror. So it won't be the problem.

        P4 3.06 HT,RAM 512 MB, 80GB HD, Geforce 6200 LE, Kubuntu 8.04

        Comment


          #5
          Re: Strange DHCP setting

          So you open up System Settings -> Network Settings, and you selected "Network Connections" in the left panel? Then you click the "Administrator" button.

          Then click the "configure interface" button for eth0 in the "Network Interfaces" tab, set it to "manual" and feed it with the correct (manual) IP-adress and netmask. Then you click OK and go to the next tab: "Routes" and you fill in the correct gateway adress. Next tab ("Domain Name System") you add the right DNS servers.

          Then you click "apply".

          You can set the proxy by selecting "Proxy" in the left panel of System Settings -> Network Settings (it is the same as in Konqueror)
          Once your problem is solved please edit the first post of your topic and add [SOLVED] in front of the subject. In that way, others can benefit from your experience!

          Comment


            #6
            Re: Strange DHCP setting

            if you have the instructions that came with the router it will have the ip address in them.
            what kind of router do you have?

            you can ping your router by opening the konsole
            type in sudo ping 192.168.0.1 that is a typical router ip that i have worked with other wise you should be able to pull up your router online and find out the default ip address.

            Comment


              #7
              Re: Strange DHCP setting

              You have to give ping a count or it will go on for ever eg:

              ping -c 3 192.168.0.1

              This will ping the address three times and then post the results.

              eriefisher
              ~$sudo make me a sandwich

              Comment


                #8
                Re: Strange DHCP setting

                thanks Eriefisher i knew how to do it just didn't know about that trick to set the number of pings. thanks clarifying that.

                Comment


                  #9
                  Re: Strange DHCP setting

                  Yup! I do exactly like you said, JohanLingen. But still doesn't take effect(the IP address and Netmask always back to 172.20.0.8 and 255.255.0.0 grrrrr). So I change it in terminal at /etc/network/interfaces
                  /etc/resolv.conf.

                  And then restart it using
                  /etc/init.d/networking restart

                  And it succeed. ....but still won't connect

                  Ah about ping router. I don't get any instructions that came with the router. So maybe I'll try to ping 192.168.0.1. Thank you

                  P4 3.06 HT,RAM 512 MB, 80GB HD, Geforce 6200 LE, Kubuntu 8.04

                  Comment


                    #10
                    Re: Strange DHCP setting

                    have you tried connecting directly to the internet and bypassing the router first just to make sure you set up everything without the problems that a router can cause sometimes during set up?

                    if you have done that already can you give an update on where you are now with your problem.

                    have you been able to ping the router yet?

                    Comment


                      #11
                      Re: Strange DHCP setting

                      Whoooa..... I don't understand how to do that.....
                      Can you tell me how to connect directly and bypass the router?? I don't know about network, moreover network in Linux system. :P

                      Btw do you have any recommendation, any articles or ebooks or whatsover to explain the basic of networking in Linux??

                      well now I am not at home, so I can't ping the router yet..... :P
                      P4 3.06 HT,RAM 512 MB, 80GB HD, Geforce 6200 LE, Kubuntu 8.04

                      Comment


                        #12
                        Re: Strange DHCP setting

                        here is a helpful link for a lot of questions.

                        http://www.gentoo.org/doc/en/handboo...book-amd64.xml

                        Sorry that was my mistake. what i meant to ask was did you bypass the lan system and hook this pc directly to the router. to see if you could connect to the internet that way.

                        let us know when you get a chance to ping the router and post your results so we might see whats going on.

                        Comment


                          #13
                          Re: Strange DHCP setting

                          I have try to ping several IP that could be the router's. But all are failed

                          garry@bob:~$ ping -c 3 192.168.0.1
                          PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.

                          --- 192.168.0.1 ping statistics ---
                          3 packets transmitted, 0 received, 100% packet loss, time 2001ms


                          garry@bob:~$ ping -c 3 192.168.123.254
                          PING 192.168.123.254 (192.168.123.254) 56(84) bytes of data.

                          --- 192.168.123.254 ping statistics ---
                          3 packets transmitted, 0 received, 100% packet loss, time 1999ms


                          garry@bob:~$ ping -c 3 192.168.2.1
                          PING 192.168.2.1 (192.168.2.1) 56(84) bytes of data.

                          --- 192.168.2.1 ping statistics ---
                          3 packets transmitted, 0 received, 100% packet loss, time 2000ms

                          garry@bob:~$ ping -c 3 192.168.1.1
                          PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.

                          --- 192.168.1.1 ping statistics ---
                          3 packets transmitted, 0 received, 100% packet loss, time 2008ms

                          I *think* my pc is already connected directly from router. Our Lan system is using the router( that is possible right? I am not sure..... :P). I have try to contact the ISP , but they haven't reply yet. I'll try to ask about the router address.

                          Oh yeah, I try to use netstat -nr . And It came this result :
                          garry@bob:~$ netstat -nr
                          Kernel IP routing table
                          Destination Gateway Genmask Flags MSS Window irtt Iface
                          27.227.27.252 0.0.0.0 255.255.255.252 U 0 0 0 eth0
                          169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
                          0.0.0.0 27.227.27.254 0.0.0.0 UG 0 0 0 eth0

                          Is there any problem? Why I don't found 27.227.27.253 ?
                          P4 3.06 HT,RAM 512 MB, 80GB HD, Geforce 6200 LE, Kubuntu 8.04

                          Comment


                            #14
                            Re: Strange DHCP setting

                            I just chat with the ISP. But it seems he don't know the router address too.......(strange). He suggest me to ping the gateway 27.227.27.254. But I can't ping the gateway anyway. So must be something wrong at my settings. But where? It seems I already follow all the IP address, netmask ,DNS and gateway. Haiizzz....
                            P4 3.06 HT,RAM 512 MB, 80GB HD, Geforce 6200 LE, Kubuntu 8.04

                            Comment


                              #15
                              Re: Strange DHCP setting

                              Strange no lazy or uninformed yes. i would call them back and ask to speak to a tech or an installer that works for them and explain you have linux that your having problems with your router and needs some answers.

                              in the mean time what is the name and model # and serial # might even be helpful so we might be able to find out something about your router to fiugre out the ip address or maybe some instructions on it for you.

                              you said your on a lan system if your connected through the lan can the other computers see this computer?

                              try this go on one of your windows machines and open one of your web browsers. then type in your gateway ip 27.227.27.254 if that doesn't work type in 192.168.0.1 and see if one of these ip address will open up your router page. if not try the rest of the numbers you have maybe you will get lucky. once you get that page to pull up you have the right ip address to use in linux.

                              you also said that your not connected to your router but the Knetworkmanager can see it? can you click on it and highlight it then click on the Enable Interface button below the box and then click on the Configure Interface Button. it should be set on Automatic and an X in the box for Activate when the computer starts.

                              i would work this post from the bottom to the top in trying to fix this issue.

                              let me if any of this works.

                              Comment

                              Working...
                              X