I'm running SunOS server 5.11 joyent_20150716T180527Z i86pc i386 i86pc
I have 1 zone defined running Windows 2012 R2I have the IP address for that
zone defined as follows
vmadm get 85f981a2-196e-40e3-bdb3-7f268338ba13 |json nics
[
{
"interface": "net0",
"mac": "82:98:10:f5:bc:eb",
"nic_tag": "admin",
"gateway": "192.168.1.254",
"ip": "192.168.10.20",
"netmask": "255.255.255.0",
"model": "virtio",
"primary": true
}
I have a file called update-nics.json that changes the IP to 192.168.1.20
[
{
"interface": "net0",
"mac": "82:98:10:f5:bc:eb",
"ip": "192.168.1.20"
}
]
when I run cat update-nics.json | vmadm update
85f981a2-196e-40e3-bdb3-7f268338ba13 the IP never changes.
What am I doing wrong?
-------------------------------------------
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