Re: [LARTC] Why 'ping' only succeed in one direction?

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thank you very much!

Rodrigo's method solve the problem at once.  There is not ICMP redirect
message sent and everything becomes good.

I've found another method : that is to add all addresses of Sun-1, Sun-2
to Solaris /etc/hosts file, no modification needed on Linux box. Then
when ping each other, rediect message is received and ping succeed with a
little
delay.But,  I don't understand why Solaris's ping need /etc/hosts as its
telnetd and ftpd does.

The last, I'd show my great thanks to you all.


Best regards

James Shen





> On Wed, May 30, 2001 at 04:40:54PM +0800, shen jing wrote:
>
> > > Thank you very much.
> >
> > I've checked the file , they have the following content:
> >
> > /proc/sys/net/ipv4/conf/all/rp_filter       :    1
> > /proc/sys/net/ipv4/conf/default/rp_filter:    0
> > /proc/sys/net/ipv4/conf/eth0/rp_filter:        0
> > /proc/sys/net/ipv4/conf/lo/rp_filter:            0
> >
> > the ip route  says:
> >
> > [root@xxxxxx lo]# ip route
> > 192.168.1.0/24 dev eth0  proto kernel  scope link  src 192.168.1.1
> > 210.32.131.0/24 dev eth0  proto kernel  scope link  src 210.32.131.166
> > 127.0.0.0/8 dev lo  scope link
> > default via 210.32.131.1 dev eth0
> > default via 210.32.131.1 dev eth0  src 210.32.131.166  metric 1
> > [root@xxxxxx lo]#
> >
> > I don't understand what's  the files under  all/  and default/ for.
> > And the tcpdump on linuxbox and snoop on Sun both shows
> > icmp echo request and icmp echo reply has been received.
> > But why 'ping 210.32.131.97' always show nothing when executed
> > on 192.168.1.8?
>
> It might be that the linux router sends you ICMP redirects as the
> forwarding interface is the same as the incoming interface but
> it also should've happened when you "ping 192.168.1.8 "on Sun-1.
>
> How did you create eth0:0? With "ifconfig" or "ip addr"?
> What is the output of "ifconfig -a"? Do you see 210.32.131.166
> as eth0:0 (meaning that it is an alias? If you'd created it with
> "ip addr" you shouldn't have had ":0" there.
>
> I'd suggest you to send the output of tcpdump when you
> "ping 210.32.131.97" on Sun-2 to see what is going on.
>
> Ramin
>
> >
> >
> >
> > James Shen




[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux