Page 1 of 3 123 LastLast
Results 1 to 10 of 24

Thread: Can't ping server

  1. #1
    Join Date
    Sep 2008
    Location
    England
    Beans
    Hidden!
    Distro
    Ubuntu

    Can't ping server

    Hello, what are some obvious reasons why I can't ping my server, yet I can still access all my NFS shares on it and the server can ping my other machines just fine?

    Code:
    rhys@orange:~$ ping tomato
    PING tomato.default (192.168.1.72) 56(84) bytes of data.
    ^C
    --- tomato.default ping statistics ---
    4 packets transmitted, 0 received, 100% packet loss, time 2999ms

  2. #2
    Join Date
    Apr 2012
    Location
    Detroit, MI USA
    Beans
    68
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Can't ping server

    Hi RhysGM,

    Have you placed an exception in IPTABLES/firewall to allow orange to connect to tomato?
    Jon Edney
    Aspiring Developer/Programmer
    Website | Ubuntu Wiki
    JonEdney on Freenode in #UbuntuForums

  3. #3
    Join Date
    Sep 2008
    Location
    England
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Can't ping server

    Nothing is in iptables and I disabled ufw.

    orange = laptop wlan
    tomato = server lan
    mango = xbmc lan

    I can't ssh into tomato from orange or ping however I can ssh orange into mango then from mango I can ssh and ping tomato. When I've tunnelled into tomato from orange via mango, I can ping back to orange.

    I just can't figure out what I've done to prevent orange from seeing tomato?!

    EDIT:

    And if it makes a difference, I have to specify the private IP and not the computer name to ssh from mango to tomato.
    Last edited by AmbiguousOutlier; May 21st, 2013 at 07:28 PM.

  4. #4
    Join Date
    Nov 2009
    Location
    Segur De Calafell, Spain
    Beans
    11,660
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Can't ping server

    Is the dns resolving correct? Is tomato IP really .72?
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 12.04 LTS 64bit & Windows 7 Ultimate 64bit

  5. #5
    Join Date
    Sep 2008
    Location
    England
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Can't ping server

    It looks correct to me,

    Code:
    rhys@Tomato:~$ ifconfig
    eth0      Link encap:Ethernet  HWaddr 00:1f:d0:d9:b2:c5  
              inet addr:192.168.1.72  Bcast:192.168.1.255  Mask:255.255.255.0
              inet6 addr: fe80::21f:d0ff:fed9:b2c5/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:4503012 errors:0 dropped:0 overruns:0 frame:0
              TX packets:5944157 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:3661397857 (3.6 GB)  TX bytes:6665486100 (6.6 GB)
    
    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:3338 errors:0 dropped:0 overruns:0 frame:0
              TX packets:3338 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0 
              RX bytes:260429 (260.4 KB)  TX bytes:260429 (260.4 KB)

  6. #6
    Join Date
    Nov 2009
    Location
    Segur De Calafell, Spain
    Beans
    11,660
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Can't ping server

    Are you sure there is no firewall active?

    Did you try pinging the name, and also pinging the IP .72?
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 12.04 LTS 64bit & Windows 7 Ultimate 64bit

  7. #7
    Join Date
    Sep 2008
    Location
    England
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Can't ping server

    Yeah, I've double checked all that.

    Code:
    rhys@Tomato:~$ sudo ufw status verbose
    Status: inactive
    Code:
    rhys@orange:~$ ping 192.168.1.72
    PING 192.168.1.72 (192.168.1.72) 56(84) bytes of data.
    ^C
    --- 192.168.1.72 ping statistics ---
    6 packets transmitted, 0 received, 100% packet loss, time 5038ms
    Code:
    rhys@orange:~$ ssh 'rhys@mango'
    rhys@mango's password: 
    Welcome to Ubuntu 12.10 - XBMCbuntu (GNU/Linux 3.5.0-22-generic i686)
    
     * Documentation:  https://help.ubuntu.com/
    
    Last login: Tue May 21 19:21:58 2013 from tomato.local
    rhys@Mango:~$ ping tomato
    PING tomato (67.215.65.132) 56(84) bytes of data.
    64 bytes from hit-nxdomain.opendns.com (67.215.65.132): icmp_req=1 ttl=51 time=36.0 ms
    64 bytes from hit-nxdomain.opendns.com (67.215.65.132): icmp_req=2 ttl=51 time=33.4 ms
    64 bytes from hit-nxdomain.opendns.com (67.215.65.132): icmp_req=3 ttl=51 time=30.3 ms
    64 bytes from hit-nxdomain.opendns.com (67.215.65.132): icmp_req=4 ttl=51 time=12.3 ms
    ^C
    --- tomato ping statistics ---
    4 packets transmitted, 4 received, 0% packet loss, time 3004ms
    rtt min/avg/max/mdev = 12.325/28.040/36.005/9.292 ms

  8. #8
    Join Date
    Nov 2009
    Location
    Segur De Calafell, Spain
    Beans
    11,660
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Can't ping server

    Did you notice that when pinging from orange to tomato it tries it on the private IP and when pinging from mango to tomato it does it on a public IP? So, pinging from mango works but on a public IP, not on private IP.

    Also, in some cases having ufw inactive doesn't mean much. Can you post this from tomato:
    Code:
    sudo iptables -L -n -v
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 12.04 LTS 64bit & Windows 7 Ultimate 64bit

  9. #9
    Join Date
    Sep 2008
    Location
    England
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Can't ping server

    I did not spot that. If I use the private IP then mango doesn't reslove it.

    Code:
    rhys@Mango:~$ ping 192.168.1.72
    PING 192.168.1.72 (192.168.1.72) 56(84) bytes of data.
    ^C
    --- 192.168.1.72 ping statistics ---
    7 packets transmitted, 0 received, 100% packet loss, time 6047ms
    Code:
    rhys@Tomato:~$ sudo iptables -L -n -v
    Chain INPUT (policy ACCEPT 13M packets, 11G bytes)
     pkts bytes target     prot opt in     out     source               destination         
        0     0 fail2ban-ssh  tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            multiport dports 22
    
    Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
     pkts bytes target     prot opt in     out     source               destination         
    
    Chain OUTPUT (policy ACCEPT 15M packets, 15G bytes)
     pkts bytes target     prot opt in     out     source               destination         
    
    Chain fail2ban-ssh (1 references)
     pkts bytes target     prot opt in     out     source               destination         
        0     0 RETURN     all  --  *      *       0.0.0.0/0            0.0.0.0/0
    EDIT:

    sudo nano /etc/network/interfaces

    Code:
    # The loopback network interface
    auto lo
    iface lo inet loopback
    
    # The primary network interface
    auto eth0
    iface eth0 inet static
            address 192.168.1.72
            netmask 255.255.255.0
            broadcast 192.168.1.255
            gateway 192.168.1.1
    Last edited by AmbiguousOutlier; May 21st, 2013 at 10:58 PM.

  10. #10
    Join Date
    Nov 2009
    Location
    Segur De Calafell, Spain
    Beans
    11,660
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Can't ping server

    iptables is OK, you have the policies as ACCEPT.

    But ping and ssh seems to work only on the public IP. Try ssh-ing with username@192.168.1.72 instead of username@tomato, from both mango and orange. I think it won't work.
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 12.04 LTS 64bit & Windows 7 Ultimate 64bit

Page 1 of 3 123 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •