All of lore.kernel.org
 help / color / mirror / Atom feed
From: "R. Rajasekaran" <rrajas@yahoo.com>
To: netfilter@lists.netfilter.org
Subject: ICMP Redirect
Date: Sun, 7 May 2006 00:19:11 -0700 (PDT)	[thread overview]
Message-ID: <20060507071911.55929.qmail@web35005.mail.mud.yahoo.com> (raw)


Kindly help me in understanding the observation of 
following experiment :-



 --------         --------
 |      |         |      |
 |  H1  |---------|  H2  |
 |      |         |      |
 --------         --------

H1 and H2 are two Linux host.

IP of H1   = 10.0.0.1
MAC of H1  = 00:00:00:00:00:01


IP of H2   = 10.0.0.2
MAC of H2  = 00:00:00:00:00:02

Now I did the following configurations.

1) In host H1
-------------
I added a static arp entry in the arp cache of the
host H1
as  arp -s 10.0.0.3 00:00:00:00:00:02.

(ie) the mac address for 10.0.0.3 as H2's mac address.


2) In host H2
-------------
Enabled IP forwarding.


Then from host H1, I made a ping 10.0.0.3.
Here I found that ICMP request from host H1 reaches
host H2,
and host H2 sends the following as ICMP redirect
messages.

From 10.0.0.2: icmp_seq=1 Redirect Host (New nexthop:
10.0.0.3)
From 10.0.0.2: icmp_seq=2 Redirect Host (New nexthop:
10.0.0.3)
From 10.0.0.2: icmp_seq=3 Redirect Host (New nexthop:
10.0.0.3)

The above behaviour is of Linux functionality.
Here the redirect uses the next-hop address as
10.0.0.3.  What is the reason of it ?
It seems confusing because the ping was send just to
that address.

- R. Rajasekaran.

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


             reply	other threads:[~2006-05-07  7:19 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-07  7:19 R. Rajasekaran [this message]
2006-05-09 12:25 ` ICMP Redirect Cedric Blancher
  -- strict thread matches above, loose matches on Subject: below --
2005-03-18 15:29 ICMP REDIRECT vardhaman.m
2002-07-10 17:11 icmp redirect Jan Humme
2002-07-10 17:39 ` Ramin Alidousti
2002-07-10 17:48   ` Jan Humme
2002-07-10 17:46 ` Antony Stone
2002-07-10 18:31   ` Jan Humme

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060507071911.55929.qmail@web35005.mail.mud.yahoo.com \
    --to=rrajas@yahoo.com \
    --cc=netfilter@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.