I managed to get the route running by setting the second nic (eth1) as primary. But that is tricky since it can disable any traffic to nic1 when things go bad.
I will have a look at the “set_routes” command asap ! Van: John Barfield [mailto:[email protected]] Verzonden: maandag 5 juni 2017 21:04 Aan: [email protected] Onderwerp: Re: [smartos-discuss] Linux VM set additional route On 6/4/17 13:28 , the outsider 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 ? You should be able to use vmadm to deal with this. It looks like the routes property is updatedable via the set_routes payload. See the vmadm update section for more information. Robert Can you send: ‘vmadm get <UUID> | json nics’ ? From within the VM send: ip addr && ip route && ip link show You can set additional routes via vmadm but I don’t think that the route is being set properly within the VM as it is. smartos-discuss | <https://www.listbox.com/member/archive/184463/=now> Archives <https://www.listbox.com/member/archive/rss/184463/27966043-4eecc9e4> | <https://www.listbox.com/member/?&> Modify 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
