All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ard van Breemen <ard@kwaak.net>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] ip routing problems in 2.4.20
Date: Mon, 05 May 2003 12:28:57 +0000	[thread overview]
Message-ID: <marc-lartc-105213785427542@msgid-missing> (raw)
In-Reply-To: <marc-lartc-105213310523718@msgid-missing>

On Mon, May 05, 2003 at 01:21:52PM +0200, ulrich schwarz wrote:
> Ard van Breemen wrote:
> >Hi,
> >Has anybody noticed that when:
> >ip addr add 192.168.0.1/32 dev eth0
> >ip route add 192.168.0.2/32 dev eth0
> 
> /32? this would be a subnetmask with one host per subnet - so how could 
> the host communicate with a router in it's own subnet? not at all.

The use of whatever ip address to bind an interface to the ip
stack should not have any consequences to the arp behaviour if
rp_filter=0. If I said:
ip addr add 127.0.0.1/32 dev eth0
ip link set up eth0
echo 0 > /proc/sys/net/ipv4/conf/eth0/rp_filter

it should answer any arp request for any of it's ip addresses.
Adding a route to a device only makes sure that you can make
rp_filter=1.
At least that used to be the behaviour before 2.4.20. I've tested
a lot of this stuff, and it is used in a lot of places (not only
by me). It would hurt a lot of people if it does not work any
more.

> it seems to me this doesn't make much sense. maybe i just haven't got 
> the point.

Split a /24 in a lot of smaller subnets on a firewall with > 50
interfaces.

-- 
mail          up  170+01:42,     8 users,  load 0.08, 0.14, 0.20
mistar1       up   28+19:46,    17 users,  load 0.02, 0.01, 0.00
Let your government know you value your freedom: sign the petition:
http://petition.eurolinux.org

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

  parent reply	other threads:[~2003-05-05 12:28 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-05 11:09 [LARTC] ip routing problems in 2.4.20 Ard van Breemen
2003-05-05 11:21 ` ulrich schwarz
2003-05-05 12:28 ` Ard van Breemen [this message]
2003-05-05 21:07 ` Julian Anastasov
2003-05-06 10:52 ` Ard van Breemen
2003-05-06 11:42 ` Julian Anastasov

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=marc-lartc-105213785427542@msgid-missing \
    --to=ard@kwaak.net \
    --cc=lartc@vger.kernel.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.