Comment 1 for bug 1092816

Revision history for this message
Simon Déziel (sdeziel) wrote :

Ronald, I think that if you add a route to get to right= using the source IP 11.22.33.46 it should work.

Here's an example:

 $ ip ro get 99.88.77.66 # checking the source IP used to get to right=
 99.88.77.66 via 172.24.27.1 dev wlan0 src 11.22.33.46
    cache

You see that by default it uses the "main" IP on wlan0. Now let's add the other IP

 $ sudo ip addr add 11.22.33.46/24 dev wlan0 # adding this IP alias

And add a route to right= using that new IP as the source

 $ sudo ip ro add 99.88.77.66 via 172.24.27.1 src 11.22.33.46 # 172.24.27.1 is my default GW

And confirm all worked:

 $ ip ro get 99.88.77.66
 99.88.77.66 via 172.24.27.1 dev wlan0 src 11.22.33.46
    cache