[LARTC] IPv6 Source Address selection

Linux Advanced Routing and Traffic Control

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

 



Does enybody know how the source address is choosen for an interface 
with more than one global addresses?. In my case, I have a static global 
address and a dynamic autoconfigured one. According to the iproute2 
command reference, appendix A, I tried to play with the src and metric 
parameters when adding the default route, but it doesn't seem to work.

My address&route configuration is

8: wlan0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 100
     inet6 2001:660:10d:1444::1/64 scope global
     inet6 2001:660:10d:1402:200:c5ff:fe09:5db6/64 scope global dynamic
        valid_lft 2591995sec preferred_lft 604795sec
     inet6 fe80::200:c5ff:fe09:5db6/10 scope link

2001:660:10d:1402::/64 dev wlan0  proto kernel  metric 256  expires 
2591997sec mtu 1500 advmss 1440

2001:660:10d:1444::/64 dev wlan0  proto kernel  metric 256  mtu 1500 
advmss 1440

fe80::/10 dev wlan0  proto kernel  metric 256  mtu 1500 advmss 1440
ff00::/8 dev wlan0  proto kernel  metric 256  mtu 1500 advmss 1440

default via fe80::200:c5ff:fe09:5d6a dev wlan0  proto kernel  metric 
1024  expires 27sec mtu 1500 advmss 1440



Question: What global address is choosen for outgoing packets (e.g. 
ping6 www.6bone.net)... Can I specify one of them? I tried to do it with 
ip route add ... src 2001:660:10d:1444::1/64 metric 1023, but it doesn't 
seems to work....

Sorin Paun.
Ph.D.student,
LSR-IMAG-Grenoble



[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux