Here is an example.
echo '{"set_routes": {"192.168.0.0/16": "192.168.10.1"} }' | vmadm update
UUID
On 5 June 2017 at 08:28, the outsider <[email protected]> wrote:
> I have a VM that has two nics.
>
>
>
> Nic 1 is primary and has the default gateway for most routes
>
> But nic2 needs to be gateway for a special subnet that is not reachable
> via nic 1.
>
>
>
> I tried to set the route via the standard linux way, but that is blocked.
>
> route add -net 192.168.132.0/24 gw 192.168.141.1
>
> SIOCADDRT: Operation not supported
>
>
>
> But how can I get this route to be statically added to nic1 ?
>
>
>
> *smartos-discuss* | Archives
> <https://www.listbox.com/member/archive/184463/=now>
> <https://www.listbox.com/member/archive/rss/184463/25241303-ebebecbc> |
> Modify
> <https://www.listbox.com/member/?&>
> Your Subscription <http://www.listbox.com>
>
-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription:
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com