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

Thread: Not able to ping other IP

  1. #1
    Join Date
    May 2010
    Beans
    92

    Not able to ping other IP

    Code:
    girish@girish-OptiPlex-3050:~$ lsb_release -a
    No LSB modules are available.
    Distributor ID:   Ubuntu
    Description:      Ubuntu 16.04.3 LTS
    Release:    16.04
    Codename:   xenial
    
    
    girish@girish-OptiPlex-3050:~$ uname -a
    Linux girish-OptiPlex-3050 4.10.0-28-generic #32~16.04.2-Ubuntu SMP Thu Jul 20 10:19:48 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
    
    
    girish@girish-OptiPlex-3050:~$ route -n
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
    0.0.0.0         192.168.0.1     0.0.0.0         UG    100    0        0 enp1s0
    169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 enp1s0
    192.168.0.0     0.0.0.0         255.255.255.0   U     100    0        0 enp1s0
    
    
    girish@girish-OptiPlex-3050:~$ ifconfig -a
    enp1s0    Link encap:Ethernet  HWaddr 54:bf:64:6c:fc:49 
              inet addr:192.168.0.86  Bcast:192.168.0.255  Mask:255.255.255.0
              inet6 addr: fe80::a980:f199:ad91:2f88/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:85510 errors:0 dropped:342 overruns:0 frame:0
              TX packets:3582 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:7170468 (7.1 MB)  TX bytes:257544 (257.5 KB)
    
    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:65536  Metric:1
              RX packets:2459 errors:0 dropped:0 overruns:0 frame:0
              TX packets:2459 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:211309 (211.3 KB)  TX bytes:211309 (211.3 KB)
    
    
    girish@girish-OptiPlex-3050:~$ cat /etc/network/interfaces
    # interfaces(5) file used by ifup(8) and ifdown(8)
    auto lo
    iface lo inet loopback
    
    auto enp1s0
    iface enp1s0 inet static
    address 192.168.0.86
    netmask 255.255.255.0
    gateway 192.168.0.1
    dns-nameservers 8.8.4.4 8.8.8.8
    
    
    girish@girish-OptiPlex-3050:~$ cat /etc/resolv.conf
    # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
    #     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
    nameserver 8.8.4.4
    nameserver 8.8.8.8
    
    
    girish@girish-OptiPlex-3050:~$ sudo lshw -class network
    [sudo] password for girish:
      *-network              
           description: Ethernet interface
           product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
           vendor: Realtek Semiconductor Co., Ltd.
           physical id: 0
           bus info: pci@0000:01:00.0
           logical name: enp1s0
           version: 15
           serial: 54:bf:64:6c:fc:49
           size: 100Mbit/s
           capacity: 1Gbit/s
           width: 64 bits
           clock: 33MHz
           capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
           configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full firmware=rtl8168h-2_0.0.2 02/26/15 ip=192.168.0.86 latency=0 link=yes multicast=yes port=MII speed=100Mbit/s
           resources: irq:125 ioport:e000(size=256) memory:f7004000-f7004fff memory:f7000000-f7003fff
    
    
    girish@girish-OptiPlex-3050:~$ ping 192.168.0.86
    PING 192.168.0.86 (192.168.0.86) 56(84) bytes of data.
    64 bytes from 192.168.0.86: icmp_seq=1 ttl=64 time=0.059 ms
    64 bytes from 192.168.0.86: icmp_seq=2 ttl=64 time=0.054 ms
    64 bytes from 192.168.0.86: icmp_seq=3 ttl=64 time=0.061 ms
    ^C
    --- 192.168.0.86 ping statistics ---
    3 packets transmitted, 3 received, 0% packet loss, time 2042ms
    rtt min/avg/max/mdev = 0.054/0.058/0.061/0.003 ms
    
    
    
    girish@girish-OptiPlex-3050:~$ ping 192.168.0.87
    PING 192.168.0.87 (192.168.0.87) 56(84) bytes of data.
    ^C
    --- 192.168.0.87 ping statistics ---
    8 packets transmitted, 0 received, 100% packet loss, time 7130ms
    
    
    
    girish@girish-OptiPlex-3050:~$ ping 192.168.0.1
    PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
    From 192.168.0.86 icmp_seq=1 Destination Host Unreachable
    From 192.168.0.86 icmp_seq=2 Destination Host Unreachable
    From 192.168.0.86 icmp_seq=3 Destination Host Unreachable
    ^C
    --- 192.168.0.1 ping statistics ---
    7 packets transmitted, 0 received, +3 errors, 100% packet loss, time 6090ms
    pipe 3
    While I am able to access my local http://192.168.0.87:82/ in firefox.

    Actually, I am going to add network printer which is shared on windows machine, but ubuntu is not finding it when I am trying to
    configure it in ubuntu. So, post have two basic issues of :

    1.Not able to ping other local IP and gateway.
    2.Not finding the network printer which is shared on windows machine.

    Kindly help me. I will try my best to provide you any other required info ASAP.

    Thanks.

  2. #2
    Join Date
    Nov 2007
    Location
    London, England
    Beans
    6,819
    Distro
    Xubuntu 19.10 Eoan Ermine

    Re: Not able to ping other IP

    It is interesting that pinging 192.168.0.1 and 192.168.0.87 give different results. I think maybe .87 is there but is ignoring pings (firewalled?) but .1 doesn't actually exist. After trying to ping both of them, try the command
    Code:
    ip neighbor
    to get more info on that, and post the results. See if the devices are at least answering ARP requests. It could be that the gateway should be 192.168.0.254 - routers are sometimes given the highest usable address on a subnet.
    Last edited by The Cog; 3 Weeks Ago at 08:47 AM.

  3. #3
    Join Date
    May 2010
    Beans
    92

    Re: Not able to ping other IP

    Quote Originally Posted by The Cog View Post
    It is interesting that pinging 192.168.0.1 and 192.168.0.87 give different results. I think maybe .87 is there but is ignoring pings (firewalled?) but .1 doesn't actually exist. After trying to ping both of them, try the command
    Code:
    ip neighbor
    to get more info on that, and post the results. See if the devices are at least answering ARP requests. It could be that the gateway should be 192.168.0.254 - routers are sometimes given the highest usable address on a subnet.
    Today I have attached one Wifi Receiver to the PC and now I am using internet by using Hotspot of my mobile phone. This happens when I disconnects my Ethernet Network. So here it is required output please
    Code:
    girish@girish-OptiPlex-3050:~$ ip neighbor
    192.168.43.1 dev wlx00e12900f694 lladdr a8:9c:ed:bc:57:80 REACHABLE
    fe80::1ea5:32ff:fe78:8238 dev enp1s0 lladdr 1c:a5:32:78:82:38 router STALE
    fe80::aa9c:edff:febc:5780 dev wlx00e12900f694 lladdr a8:9c:ed:bc:57:80 router STALE
    girish@girish-OptiPlex-3050:~$

  4. #4
    Join Date
    May 2010
    Beans
    92

    Re: Not able to ping other IP

    Any update please.

  5. #5
    Join Date
    Nov 2007
    Location
    London, England
    Beans
    6,819
    Distro
    Xubuntu 19.10 Eoan Ermine

    Re: Not able to ping other IP

    Sorry, I didn't notice your earlier reply.

    There is something badly wrong. But I don't know what. After you tried to ping 192.168.0.1 and 192.168.0.87, I would expect them to appear listed in the neighbour table - possible marked with FAILED, but they should be there. The fact they are not confuses me. The only next step I can think of is to run
    Code:
    sudo tcpdump -nnt -i enp1s0
    and trace what is happening at packet level when you try to ping them.

  6. #6
    Join Date
    May 2010
    Beans
    92

    Re: Not able to ping other IP

    Quote Originally Posted by The Cog View Post
    Sorry, I didn't notice your earlier reply.

    There is something badly wrong. But I don't know what. After you tried to ping 192.168.0.1 and 192.168.0.87, I would expect them to appear listed in the neighbour table - possible marked with FAILED, but they should be there. The fact they are not confuses me. The only next step I can think of is to run
    Code:
    sudo tcpdump -nnt -i enp1s0
    and trace what is happening at packet level when you try to ping them.
    There is no need to Sorry please, I do understand the position.

    I am really in dark what is happening on this PC. It is not pinging any other IP other than self pinging. While our intranet app whom I access by 192.168.0.87 is working fine by giving http://192.168.0.87:82/Default.aspx in browser. Even it is not pinging 192.168.0.87.
    Code:
    girish@girish-OptiPlex-3050:~$ ping 198.168.0.87
    PING 198.168.0.87 (198.168.0.87) 56(84) bytes of data.
    From 198.168.0.87 icmp_seq=1 Destination Host Unreachable
    From 198.168.0.87 icmp_seq=3 Destination Host Unreachable
    ^C
    --- 198.168.0.87 ping statistics ---
    7 packets transmitted, 0 received, +2 errors, 100% packet loss, time 6086ms
    pipe 4
    girish@girish-OptiPlex-3050:~$
    As you suggested to sudo tcpdump -nnt -i enp1s0, I got a long output which is not understandable to me.

    Typo in Ping command...

    Code:
    girish@girish-OptiPlex-3050:~$ ping 192.168.0.87
    PING 192.168.0.87 (192.168.0.87) 56(84) bytes of data.
    ^C
    --- 192.168.0.87 ping statistics ---
    7 packets transmitted, 0 received, 100% packet loss, time 6126ms
    
    girish@girish-OptiPlex-3050:~$

  7. #7
    Join Date
    Nov 2007
    Location
    London, England
    Beans
    6,819
    Distro
    Xubuntu 19.10 Eoan Ermine

    Re: Not able to ping other IP

    OK, this should cut down the amount of output when you trace:
    Code:
    sudo tcpdump -nnt -i enp1s0 icmp or arp
    While this trace is running, try to ping both 192.168.0.1 and 192.168.0.87 in another terminal window.
    The run ip neighbor again - I would really hope to see entries for those ping targets.

    Are you running a firewall in the PC?
    Code:
    sudo iptables -nvL
    will show any rules currently active.

  8. #8
    Join Date
    May 2010
    Beans
    92

    Re: Not able to ping other IP

    Quote Originally Posted by The Cog View Post
    OK, this should cut down the amount of output when you trace:
    Code:
    sudo tcpdump -nnt -i enp1s0 icmp or arp
    While this trace is running, try to ping both 192.168.0.1 and 192.168.0.87 in another terminal window.
    The run ip neighbor again - I would really hope to see entries for those ping targets.

    Are you running a firewall in the PC?
    Code:
    sudo iptables -nvL
    will show any rules currently active.
    At this point in one terminal :
    sudo tcpdump -nnt -i enp1s0 icmp or arp
    is running, and in 2nd terminal :

    Code:
    girish@girish-OptiPlex-3050:~$ ip neighbor
    192.168.0.87 dev enp1s0 lladdr 74:27:ea:07:b5:57 STALE
    192.168.0.1 dev enp1s0  FAILED
    192.168.43.1 dev wlx00c3f213fca7 lladdr a8:9c:ed:bc:57:80 DELAY
    192.168.0.90 dev enp1s0 lladdr 00:11:d8:ba:c3:6a STALE
    fe80::aa9c:edff:febc:5780 dev wlx00c3f213fca7 lladdr a8:9c:ed:bc:57:80 router STALE
    fe80::1ea5:32ff:fe78:8238 dev enp1s0 lladdr 1c:a5:32:78:82:38 router STALE
    
    
    girish@girish-OptiPlex-3050:~$ sudo iptables -nvL
    Chain INPUT (policy DROP 46 packets, 1420 bytes)
     pkts bytes target     prot opt in     out     source               destination         
     3958 1457K ufw-before-logging-input  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
     3958 1457K ufw-before-input  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
     1367  199K ufw-after-input  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
       46  1420 ufw-after-logging-input  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
       46  1420 ufw-reject-input  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
       46  1420 ufw-track-input  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
    
    Chain FORWARD (policy DROP 0 packets, 0 bytes)
     pkts bytes target     prot opt in     out     source               destination         
        0     0 ufw-before-logging-forward  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
        0     0 ufw-before-forward  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
        0     0 ufw-after-forward  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
        0     0 ufw-after-logging-forward  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
        0     0 ufw-reject-forward  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
        0     0 ufw-track-forward  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
    
    Chain OUTPUT (policy ACCEPT 157 packets, 12704 bytes)
     pkts bytes target     prot opt in     out     source               destination         
     3091  304K ufw-before-logging-output  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
     3091  304K ufw-before-output  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
      790 60931 ufw-after-output  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
      790 60931 ufw-after-logging-output  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
      790 60931 ufw-reject-output  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
      790 60931 ufw-track-output  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
    
    Chain ufw-after-forward (1 references)
     pkts bytes target     prot opt in     out     source               destination         
    
    Chain ufw-after-input (1 references)
     pkts bytes target     prot opt in     out     source               destination         
     1057 83022 ufw-skip-to-policy-input  udp  --  *      *       0.0.0.0/0            0.0.0.0/0            udp dpt:137
       32  7025 ufw-skip-to-policy-input  udp  --  *      *       0.0.0.0/0            0.0.0.0/0            udp dpt:138
        0     0 ufw-skip-to-policy-input  tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp dpt:139
        5   240 ufw-skip-to-policy-input  tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp dpt:445
      215  106K ufw-skip-to-policy-input  udp  --  *      *       0.0.0.0/0            0.0.0.0/0            udp dpt:67
        0     0 ufw-skip-to-policy-input  udp  --  *      *       0.0.0.0/0            0.0.0.0/0            udp dpt:68
       12   716 ufw-skip-to-policy-input  all  --  *      *       0.0.0.0/0            0.0.0.0/0            ADDRTYPE match dst-type BROADCAST
    
    Chain ufw-after-logging-forward (1 references)
     pkts bytes target     prot opt in     out     source               destination         
        0     0 LOG        all  --  *      *       0.0.0.0/0            0.0.0.0/0            limit: avg 3/min burst 10 LOG flags 0 level 4 prefix "[UFW BLOCK] "
    
    Chain ufw-after-logging-input (1 references)
     pkts bytes target     prot opt in     out     source               destination         
       39  1200 LOG        all  --  *      *       0.0.0.0/0            0.0.0.0/0            limit: avg 3/min burst 10 LOG flags 0 level 4 prefix "[UFW BLOCK] "
    
    Chain ufw-after-logging-output (1 references)
     pkts bytes target     prot opt in     out     source               destination         
    
    Chain ufw-after-output (1 references)
     pkts bytes target     prot opt in     out     source               destination         
    
    Chain ufw-before-forward (1 references)
     pkts bytes target     prot opt in     out     source               destination         
        0     0 ACCEPT     all  --  *      *       0.0.0.0/0            0.0.0.0/0            ctstate RELATED,ESTABLISHED
        0     0 ACCEPT     icmp --  *      *       0.0.0.0/0            0.0.0.0/0            icmptype 3
        0     0 ACCEPT     icmp --  *      *       0.0.0.0/0            0.0.0.0/0            icmptype 4
        0     0 ACCEPT     icmp --  *      *       0.0.0.0/0            0.0.0.0/0            icmptype 11
        0     0 ACCEPT     icmp --  *      *       0.0.0.0/0            0.0.0.0/0            icmptype 12
        0     0 ACCEPT     icmp --  *      *       0.0.0.0/0            0.0.0.0/0            icmptype 8
        0     0 ufw-user-forward  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
    
    Chain ufw-before-input (1 references)
     pkts bytes target     prot opt in     out     source               destination         
      638 55467 ACCEPT     all  --  lo     *       0.0.0.0/0            0.0.0.0/0           
     1815 1182K ACCEPT     all  --  *      *       0.0.0.0/0            0.0.0.0/0            ctstate RELATED,ESTABLISHED
        0     0 ufw-logging-deny  all  --  *      *       0.0.0.0/0            0.0.0.0/0            ctstate INVALID
        0     0 DROP       all  --  *      *       0.0.0.0/0            0.0.0.0/0            ctstate INVALID
        0     0 ACCEPT     icmp --  *      *       0.0.0.0/0            0.0.0.0/0            icmptype 3
        0     0 ACCEPT     icmp --  *      *       0.0.0.0/0            0.0.0.0/0            icmptype 4
        0     0 ACCEPT     icmp --  *      *       0.0.0.0/0            0.0.0.0/0            icmptype 11
        0     0 ACCEPT     icmp --  *      *       0.0.0.0/0            0.0.0.0/0            icmptype 12
        0     0 ACCEPT     icmp --  *      *       0.0.0.0/0            0.0.0.0/0            icmptype 8
        0     0 ACCEPT     udp  --  *      *       0.0.0.0/0            0.0.0.0/0            udp spt:67 dpt:68
     1505  219K ufw-not-local  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
      138 20866 ACCEPT     udp  --  *      *       0.0.0.0/0            224.0.0.251          udp dpt:5353
        0     0 ACCEPT     udp  --  *      *       0.0.0.0/0            239.255.255.250      udp dpt:1900
     1367  199K ufw-user-input  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
    
    Chain ufw-before-logging-forward (1 references)
     pkts bytes target     prot opt in     out     source               destination         
    
    Chain ufw-before-logging-input (1 references)
     pkts bytes target     prot opt in     out     source               destination         
    
    Chain ufw-before-logging-output (1 references)
     pkts bytes target     prot opt in     out     source               destination         
    
    Chain ufw-before-output (1 references)
     pkts bytes target     prot opt in     out     source               destination         
      638 55467 ACCEPT     all  --  *      lo      0.0.0.0/0            0.0.0.0/0           
     1663  188K ACCEPT     all  --  *      *       0.0.0.0/0            0.0.0.0/0            ctstate RELATED,ESTABLISHED
      790 60931 ufw-user-output  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
    
    Chain ufw-logging-allow (0 references)
     pkts bytes target     prot opt in     out     source               destination         
        0     0 LOG        all  --  *      *       0.0.0.0/0            0.0.0.0/0            limit: avg 3/min burst 10 LOG flags 0 level 4 prefix "[UFW ALLOW] "
    
    Chain ufw-logging-deny (2 references)
     pkts bytes target     prot opt in     out     source               destination         
        0     0 RETURN     all  --  *      *       0.0.0.0/0            0.0.0.0/0            ctstate INVALID limit: avg 3/min burst 10
        0     0 LOG        all  --  *      *       0.0.0.0/0            0.0.0.0/0            limit: avg 3/min burst 10 LOG flags 0 level 4 prefix "[UFW BLOCK] "
    
    Chain ufw-not-local (1 references)
     pkts bytes target     prot opt in     out     source               destination         
        5   240 RETURN     all  --  *      *       0.0.0.0/0            0.0.0.0/0            ADDRTYPE match dst-type LOCAL
      184 22286 RETURN     all  --  *      *       0.0.0.0/0            0.0.0.0/0            ADDRTYPE match dst-type MULTICAST
     1316  197K RETURN     all  --  *      *       0.0.0.0/0            0.0.0.0/0            ADDRTYPE match dst-type BROADCAST
        0     0 ufw-logging-deny  all  --  *      *       0.0.0.0/0            0.0.0.0/0            limit: avg 3/min burst 10
        0     0 DROP       all  --  *      *       0.0.0.0/0            0.0.0.0/0           
    
    Chain ufw-reject-forward (1 references)
     pkts bytes target     prot opt in     out     source               destination         
    
    Chain ufw-reject-input (1 references)
     pkts bytes target     prot opt in     out     source               destination         
    
    Chain ufw-reject-output (1 references)
     pkts bytes target     prot opt in     out     source               destination         
    
    Chain ufw-skip-to-policy-forward (0 references)
     pkts bytes target     prot opt in     out     source               destination         
        0     0 DROP       all  --  *      *       0.0.0.0/0            0.0.0.0/0           
    
    Chain ufw-skip-to-policy-input (7 references)
     pkts bytes target     prot opt in     out     source               destination         
     1321  197K DROP       all  --  *      *       0.0.0.0/0            0.0.0.0/0           
    
    Chain ufw-skip-to-policy-output (0 references)
     pkts bytes target     prot opt in     out     source               destination         
        0     0 ACCEPT     all  --  *      *       0.0.0.0/0            0.0.0.0/0           
    
    Chain ufw-track-forward (1 references)
     pkts bytes target     prot opt in     out     source               destination         
    
    Chain ufw-track-input (1 references)
     pkts bytes target     prot opt in     out     source               destination         
    
    Chain ufw-track-output (1 references)
     pkts bytes target     prot opt in     out     source               destination         
       77  4620 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            ctstate NEW
      556 43607 ACCEPT     udp  --  *      *       0.0.0.0/0            0.0.0.0/0            ctstate NEW
    
    Chain ufw-user-forward (1 references)
     pkts bytes target     prot opt in     out     source               destination         
    
    Chain ufw-user-input (1 references)
     pkts bytes target     prot opt in     out     source               destination         
    
    Chain ufw-user-limit (0 references)
     pkts bytes target     prot opt in     out     source               destination         
        0     0 LOG        all  --  *      *       0.0.0.0/0            0.0.0.0/0            limit: avg 3/min burst 5 LOG flags 0 level 4 prefix "[UFW LIMIT BLOCK] "
        0     0 REJECT     all  --  *      *       0.0.0.0/0            0.0.0.0/0            reject-with icmp-port-unreachable
    
    Chain ufw-user-limit-accept (0 references)
     pkts bytes target     prot opt in     out     source               destination         
        0     0 ACCEPT     all  --  *      *       0.0.0.0/0            0.0.0.0/0           
    
    Chain ufw-user-logging-forward (0 references)
     pkts bytes target     prot opt in     out     source               destination         
    
    Chain ufw-user-logging-input (0 references)
     pkts bytes target     prot opt in     out     source               destination         
    
    Chain ufw-user-logging-output (0 references)
     pkts bytes target     prot opt in     out     source               destination         
    
    Chain ufw-user-output (1 references)
     pkts bytes target     prot opt in     out     source               destination         
    girish@girish-OptiPlex-3050:~$
    I stopped the running command in 1st terminal by pressing Ctrl+C and copy paste the output in one document, searched 192.168.0.87 and found 37 (Search counter is saying) entries like this :
    Code:
    ARP, Request who-has 192.168.0.108 tell 192.168.0.103, length 46
    ARP, Request who-has 192.168.0.83 tell 192.168.0.90, length 46
    ARP, Request who-has 192.168.0.91 tell 192.168.0.87, length 46
    ARP, Request who-has 192.168.0.91 tell 192.168.0.91, length 46
    
    After few more lines ....
    
    ARP, Request who-has 192.168.1.98 tell 192.168.1.91, length 46
    ARP, Request who-has 192.168.0.100 tell 192.168.0.90, length 46
    IP 192.168.0.86 > 192.168.0.87: ICMP echo request, id 3471, seq 1, length 64
    ARP, Request who-has 192.168.1.110 tell 192.168.1.92, length 46
    ARP, Request who-has 192.168.1.99 tell 192.168.1.91, length 46
    IP 192.168.0.86 > 192.168.0.87: ICMP echo request, id 3471, seq 2, length 64
    IP 192.168.0.86 > 192.168.0.87: ICMP echo request, id 3471, seq 3, length 64
    ARP, Request who-has 192.168.0.77 tell 192.168.0.87, length 46
    ARP, Request who-has 192.168.0.116 tell 10.20.100.90, length 46
    ARP, Request who-has 192.168.0.100 tell 192.168.0.90, length 46
    IP 192.168.0.86 > 192.168.0.87: ICMP echo request, id 3471, seq 4, length 64
    ARP, Request who-has 192.168.0.116 tell 10.20.100.90, length 46
    ARP, Request who-has 192.168.0.110 tell 192.168.0.92, length 46
    ARP, Request who-has 192.168.0.101 tell 192.168.0.90, length 46
    IP 192.168.0.86 > 192.168.0.87: ICMP echo request, id 3471, seq 5, length 64
    I am really thankful to you for your continue support.

  9. #9
    Join Date
    Nov 2007
    Location
    London, England
    Beans
    6,819
    Distro
    Xubuntu 19.10 Eoan Ermine

    Re: Not able to ping other IP

    That is good info.

    The ip neighbor stuff tells us a lot:
    192.168.0.87 dev enp1s0 lladdr 74:27:ea:07:b5:57 STALE
    This tells us that 192.168.0.87 exists, and is able to communicate with you. I assume that since you cannot ping it, it has a firewall blocking pings. But it is there.
    192.168.0.1 dev enp1s0 FAILED
    This tells us that we have no communication with 192.168.0.1. It is probably not on the network at all. Another common address to give to routers that you could try is the last valid address - 192.168.0.254. As this is your default gateway, you are not going to be able to communicate with anything that is not on the local network. It is also possible that there is another device on the network with your IP address 192.168.0.86 and that the gateway is sending its replies to that address instead of to you.

    I don't see anything in the firewall rules that might be interfering, although you may want to disable ufw for a short while to be sure - ufw makes a right tangled mess of iptables rules that is difficult to follow.

    In your tcpdump, I can see you are sending ping requests to 192.168.0.87 but not getting any reply. This fits with the idea that its firewall is dropping pings.
    I don't see any arp requests for 192.168.0.1 in the tcpdump output, but I am guessing that you just didn't happen to post that bit of the trace.

    Back to the original problem: Is 192.168.0.87 the windows box with the printer? Do you know what protocol you are trying to use to contact the printer with?
    I'm not good with windows networking - can anyone tell you what port number you need to use to talk to the printer?

  10. #10
    Join Date
    Nov 2019
    Location
    London, UK
    Beans
    17

    Re: Not able to ping other IP

    The config looks fine. You could try running "nmap 192.168.0.0/24". This will scan for all devices and any open ports on your subnet. If it picks up nothing at all then then it must be an issue on the local machine. If it still does this with the firewall turned off then it could be a hardware failure of the network card or cabling issue?

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
  •