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 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
