[ipv6hackers] IPv6 source address selection on Linux

Karl Auer kauer at biplane.com.au
Thu Jul 19 16:27:51 CEST 2012


On Thu, 2012-07-19 at 15:36 +0200, Romain Boissat wrote:
> > Could someone provide me with clue on how i can force traffic on my
> > server going to 2001:db8::1 to *always* source from the configured
> ULA
> > address fded:e128:5900::1 ?
>
> You can this little hack to all other IPv6 addresses:
> 
> ip addr change $IP6_ADDR/$NETMASK dev $NIC preferred_lft 0

Be aware that this hack will make the address of the remaining NIC the
source address for ALL packets leaving the server. OK if that's what you
want. And if the server addresses are coming via autoconfig, double
check that the fix doesn't disappear with each RA that comes down the
pike :-)

Regards, K.

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (kauer at biplane.com.au)
http://www.biplane.com.au/kauer

GPG fingerprint: AE1D 4868 6420 AD9A A698 5251 1699 7B78 4EEE 6017
Old fingerprint: DA41 51B1 1481 16E1 F7E2 B2E9 3007 14ED 5736 F687




More information about the Ipv6hackers mailing list