Skip to contentSkip to conversation

iproute2 and routing entries

LARTC Daniel Bergqvist [email protected] 1 participant 1 message Nov 6, 2000

lore
Share & tools
lore

Daniel Bergqvist [email protected]

author
#0 lore raw

<PRE>I have used mask to /32 (255.255.255.255) to get control over the routing table. It's useful then you want to save IP-addresses.

Regards,
Daniel

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

</PRE>