From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Bergqvist daniel@netatonce.se Date: Mon, 06 Nov 2000 12:40:15 +0000 Subject: SV: [LARTC] iproute2 and routing entries Message-Id: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org
I have used mask to /32 (255.255.255.255) to get control over the rout=
ing
table. It's useful then you want to save IP-addresses.

Regards,
Daniel

> -----Ursprungligt meddelande-----
> Fr=E5n: lartc-ad=
min@mailman.ds9a.nl
> [mailto:lartc-ad=
min@mailman.ds9a.nl]F=F6r Martijn van Oosterhout
> Skickat: Monday, November 06, 2000 12:40 PM
> Till: bert hubert
> Kopia: lartc@mailman.d=
s9a.nl
> =C4mne: Re: [LARTC] iproute2 and routing entries
>
>
> bert hubert wrote:
> >
> > On Thu, Nov 02, 2000 at 06:35:48PM +0100, Michael Schoen w=
rote:
> > > Hi guys,
> > >
> > > i am just playing around with iproute2 and some quest=
ions
> came to my mind.
> > >
> > > I=B4m wondering why I get a route entry for the subne=
t of eth0s
> primary addr
> > > if I use the command "ip link set eth0 up".
> > >
> > > I=B4m personally not a friend of such behaviour, beca=
use I
> often need some
> > > strange routing set-ups. Is it possible to avoid this
> behaviour, meaning I
> > > only get routing entries if I really set them by myse=
lf?
> >
> > This behaviour has been hotly contested on the linux kerne=
l mailinglist,
> > perhaps the archives can tell you if there is a way around=
 this.
>
> The reason is that by setting an interface with the IP address A
> and netmask
> B you are implying that there is a network attached with the
> network address
> A&~B with the given netmask and so a route should be added =
appropriately.
>
> The last I heard was that one of the networking guys gave this
> explanantion
> and challenged someone to give an example of where this was the=
 wrong
> thing to do. The thread died there IIRC.
>
> Personally I think it's a great feature because in at least 99.=
99% of
> cases it's exactly what you want and I havn't found an example =
of the
> other 0.01%.
>
> --
> Martijn van Oosterhout <kleptog@cupid.suninternet.com>
> http://cupid=
.suninternet.com/~kleptog/
>
> _______________________________________________
> LARTC mailing list / L=
ARTC@mailman.ds9a.nl
> http:=
//mailman.ds9a.nl/mailman/listinfo/lartc HOWTO:
http://ds9a.nl/2.4Routing/