Find the answer to your Linux question:
Results 1 to 6 of 6
Hi, all: How can I check what happen with my own NIC driver which response "successful" when local PC "ping" a remote linux PC but "unreachable" when it "ping" a ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2011
    Posts
    28

    my "ping" report "successful" if remote is a linux, but "unreachable"


    Hi, all:

    How can I check what happen with my own NIC driver which response "successful" when local PC "ping" a remote linux PC but "unreachable" when it "ping" a remote windows XP PC? My writed driver runs in linux 3.0.4 kernel.


    thanks!
    li, kunlun

  2. #2
    Linux Enthusiast scathefire's Avatar
    Join Date
    Jan 2010
    Location
    Western Kentucky
    Posts
    626
    can the XP machine ping the Linux machine? are they on the same network? firewall maybe?
    linux user # 503963

  3. #3
    Just Joined!
    Join Date
    Nov 2011
    Posts
    28
    Quote Originally Posted by scathefire View Post
    can the XP machine ping the Linux machine? are they on the same network? firewall maybe?
    Yes. The XP can ping linux, they are also on the same local network!

  4. $spacer_open
    $spacer_close
  5. #4
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    What about nmap ping? e.g.:
    Code:
    nmap -n -sP 192.168.1.4
    Have you tried the various protocols that can be used to ping? Here's an example using perl and the Net::Ping module:
    Code:
    #!/usr/bin/perl -w
    use strict;
    use Net::Ping;
    $| = 1;
    my $host = shift || die "give me a host or ipaddr\n";
    for(qw/tcp udp icmp stream syn/){
      my $p = Net::Ping->new($_);
      print "ping using $_, $host is ";
      print ( ($p->ping($host)) ? "alive\n" : "down\n");
      $p->close();
    }

  6. #5
    Just Joined!
    Join Date
    Nov 2011
    Posts
    28
    Quote Originally Posted by atreyu View Post
    What about nmap ping? e.g.:
    Code:
    nmap -n -sP 192.168.1.4
    Have you tried the various protocols that can be used to ping? Here's an example using perl and the Net::Ping module:
    Code:
    #!/usr/bin/perl -w
    use strict;
    use Net::Ping;
    $| = 1;
    my $host = shift || die "give me a host or ipaddr\n";
    for(qw/tcp udp icmp stream syn/){
      my $p = Net::Ping->new($_);
      print "ping using $_, $host is ";
      print ( ($p->ping($host)) ? "alive\n" : "down\n");
      $p->close();
    }



    root@liklstar-server:~# ifconfig eth2 192.168.5.204 netmask 255.255.255.0
    root@liklstar-server:~# nmap -n -sP 192.168.5.104

    Starting Nmap 5.00 (...) at 2011-11-10 13:08 CST
    Host 192.168.5.104 is up (0.00018s latency).
    MAC Address: 00:16:41:3E:40:74 (USI)
    Nmap done: 1 IP address (1 host up) scanned in 0.36 seconds
    root@liklstar-server:~#

    Thank you very much!
    What do these information mean? Do these mean the 204 can reach 104 as if ping 104 successfully?

    li,kunlun

  7. #6
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    no, that's not a good test. nmap ping the windows box ip address from your linux box.

Posting Permissions

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