Announcement

Collapse
No announcement yet.

have internet access, but cant ping router.

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

    have internet access, but cant ping router.

    Hi guys

    trying to setup samba this morning, i discovered that my linux machine cant be found! i cannot ping it from other computers on the network, and i cannot use the linux machine to ping the router. i can access the web with the linux box, but nothing else.

    Code:
    auto lo
    iface lo inet loopback
    
    auto eth0
    iface eth0 inet dhcp
    
    #auto eth0
    #iface eth0 inet static
    #address 192.168.2.2
    #netmask 255.255.255.0
    #network 192.168.2.0
    #broadcast 192.168.0.255
    #gateway 192.168.2.1
    my router has the the DHCP lease option set to forever, so i removed/remarked the entry i made for static ip.

    Code:
    chris@chris-Dimension-4600i:/$ ifconfig
    eth0   Link encap:Ethernet HWaddr 00:11:11:39:ca:32 
         inet addr:192.168.2.2 Bcast:192.168.2.255 Mask:255.255.255.0
         inet6 addr: fe80::211:11ff:fe39:ca32/64 Scope:Link
         UP BROADCAST RUNNING MULTICAST MTU:1492 Metric:1
         RX packets:52507 errors:0 dropped:0 overruns:0 frame:0
         TX packets:43053 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:1000 
         RX bytes:49042600 (49.0 MB) TX bytes:5620305 (5.6 MB)
    
    eth1   Link encap:Ethernet HWaddr 00:e0:7d:99:27:b1 
         UP BROADCAST MULTICAST MTU:1500 Metric:1
         RX packets:0 errors:0 dropped:0 overruns:0 frame:0
         TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:1000 
         RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
         Interrupt:21 Base address:0xde00 
    
    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:130 errors:0 dropped:0 overruns:0 frame:0
         TX packets:130 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:0 
         RX bytes:9464 (9.4 KB) TX bytes:9464 (9.4 KB)
    does anyone have any ideas where i can look next?
    is NOT going back to microshaft!

    #2
    Re: have internet access, but cant ping router.

    Not really enough to go on here.

    What's your network setup?
    What have you done to configure samba?


    Please Read Me

    Comment


      #3
      Re: have internet access, but cant ping router.

      network setup is modem -> wireless router -> wired kubuntu pc -> 2 wifi laptops (xp, mac os). modem and router both have firewalls, both active.
      modem 192.168.1.1
      router 192.168.2.1
      kubuntu 192.168.2.2
      xp 192.168.2.4
      mac 192.168.2.3

      samba is
      Code:
      [global]
        ; General server settings
        netbios name = chris-Dimension-4600i
        server string =
        workgroup = MSHOME
        announce version = 5.0
        socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192
      
        passdb backend = tdbsam
        security = user
        null passwords = true
        username map = /etc/samba/smbusers
        name resolve order = hosts wins bcast
      
        wins support = 
      
        printing = CUPS
        printcap name = CUPS
      
        syslog = 1
        syslog only = yes
      
      
      [print$]
        path = /var/lib/samba/printers
        browseable = yes
        guest ok = yes
        read only = yes
        write list = root
        create mask = 0664
        directory mask = 0775
      
      [printers]
        path = /tmp
        printable = yes
        guest ok = yes
        browseable = no
      
      
      [MyFiles]
        path = /home/chris
        browseable = yes
        read only = no
        guest ok = no
        create mask = 0644
        directory mask = 0755
        force user = chris
        force group = chris
      installed samba from apt-get. no idea if samba is configured correctly, since i cant map to it via xp with \\192.168.2.2\MyFiles, or \\chris-Dimension-4600i\MyFiles
      is NOT going back to microshaft!

      Comment


        #4
        Re: have internet access, but cant ping router.

        i HAD firestarter installed. the icon was not in the tray, so i assumed it wasnt running, but when i restarted networking it said it was starting firestarter. i thought maybe the firewall was blocking, so i uninstalled firestarter. i used adept to install/uninstall.

        also, i installed wicd, via adept, and moved network manager to the bottom of the list in information sources in the system settings. obviously i put wicd to the top. i dont have a need for wireless networking on this box, but wicd seemed a better choice than network manager. stopped/started networking after these changes and nothing different. also, samba is stopped.

        anywhere to look next?

        also, i thought i should add...

        after installing kubuntu and installing every update that was recommended (by kubuntu), installing/uninstalling various programs/games...kubuntu started acting poorly. programs would crash, not respond, not work correctly, etc. i never could get samba working on that install...i gave up. lol

        i reinstalled kubuntu 10.10 2 days ago. opted not to install updates. i installed just the basics i needed to get along. (was i wrong in not installing updates? maybe a dumb question coming from a long time WINDOZE user) basics...firefox, shockwave, java, gimp, kde games, kde screensavers...

        i cannot ping anything except for myself.
        is NOT going back to microshaft!

        Comment


          #5
          Re: have internet access, but cant ping router.

          Just so we're all clear on what you're trying to do:
          The desktop will host files and printer(s) and you want to share them with XP and MAC.
          The desktop is hard-wired to your router and the other 'puters will use wireless.

          At this point you have multiple issues - linux box networking setup needs fixing first, THEN we can work on samba. If your linux box is not connecting to the other computers viz the router, they won;t be able to connect to samba.

          First off - knetworkmanager conflicts with WICD and will screw with your network and needs to be removed/purged. Personally, unless you have a wireless connection, I wouldn't install WICD either. You really are better off manually configuring your network and leaving it be. You seem skilled enough to do that. I believe your interfaces file is fine, just un-install knetworkmanger (using purge option) and WICD and manually edit resolv.conf to point at your router. Of course - since you can't yet ping your router don't do it now!

          I have had knetworkmanager fail to correctly route to my router. You can check your route by typing route -n in a terminal. You should see a line like this:

          Code:
          0.0.0.0     192.168.2.1   0.0.0.0     UG  100  0    0 eth0
          If not, likely this is the source of this issue.

          My next suspect is your double firewall setup. Not knowing your hardware - I'd start by disabling the router firewall so your internal network is freely available to all your computers. Once you're all configured and all your computers can talk to each other, you can re-enable your extra firewall if you wish and trouble shoot it then.

          Other notes:
          I see you have two NIC's in your desktop. I have had router/switch trouble if both cables are connected but not properly configured. Make sure eth1 is unplugged from the router for now.

          If you're using cups to print with, the MAC can access the printer via the cups interface without samba.

          There's a good samba walk though on this forum somewhere. I use a dedicated 10.04 ubuntu server and I attached my smb.conf file for your viewing pleasure.
          Attached Files

          Please Read Me

          Comment


            #6
            Re: have internet access, but cant ping router.

            thanks a bunch oshunluvr. i will try these suggestions as soon as i can.

            Code:
            chris@chris-Dimension-4600i:~$ route -n
            Kernel IP routing table
            Destination   Gateway     Genmask     Flags Metric Ref  Use Iface
            192.168.2.0   0.0.0.0     255.255.255.0  U   0   0    0 eth0
            169.254.0.0   0.0.0.0     255.255.0.0   U   1000  0    0 eth0
            0.0.0.0     192.168.2.1   0.0.0.0     UG  100  0    0 eth0
            the last line proves that resolv.conf is fine?
            is NOT going back to microshaft!

            Comment


              #7
              Re: have internet access, but cant ping router.

              It shows your route is fine. You should be able to ping the router since it's listed so I'm leaning toward your firewall.

              You can see if your other computers are visible try

              nmap -v -sP 192.168.2.0/24

              You should get a list of active IP's on your network. You might need to install nmap...

              Please Read Me

              Comment


                #8
                Re: have internet access, but cant ping router.

                the routers firewall has been disabled, and nmap shows all current hosts correctly. xp laptop can ping the router, but this wired linux box still cannot.

                have to go to work now, nothing else to report.
                is NOT going back to microshaft!

                Comment


                  #9
                  Re: have internet access, but cant ping router.

                  i uninstalled/purged network manager, and got rid of wicd. the ping works...with the firewall up. looks like im good to go.

                  thanks so much for the help! i may be back with samba questions...lol cross your fingers!
                  is NOT going back to microshaft!

                  Comment


                    #10
                    Re: have internet access, but cant ping router.

                    Kool, that was easy... 8)


                    Please Read Me

                    Comment


                      #11
                      Re: have internet access, but cant ping router.

                      I used to be able to use ping from my account but after I turned off ICMP echo in my router, to make my box unresponsive to pings and totally stealth, I discovered that to use ping I had to issue
                      sudo ping whatever.com
                      "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
                      – John F. Kennedy, February 26, 1962.

                      Comment


                        #12
                        Re: have internet access, but cant ping router.

                        Originally posted by GreyGeek
                        I used to be able to use ping from my account but after I turned off ICMP echo in my router, to make my box unresponsive to pings and totally stealth, I discovered that to use ping I had to issue
                        sudo ping whatever.com
                        I'm no expert, but wouldn't it make your presence more obvious if you dropped the pings rather than blend with the crowd by sending a "Destination Host Unreachable" response?

                        Comment


                          #13
                          Re: have internet access, but cant ping router.

                          Originally posted by GreyGeek
                          I used to be able to use ping from my account but after I turned off ICMP echo in my router, to make my box unresponsive to pings and totally stealth, I discovered that to use ping I had to issue
                          sudo ping whatever.com
                          That sounds rather strange..."sudoing" ping shouldn't affect the router?

                          Did you block ECHO Requests and/or ECHO Replies? From WAN and/or LAN?

                          I'm still baffled why sudoing ping would work and normal ping would not, and how the router would know the difference?

                          Comment


                            #14
                            Re: have internet access, but cant ping router.

                            I've come across systems where some commands didn't work as user. Ifconfig for sure, but I seem to recall ping as well. I guess that could make sense in some environments but that is on the computer end. Indeed how the router would interact with that is a mystery to me too. Anyway, we'll just have to wait for the big G to get back to us.

                            Comment


                              #15
                              Re: have internet access, but cant ping router.

                              Originally posted by Ole Juul
                              I've come across systems where some commands didn't work as user. Ifconfig for sure, but I seem to recall ping as well. I guess that could make sense in some environments but that is on the computer end.
                              That's certainly possible, for example, if ping does not have set-uid bit set (and therefore not running as root when called from a user account).

                              ls -la /bin/ping
                              -rwsr-xr-x 1 root root 34716 2010-11-15 10:08 /bin/ping
                              I was just mystified by how a change in the router settings would bring that about?

                              Comment

                              Working...
                              X