Sting <(E-Mail Removed)> wrote:
> Now I can't ping from 192.168.0.2
> to 192.168.0.1.
> I tried to remove the GW declaration from
> 192.168.0.2 (the gw was 192.168.0.254 , and
> in this connection both of them were not conneced to
> 192.168.0.254).
> I also tried, on 192.168.0.2 ,to set the gw to itself,
> namely 192.168.0.2 but it did not help.
That's what MS would show as the default route, but doing that certainly
will not work for *nix. It will in fact screw up *nix default routing.
> what adds to this strangeness is , that when
> I took the 192.168.0.1 and connected it to a different
> machine with the same non-corss cable - I could ping it!!
So the problem is caused by something on the 192.168.0.2 host.
Here are two messages and/or symptoms when pinging an IP address fails
(given that the cross-over connection to the second host succeeded),
along with probable causes:
NO ROUTE TO IP ADDRESS
o - Ping a non-local dotted quad IP address.
ping: sendto: Network is unreachable
WRONG ROUTE TO IP ADDRESS
o - ping 192.168.0.1
Hangs (Does "arp who-has 192.168.0.1 tell <192.168.0.1 host>") forever?
In addition to these since 192.168.0.1 is a firewall and, presumably
does NAT, iptables may be involved here. I don't have a great depth
of insight into iptables but these rules are used here (in addition to
other rules that probably don't apply) for a LAN interface:
#
# Rules for special networks not part of the Internet
#
$IPTABLES -A INPUT -p ALL -i $LAN_IFACE -s $LAN_IP_RANGE -j ACCEPT
$IPTABLES -A INPUT -p ALL -i $LO_IFACE -s $LO_IP -j ACCEPT
$IPTABLES -A INPUT -p ALL -i $LO_IFACE -s $LAN_IP -j ACCEPT
$IPTABLES -A INPUT -p ALL -i $LO_IFACE -s $INET_IP -j ACCEPT
$IPTABLES -A INPUT -p ALL -i $LAN_IFACE -d $LAN_BCAST_ADDRESS -j ACCEPT
With the obvious (I hope) meanings for the environmental variables.
These rules are a part of a firewall script by Oskar Andreasson.
Since the routing you posted looked okay to me, the firewall is very
likely causing the problem. The firewall host here could ping a host
attached with a cross-over cable, so I can't provide any symptom for
a ping failure due to a firewall.
--
Clifford Kite Email: "echo
xvgr_yvahk-(E-Mail Removed)|rot13"
PPP-Q&A links, downloads:
http://ckite.no-ip.net/