Fw: Questions about iproute

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Good evening,

I'm a student trying to implemente a Mobile IPv6 scenario with static routes.
I'm using Fedora Core 3, with the kernel 2.6.11 patched with
mipv6-2.0-rc3-linux-2.6.11.patch (only for kernel 2.6.11)(avaible at
http://www.mobile-ipv6.org/software/). 
The iproute version is iproute-2.6.9-3.

I've some problems with ip route so i used a simple scenario for tests.
Scenario:

        (a::/64)---host1<--(b::/64)-->host2---(c::/64)

[eth0(a::1/64)-eth2(b::1/64)]<--->[eth1(b::2/64)-eth0(c::2)]

when i tried to insert routes:

[root@localhost ~]# ip -6 route add c::2/64 via b::2 dev eth2
RTNETLINK answers: Invalid argument

[root@localhost ~]# route -A inet6 add c::2/64 gw b::2 dev eth2
SIOCADDRT: Invalid argument

[root@localhost ~]# ip -6 route add c::2/64 dev eth2
-->this doesn't work

I configured the scenario sucessfuly at a few moments, but using global
address with the prefix 2000::, or site local with prefix fec0::.

Using the scenario with site local address:
ip -6 route add ::/0 via fec0:b::1 #Works!!
route -A inet6 add ::/0 gw fec0:b::1 #Also Works!!

Using the scenario with global address:
ip -6 route add ::/0 via 2000:b::1 #Works!!
route -A inet6 add ::/0 gw 2000:b::1 #Also Works!!

My question now is that a::1 is also global address, and i configure the
interface address with sucess("ip -6 addr add a::1/64 dev eth0"), so why can't
i configure also a route ("ip -6 route add ::/0 via b::2")?? Is that a bug??
Or is it because these addresses are reserved (not allocated)???

Following are shown the routing table of the first scenario

[root@localhost ~]# route -A inet6 -n
Kernel IPv6 routing table
Destination                                 Next Hop                         
      Flags Metric Ref    Use Iface
a::/64                                      ::                               
      U     256    0        0 eth0
b::/64                                      ::                               
      U     256    0        0 eth2
c::/64                                      ::                               
      U     1024   0        0 eth2
fe80::/64                                   ::                               
      U     256    0        0 eth1
fe80::/64                                   ::                               
      U     256    0        0 eth0
fe80::/64                                   ::                               
      U     256    0        0 eth2
ff00::/8                                    ::                               
      U     256    0        0 eth2
ff00::/8                                    ::                               
      U     256    0        0 eth1
ff00::/8                                    ::                               
      U     256    0        0 eth0
ff00::/8                                    ::                               
      U     256    0        0 eth2
::/0                                        ::                               
      U     1      0        0 eth2
::1/128                                     ::                               
      U     0      34       2 lo
a::/128                                     ::                               
      U     0      3        2 lo
a::1/128                                    ::                               
      U     0      1        2 lo
b::/128                                     ::                               
      U     0      3        2 lo
b::1/128                                    ::                               
      U     0      31       2 lo
fe80::/128                                  ::                               
      U     0      0        2 lo
fe80::/128                                  ::                               
      U     0      0        2 lo
fe80::/128                                  ::                               
      U     0      0        2 lo
fe80::201:2ff:fea4:23a7/128                 ::                               
      U     0      0        2 lo
fe80::211:11ff:fe1c:6653/128                ::                               
      U     0      0        2 lo
fe80::230:4fff:fe02:bdeb/128                ::                               
      U     0      8        2 lo
[root@localhost ~]#

Hope you can help me, thanks,

Tiago.

-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux