On 26/03/15(Thu) 14:07, rizz2pro . wrote:
> Hello everyone,
> 
> I hope I posted this in the right area, I don't usually join mailing lists
> so I am still a bit of a noob.
> 
> Anyways, hoping someone could help me out. I am coming up empty on my
> searches figuring this out.
> 
> If I have 2 default gateways configured with priorities, how would I modify
> the priorities using "route change"? I would prefer not to have to delete
> the route and re-add them.
> 
> $ sudo route add -mpath default 64.4.4.4 -priority 1
> $ sudo route add -mpath default 129.2.2.2 -priority 15
> $ sudo netstat -rn | grep default
> ~
> # default           64.4.4.4       UGS        3     3308     -     1 em0
> # default            129.2.2.2       UGS        0        0     -    15 em1
> 
> If I try to change priorities:
> 
> $ sudo route change -mpath default 129.2.2.2 -priority 1
> ~
> # route: writing to routing socket: No such process
> # change net default: gateway 129.2.2.2: not in table
> 
> Any hints as to how I can change priority on a default multipath route? I
> would appreciate it greatly.

Does it work with "-priority 2"?  The number "1" is special and reserved
for routes representing local (your own) addresses.  I just realized
that this is not (and should) be documented.

Reply via email to