Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* how to prevent ICMP redirects
@ 1998-03-31  5:00 stefan.osterman
  1998-04-01  5:00 ` Thilo Kielmann
  1998-04-02  5:00 ` Nikola Milutinovic
  0 siblings, 2 replies; 3+ messages in thread
From: stefan.osterman @ 1998-03-31  5:00 UTC (permalink / raw)



I'm a network engineer with a fairly low clue level in Digital Unix.
Wondering if there are some expert DEC Alpha sysadmins in this group
who can shed some light.

Systems with two interfaces each--one fddi and one ethernet--are growing
huge route tables over time.  Flags indicate routes are being learned
via ICMP redirect.  Systems are not running any dynamic routing protocol
(routed or gated).  Is there a way to prevent routes learned by ICMP
redirect from being written into the routing table?

Current workaround is to periodically flush the routes then reread the
static routes back in, but I'd like a more elegant solution.

Thanks in advance.

-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/   Now offering spam-free web-based newsreading



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: how to prevent ICMP redirects
  1998-03-31  5:00 how to prevent ICMP redirects stefan.osterman
@ 1998-04-01  5:00 ` Thilo Kielmann
  1998-04-02  5:00 ` Nikola Milutinovic
  1 sibling, 0 replies; 3+ messages in thread
From: Thilo Kielmann @ 1998-04-01  5:00 UTC (permalink / raw)



Hi!

: Systems with two interfaces each--one fddi and one ethernet--are growing
: huge route tables over time.  Flags indicate routes are being learned
: via ICMP redirect.  Systems are not running any dynamic routing protocol
: (routed or gated).  Is there a way to prevent routes learned by ICMP
: redirect from being written into the routing table?

If I understood IP right, there is no chance of getting rid of ICMP redirect.
It's part of the IP/ICMP protocol suite.

But: ICMP redirect packets are created by routers whenever they get a packet
from one of your dual-homed hosts which has to leave the router on the same
port the packet got in. In fact, for the networks in charge of this problem,
you should choose different (default) routers in your static routing entries.
That way, you won't get no more ICMP redirect packets.
And as a side effect, you would statically perform the routing optimization
that by now your systems learn dynamically via ICMP redirect.

Anyhow: What is wrong with large routing tables? Do you e.g. suffer from
performance degradation?


Thilo Kielmann
-- 
Dr. Thilo Kielmann
Department of Mathematics and Computer Science, Vrije Universiteit
De Boelelaan 1081a, 1081 HV Amsterdam, The Netherlands
Phone:  +31 20 44 47789                                                /\,/\



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: how to prevent ICMP redirects
  1998-03-31  5:00 how to prevent ICMP redirects stefan.osterman
  1998-04-01  5:00 ` Thilo Kielmann
@ 1998-04-02  5:00 ` Nikola Milutinovic
  1 sibling, 0 replies; 3+ messages in thread
From: Nikola Milutinovic @ 1998-04-02  5:00 UTC (permalink / raw)



stefan.osterman@upnet.se wrote:
> 
> Systems with two interfaces each--one fddi and one ethernet--are growing
> huge route tables over time.  Flags indicate routes are being learned
> via ICMP redirect.  Systems are not running any dynamic routing protocol
> (routed or gated).  Is there a way to prevent routes learned by ICMP
> redirect from being written into the routing table?

ICMP redirect is generated in the following case:
1. you have two routers on the same LAN
2. ROUTER_1 handles (among other) LAN_1 and ROUTER_2 handles LAN_2
3. your host has only a default route to ROUTER_1
4. your hosts has to send a packet to a host HOST_2 on network LAN_2
5. ROUTER_1 receives a packet for LAN_2, which it is not supposed to
forward further.
   Instead, it forwards packet to ROUTER_2.
   Then it informs your host that ROUTER_2 handles HOST_2 via ICMP
redirect.

This is all normal, but it can get your routing table very large,
because it stores host forwarding information, instead of network ones.
The only way out, is to use some of the routing protocols, like RIP. A
very good choice for a simple host on a LAN is Routing Daemon - routed. 

Now, if I understand correctly, your machine has TWO interfaces???
So, it is (some kind of) a ROUTER, then???
(If it's not a router, than what is it?)

Well, in Gods name, why don't you have some routing protocol daemon
running on it?

Now, mind you, routed or gated can't stop ICMP redirect. Nobody can.
ICMP is built deep inside IP and it is almost obligatory. It is handled
directly by the kernel. The only thing that can be done (GateD only) is
to react on ICMP redirect and guess what the change was and than to
change it back.

Well, I hope this helps.

Cheers,
Nix.





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1998-04-02  5:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-03-31  5:00 how to prevent ICMP redirects stefan.osterman
1998-04-01  5:00 ` Thilo Kielmann
1998-04-02  5:00 ` Nikola Milutinovic

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox