Skip to content. | Skip to navigation

Personal tools

Navigation

You are here: Home / Notes / SmartOS KVM VM networking

SmartOS KVM VM networking

guest network interfaces, aliases

For IP aliases in SmartOS KVM machine to work, add ""allow_ip_spoofing": "1"" to the KVM mashine configuration file networking section on SmartOS, check links at the end of article.

1. Get current config (note MAC):
# vmadm get 54f1cc77-68f1-42ab-acac-5c4f64f5d6e0  | json nics.

2.Write changes to json (recall MAC and replace):
# cat /tmp/update_nics.json 

{

"update_nics"
: [
{

"mac"
: "b2:1e:ba:a5:6e:71",
"allow_ip_spoofing": "1"

}
]
}
3. Update VM config:
vmadm update -f /tmp/update_nics.json 54f1cc77-68f1-42ab-acac-5c4f64f5d6e0
4. Check:
# vmadm get 54f1cc77-68f1-42ab-acac-5c4f64f5d6e0  | json nics
5. Reload VM:
# vmadm reboot 54f1cc77-68f1-42ab-acac-5c4f64f5d6e0