Hi David, Here is a snipet from the VM's JSON:
"nics": [
{
"interface": "net0",
"mac": "32:e0:8a:0f:98:99",
"nic_tag": "vswitch6",
"ip": "dhcp",
"netmask": "255.255.255.0",
"model": "virtio",
"primary": true
},
...
The IP is set to dhcp (I used vmadm update to change that to dhcp). I've change
this from a specific
IP setting. I want to get rid of the remnant netmask wherein lies my problem.
Thanks,
Tom
On 03/04/14 12:52, David Finster wrote:
> Hi Tom
>
> Is the NIC in question set to DHCP? According to the man page for vmadm its
> required unless the NIC is set up DHCP.
>
> Thanks,
> Dave
>
> On 3 Apr 2014, at 11:50 am, Tom Robinson <[email protected]> wrote:
>
>> Hi,
>>
>> How can I update the nics on an active VM to remove the netmask? Do I have
>> to remove the entire nics
>> array entry for the specific MAC address and then add it again?
>>
>> I've been trying all sorts of silly stuff. None of it seems to remove the
>> netmask. Here's the latest
>> attempt:
>>
>> cat update-nic-ip.json
>> {
>> "update_nics": [
>> {
>> "mac": "32:e0:8a:0f:98:99",
>> "remove_tags": ["netmask"]
>> }
>> ]
>> }
>>
>> # vmadm update <my-uuid> -f update-nic-ip.json
>> Successfully updated VM <my-uuid>
>>
>> But, alas, no change to the nic when I 'vmadm get' it again.
>>
>> Regards,
>> Tom
>>
>> --
>>
>> Tom Robinson
>> IT Manager/System Administrator
>>
>> MoTeC Pty Ltd
>>
>> 121 Merrindale Drive
>> Croydon South
>> 3136 Victoria
>> Australia
>>
>> T: +61 3 9761 5050
>> F: +61 3 9761 5051
>> E: [email protected]
>>
>>
>>
>>
>>
>> -------------------------------------------
>> smartos-discuss
>> Archives: https://www.listbox.com/member/archive/184463/=now
>> RSS Feed: https://www.listbox.com/member/archive/rss/184463/25738179-216c4b5f
>> Modify Your Subscription: https://www.listbox.com/member/?&
>> Powered by Listbox: 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/25908535-8e7ef2de
> Modify Your Subscription: https://www.listbox.com/member/?&
> Powered by Listbox: 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
signature.asc
Description: OpenPGP digital signature
