Created
November 14, 2013 12:54
-
-
Save TomHoenderdos/7466290 to your computer and use it in GitHub Desktop.
vmadm remove nics, add nics and remove nics
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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