Discussion:
problem with "ip route" - RTNETLINK answers:Invalid argument
titus balan
2007-05-05 16:17:49 UTC
Permalink
Hi,

I am having a problem with setting an IPv6 static route.
When I write: ip -6 route add 2004:106:2300::/64 via 2004:106:2700::1 or
ip -6 route add 2004:106:2300::1/64 via 2004:106:2700::1
I get the error "RTNETLINK answers: Invalid argument"
So, this way, I can not set static routes and i can not ping the AR from MN (so I don't get binding updates on handover).
I am using 2.6.8.1 kernel on CentOS 4. If you have any idea about this, please help. It can be only a simple syntax error.
"ip route" with IPv4 works fine.

May I thank you in advance,
Titus



__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Jeroen Massar
2007-05-05 23:13:59 UTC
Permalink
Post by titus balan
Hi,
I am having a problem with setting an IPv6 static route.
When I write: ip -6 route add 2004:106:2300::/64 via 2004:106:2700::1 or
ip -6 route add 2004:106:2300::1/64 via
2004:106:2700::1
Nothing from 2004::/16 has been allocated yet and afaik that address
space is still reserved by IANA. As such you should not use that address
space.

If you want to use a block of space for testing then either use ULA's
(RFC4193) or 2001:db8::/32 which is the IPv6 Documentation Prefix.


Of course that doesn't explain your error. But that most likely has to
do with the fact that you don't have a direct route to 2004:106:2700::1
yet. Check 'ip -6 ro sho' and 'ip -6 nei sho' for that one.

Greets,
Jeroen
shariq haseeb
2007-05-06 09:18:24 UTC
Permalink
Hi Titus,

Use the following command :ip route add
2004:106:2300::/64 via 2004:106:2700::1

DONT use :

ip route add 2004:106:2300::/64 via 2004:106:2700::1

rgds,
Shariq
Post by titus balan
Post by titus balan
Hi,
I am having a problem with setting an IPv6 static
route.
Post by titus balan
When I write: ip -6 route add 2004:106:2300::/64
via 2004:106:2700::1 or
Post by titus balan
ip -6 route add
2004:106:2300::1/64 via
Post by titus balan
2004:106:2700::1
Nothing from 2004::/16 has been allocated yet and
afaik that address
space is still reserved by IANA. As such you should
not use that address
space.
If you want to use a block of space for testing then
either use ULA's
(RFC4193) or 2001:db8::/32 which is the IPv6
Documentation Prefix.
Of course that doesn't explain your error. But that
most likely has to
do with the fact that you don't have a direct route
to 2004:106:2700::1
yet. Check 'ip -6 ro sho' and 'ip -6 nei sho' for
that one.
Greets,
Jeroen
Post by titus balan
_______________________________________________
mipl mailing list
http://www.mobile-ipv6.org/cgi-bin/mailman/listinfo/mipl





____________________________________________________________________________________
Need Mail bonding?
Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.
http://answers.yahoo.com/dir/?link=list&sid=396546091
titus balan
2007-05-06 09:55:42 UTC
Permalink
Hi,
Thanks for your quick answers. I will try your suggestions.
Shariq, do you mean I should insert the command on two rows, cause I don't see another difference?
Thank you.

Best regards,
Titus



----- Original Message ----
From: shariq haseeb <***@yahoo.com>
To: Jeroen Massar <***@unfix.org>; ***@mobile-ipv6.org
Cc: ***@mobile-ipv6.org
Sent: Sunday, May 6, 2007 12:18:24 PM
Subject: Re: [mipl] problem with "ip route" - RTNETLINK answers:Invalid argument

Hi Titus,

Use the following command :ip route add
2004:106:2300::/64 via 2004:106:2700::1

DONT use :

ip route add 2004:106:2300::/64 via 2004:106:2700::1

rgds,
Shariq
Post by titus balan
Post by titus balan
Hi,
I am having a problem with setting an IPv6 static
route.
Post by titus balan
When I write: ip -6 route add 2004:106:2300::/64
via 2004:106:2700::1 or
Post by titus balan
ip -6 route add
2004:106:2300::1/64 via
Post by titus balan
2004:106:2700::1
Nothing from 2004::/16 has been allocated yet and
afaik that address
space is still reserved by IANA. As such you should
not use that address
space.
If you want to use a block of space for testing then
either use ULA's
(RFC4193) or 2001:db8::/32 which is the IPv6
Documentation Prefix.
Of course that doesn't explain your error. But that
most likely has to
do with the fact that you don't have a direct route
to 2004:106:2700::1
yet. Check 'ip -6 ro sho' and 'ip -6 nei sho' for
that one.
Greets,
Jeroen
Post by titus balan
_______________________________________________
mipl mailing list
http://www.mobile-ipv6.org/cgi-bin/mailman/listinfo/mipl





____________________________________________________________________________________
Need Mail bonding?
Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.
http://answers.yahoo.com/dir/?link=list&sid=396546091

_______________________________________________
mipl mailing list
***@mobile-ipv6.org
http://www.mobile-ipv6.org/cgi-bin/mailman/listinfo/mipl






__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
titus balan
2007-05-06 10:20:27 UTC
Permalink
Hi,
I also tried without -6 and it doesn't work. Maybe it's a problem with the kernel (even if it works with IPv4 ). I tried that command on HA that is also router, and has two Ethernet cards, so 2004:106:2300::1 is the address of my AR (one Ethernet card) and 204:106:2700::1 is the address of my HA (the other Ethernet card).
And I also tried with fec0:106:2300::1 type of address. Still no result.
If you have other ideas, please help.

Best regards,
Titus

----- Original Message ----
From: shariq haseeb <***@yahoo.com>
To: titus balan <***@yahoo.com>
Sent: Sunday, May 6, 2007 1:09:19 PM
Subject: Re: [mipl] problem with "ip route" - RTNETLINK answers:Invalid argument

hi!

i meant use:
ip route add 2004:106:2300::/64 via 2004:106:2700::1

not
ip -6 route add 2004:106:2300::/64 via
2004:106:2700::1

my mistake :)

shariq
Post by titus balan
Hi,
Thanks for your quick answers. I will try your
suggestions.
Shariq, do you mean I should insert the command on
two rows, cause I don't see another difference?
Thank you.
Best regards,
Titus
----- Original Message ----
Sent: Sunday, May 6, 2007 12:18:24 PM
Subject: Re: [mipl] problem with "ip route" -
RTNETLINK answers:Invalid argument
Hi Titus,
Use the following command :ip route add
2004:106:2300::/64 via 2004:106:2700::1
ip route add 2004:106:2300::/64 via 2004:106:2700::1
rgds,
Shariq
Post by titus balan
Post by titus balan
Hi,
I am having a problem with setting an IPv6
static
Post by titus balan
route.
Post by titus balan
When I write: ip -6 route add
2004:106:2300::/64
Post by titus balan
via 2004:106:2700::1 or
Post by titus balan
ip -6 route add
2004:106:2300::1/64 via
Post by titus balan
2004:106:2700::1
Nothing from 2004::/16 has been allocated yet and
afaik that address
space is still reserved by IANA. As such you
should
Post by titus balan
not use that address
space.
If you want to use a block of space for testing
then
Post by titus balan
either use ULA's
(RFC4193) or 2001:db8::/32 which is the IPv6
Documentation Prefix.
Of course that doesn't explain your error. But
that
Post by titus balan
most likely has to
do with the fact that you don't have a direct
route
Post by titus balan
to 2004:106:2700::1
yet. Check 'ip -6 ro sho' and 'ip -6 nei sho' for
that one.
Greets,
Jeroen
Post by titus balan
_______________________________________________
mipl mailing list
http://www.mobile-ipv6.org/cgi-bin/mailman/listinfo/mipl
____________________________________________________________________________________
Post by titus balan
Need Mail bonding?
Go to the Yahoo! Mail Q&A for great tips from Yahoo!
Answers users.
http://answers.yahoo.com/dir/?link=list&sid=396546091
Post by titus balan
_______________________________________________
mipl mailing list
http://www.mobile-ipv6.org/cgi-bin/mailman/listinfo/mipl
Post by titus balan
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam
protection around
http://mail.yahoo.com >
_______________________________________________
Post by titus balan
mipl mailing list
http://www.mobile-ipv6.org/cgi-bin/mailman/listinfo/mipl


__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com








____________________________________________________________________________________
Looking for earth-friendly autos?
Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.
http://autos.yahoo.com/green_center/
shariq haseeb
2007-05-09 01:09:45 UTC
Permalink
hi,

Try this format:

route -A inet6 add 2004:106:2300::/64 gw
2004:106:2700::1 dev eth0

rgds,
Shariq
Post by titus balan
Hi,
I also tried without -6 and it doesn't work. Maybe
it's a problem with the kernel (even if it works
with IPv4 ). I tried that command on HA that is also
router, and has two Ethernet cards, so
2004:106:2300::1 is the address of my AR (one
Ethernet card) and 204:106:2700::1 is the address of
my HA (the other Ethernet card).
And I also tried with fec0:106:2300::1 type of
address. Still no result.
If you have other ideas, please help.
Best regards,
Titus
----- Original Message ----
Sent: Sunday, May 6, 2007 1:09:19 PM
Subject: Re: [mipl] problem with "ip route" -
RTNETLINK answers:Invalid argument
hi!
ip route add 2004:106:2300::/64 via 2004:106:2700::1
not
ip -6 route add 2004:106:2300::/64 via
2004:106:2700::1
my mistake :)
shariq
Post by titus balan
Hi,
Thanks for your quick answers. I will try your
suggestions.
Shariq, do you mean I should insert the command on
two rows, cause I don't see another difference?
Thank you.
Best regards,
Titus
----- Original Message ----
Sent: Sunday, May 6, 2007 12:18:24 PM
Subject: Re: [mipl] problem with "ip route" -
RTNETLINK answers:Invalid argument
Hi Titus,
Use the following command :ip route add
2004:106:2300::/64 via 2004:106:2700::1
ip route add 2004:106:2300::/64 via
2004:106:2700::1
Post by titus balan
rgds,
Shariq
Post by titus balan
Post by titus balan
Hi,
I am having a problem with setting an IPv6
static
Post by titus balan
route.
Post by titus balan
When I write: ip -6 route add
2004:106:2300::/64
Post by titus balan
via 2004:106:2700::1 or
Post by titus balan
ip -6 route add
2004:106:2300::1/64 via
Post by titus balan
2004:106:2700::1
Nothing from 2004::/16 has been allocated yet
and
Post by titus balan
Post by titus balan
afaik that address
space is still reserved by IANA. As such you
should
Post by titus balan
not use that address
space.
If you want to use a block of space for testing
then
Post by titus balan
either use ULA's
(RFC4193) or 2001:db8::/32 which is the IPv6
Documentation Prefix.
Of course that doesn't explain your error. But
that
Post by titus balan
most likely has to
do with the fact that you don't have a direct
route
Post by titus balan
to 2004:106:2700::1
yet. Check 'ip -6 ro sho' and 'ip -6 nei sho'
for
Post by titus balan
Post by titus balan
that one.
Greets,
Jeroen
_______________________________________________
Post by titus balan
Post by titus balan
mipl mailing list
http://www.mobile-ipv6.org/cgi-bin/mailman/listinfo/mipl
____________________________________________________________________________________
Post by titus balan
Post by titus balan
Need Mail bonding?
Go to the Yahoo! Mail Q&A for great tips from
Yahoo!
Post by titus balan
Answers users.
http://answers.yahoo.com/dir/?link=list&sid=396546091
Post by titus balan
Post by titus balan
_______________________________________________
mipl mailing list
http://www.mobile-ipv6.org/cgi-bin/mailman/listinfo/mipl
Post by titus balan
Post by titus balan
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam
protection around
http://mail.yahoo.com >
_______________________________________________
Post by titus balan
mipl mailing list
http://www.mobile-ipv6.org/cgi-bin/mailman/listinfo/mipl
Post by titus balan
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam
protection around
http://mail.yahoo.com
____________________________________________________________________________________
Post by titus balan
Looking for earth-friendly autos?
Browse Top Cars by "Green Rating" at Yahoo! Autos'
Green Center.
http://autos.yahoo.com/green_center/
____________________________________________________________________________________
Sucker-punch spam with award-winning protection.
Try the free Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/features_spam.html

Loading...