Host A can ping Host B, but not the other way round.

Hello,

I have a problem with the connection of these two Sun machine. Host A is running Solaris9 and host B is on Solaris10. Weird thing is A can ping B but B cannot ping A. I don't know what configuration set by the previous owner.

hostA:Solaris9 <172.16.1.1><--><172.16.1.2> solaris10:hostB

Thanks.

[344 byte] By [amanyus] at [2007-11-26 9:32:20]
# 1
One thing I have been told recently is that ping does not use the routing table to get back, put stores it's own path forward and takes to reverse route back.What kind of output does traceroute give?
HenryC at 2007-7-7 0:18:42 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 2
When you use 'ping -ns <host>' on both sides, do you get the same behavior?It is possible that the selected outbound interface of one of the machines is not the same as the interface you are trying to ping. That could give asymmetric results.-- Darren
Darren_Dunham at 2007-7-7 0:18:42 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 3

Since ping is composed of an icmp request and an icmp reply, firewalls can easily allow a ping to work one way and not the other. I would look for ipfilter or another firewall running on either host.

You can use tcpdump on host A to look at the raw traffic to see if host B's icmp request is reaching host A. If you see the icmp request from host B but not the icmp reply from host A, then the issue lies with host A.

If you don't see the icmp request reaching host A, then look at host B to solve the problem. If you see the icmp reply leaving host A, then the problem also lies with host B.

ron@carmel at 2007-7-7 0:18:42 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 4
try doing a ping -sn instead on the broken host.If it makes a difference then its a DNS problem.Make sure the host has a working dns config.Ie nameserver in /etc/resolv.confand "host: files dns" in /etc/nsswitch.conf
robertcohen at 2007-7-7 0:18:42 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 5
On host B check the 'hosts' entry in /etc/nsswitch.conf, if 'files' are specified, look for host A entry in /etc/hosts. If not in /etc/hosts, check if 'dns' is next in nsswitch.conf, if so, check you /etc/resolv.conf file and 'nameserver' entries.
mfredholm at 2007-7-7 0:18:42 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 6
Oh didn't check original post, from Aug 16, I wonder if hostB is stil trying to ping A? :)
mfredholm at 2007-7-7 0:18:42 > top of Java-index,Solaris Operating System,Solaris 10 Features...