how to disable automatic route addition for an ipv6 address

3 messages, 2 authors, 2012-11-06 · open the first message on its own page

how to disable automatic route addition for an ipv6 address

From: devendra.aaru <hidden>
Date: 2012-11-05 17:52:17

while adding the ipv6 address to interface ,

ifconfig eth0 add 2001:8800:10fb:4444::ae/64

i am seeing the route addition automatically

route -n -A inet6 shows that one of the route from the above added address.

how to disable the automatic route addition?

or is it something that ipv6 protocol itself does?


thanks,

Re: how to disable automatic route addition for an ipv6 address

From: Mikael Abrahamsson <hidden>
Date: 2012-11-06 07:01:36

On Mon, 5 Nov 2012, devendra.aaru wrote:
while adding the ipv6 address to interface ,

ifconfig eth0 add 2001:8800:10fb:4444::ae/64

i am seeing the route addition automatically

route -n -A inet6 shows that one of the route from the above added address.
You mean you get a /64 route to the interface? I'd say that's normal, as 
you're adding a /64.

If you do not want this, add it as a /128 instead.

"ip -6 a a dev eth0 2000:db8::1/128" will add just that /128 to eth0 
interface without an encompassing network route.

"ip -6 r l" to verify (you will see just the IPv6 address to the device, 
ie an implicit /128).

-- 
Mikael Abrahamsson    email: swmike@swm.pp.se

Re: how to disable automatic route addition for an ipv6 address

From: devendra.aaru <hidden>
Date: 2012-11-06 11:07:05

On Tue, Nov 6, 2012 at 2:01 AM, Mikael Abrahamsson [off-list ref] wrote:
On Mon, 5 Nov 2012, devendra.aaru wrote:
quoted
while adding the ipv6 address to interface ,

ifconfig eth0 add 2001:8800:10fb:4444::ae/64

i am seeing the route addition automatically

route -n -A inet6 shows that one of the route from the above added
address.

You mean you get a /64 route to the interface? I'd say that's normal, as
you're adding a /64.

If you do not want this, add it as a /128 instead.

"ip -6 a a dev eth0 2000:db8::1/128" will add just that /128 to eth0
interface without an encompassing network route.

"ip -6 r l" to verify (you will see just the IPv6 address to the device, ie
an implicit /128).
Thanks a lot Mikael, i will give a try :-)
--
Mikael Abrahamsson    email: swmike@swm.pp.se
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help