On 03/15/16 16:29, Eric wrote:
On 3/14/2016 4:44 PM, Humberto Ramirez wrote:
Hi, is there a quick way to temporarily disconnect a NIC on a VM?
"Unplug the wire" kind of thing... VMWare has a simple check box to do this.
I could just remove/add the nic to the VM but I'm sure there is a simple
command that will accomplishes this... Right?
You could use ifconfig from the GZ to bring down the interface from
within a zone:
zlogin <uuid> ifconfig net0 down
I usually use "ipadm down-addr -t <addrobj>" from within a zone. I just
tried this with zlogin and managed to bugger up the zone (couldn't
zlogin to or reboot the zone) for a while, so take care.
Or, possibly use dladm set-linkprop to change the 'state' to up or down.
state is read only.
--
Ian.
-------------------------------------------
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