Skip to content

Instantly share code, notes, and snippets.

@AlainODea
Created January 23, 2013 03:19
Show Gist options
  • Save AlainODea/4601606 to your computer and use it in GitHub Desktop.
Save AlainODea/4601606 to your computer and use it in GitHub Desktop.
Configuring an external vnic for SmartOS guests
external_nic=0:c:29:18:ec:10
external0_ip=dhcp
external0_netmask=...
external0_gateway=...
vmadm create <<EOF
{
"brand": "joyent",
"image_uuid": "84cb7edc-3f22-11e2-8a2a-3f2a7b148699",
"nics": [
{
"nic_tag": "external",
"ip": "10.0.0.2",
"netmask": "255.255.255.0",
"gateway": "10.0.0.1"
}
]
}
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment