Skip to content

Instantly share code, notes, and snippets.

@TomHoenderdos
Created November 14, 2013 12:54
Show Gist options
  • Save TomHoenderdos/7466290 to your computer and use it in GitHub Desktop.
Save TomHoenderdos/7466290 to your computer and use it in GitHub Desktop.
vmadm remove nics, add nics and remove nics
echo '{"remove_nics": ["b2:b4:cb:d4:62:4f"]}' | vmadm update ce26e77d-0d63-40a6-a891-55c136290bca
echo '{"add_nics": [{"interface": "net0","mac": "b2:b4:cb:d4:62:4f","nic_tag": "switch0","gateway": "10.20.0.254","primary": true,"ip": "10.20.0.10","netmask": "10.20.255.255"}]}' | vmadm update ce26e77d-0d63-40a6-a891-55c136290bca
echo '{"update_nics":[{"mac": "b2:b4:cb:d4:62:4f", "ip": "10.0.1.10", "netmask": "10.255.255.255"}]}' | vmadm update ce26e77d-0d63-40a6-a891-55c136290bca
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment