Linux source address selection vs. EUI-64

Geert Hendrickx ghen at telenet.be
Sat Nov 13 15:41:15 CET 2010


On Sat, Nov 13, 2010 at 03:16:05PM +0100, Luca Bruno wrote:
> Geert Hendrickx scrisse:
> 
> > Any other suggestions to influence the source address selection on
> > Linux?
> 
> In theory, you may want to use labels (as in "Prefer matching label"
> rule) instead of tie-breaking, to reach your goal.
> 
> "ip addrlabel" should be able to set a custom label for your prefix,
> which you will match appending a "label" option to your static "ip
> address add" directive.
> 
> You'd better check `man ip`, under "ip address add" and "ip addrlabel"
> sections. I've never done this in practice, but it looks like a safe
> way to me. 


I tried that, but the documentation on address labels is pretty sparse.

I thought they were numeric, but:

# ip -6 addr add 2a02:2308::3be:dead:beef/64 dev eth0 label 8
"dev" (eth0) must match "label" (8).
# ip -6 addr add 2a02:2308::3be:dead:beef/64 dev eth0 label eth0

But on the other hand:

# ip addrlabel add prefix 2a02:2308::3be:dead:beef/64 dev eth0 label eth0
Error: argument "eth0" is wrong: label is invalid
# ip addrlabel add prefix 2a02:2308::3be:dead:beef/64 dev eth0 label 8 


Can't seem to make them match.  I am probably misunderstanding this.


	Geert


-- 
Geert Hendrickx  -=-  ghen at telenet.be  -=-  PGP: 0xC4BB9E9F
This e-mail was composed using 100% recycled spam messages!


More information about the ipv6-ops mailing list