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.
- 11-09-2011 #1Just 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
- 11-09-2011 #2
can the XP machine ping the Linux machine? are they on the same network? firewall maybe?
linux user # 503963
- 11-10-2011 #3Just Joined!
- Join Date
- Nov 2011
- Posts
- 28
- 11-10-2011 #4Trusted Penguin
- Join Date
- May 2011
- Posts
- 3,746
What about nmap ping? e.g.:
Have you tried the various protocols that can be used to ping? Here's an example using perl and the Net::Ping module:Code:nmap -n -sP 192.168.1.4
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(); }
- 11-10-2011 #5Just Joined!
- Join Date
- Nov 2011
- Posts
- 28
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
- 11-10-2011 #6Trusted Penguin
- Join Date
- May 2011
- Posts
- 3,746
no, that's not a good test. nmap ping the windows box ip address from your linux box.


Reply With Quote

