Eric, Can you run the following commands from within your zone and send the output:
$ mdata-get sdc:nics $ cat /etc/defaultrouter $ svcs -xv $ svcs mdata $ svcs routing-setup The /etc/defaultrouter file gets set up during zone boot, and then read by the routing-setup service. You could also try running /lib/svc/method/mdata-fetch after running the above commands to see if it overwrites the file with different data. - Cody On Fri, Sep 25, 2015 at 2:27 PM, Eric <[email protected]> wrote: > > > On September 25, 2015 5:11:52 PM EDT, Ian Collins <[email protected]> wrote: >> >> From the vmadm man page: >> >> nics.*.primary >> >> This option selects which NIC's default gateway and >>nameserver values >> will be used for this VM. If a VM has any nics, there must >>always be >> exactly one primary. Setting a new primary will unset the >>old. Trying >> to set two nics to primary is an error. >> >> type: boolean (only true is valid) >> vmtype: OS,KVM >> listable: yes (see above) >> create: yes >> update: yes (setting primary=true on one NIC removes the >>flag from the >> current primary, and sets on the new) >> >>Note "type: boolean (only true is valid)" > > Only one nic is set to primary. I don't think the proper interface is being > chosen when setting the default route during provisioning. If there is only > one nic from the same subnet, it works, but if there are more than one, it > doesn't know which IP should be used as the primary (even though the primary > option is set to a specific nic). > ------------------------------------------- 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
