You can create zones that are a part of a VXLAN segment by assigning VXLAN as an underlying link to the zone's anet resource. For information about configuring a zone, see Creating and Using Oracle Solaris Zones.
For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.3.
# ipadm show-addr
# dladm create-vxlan -p prop=value VXLAN-LINK
# dladm show-vxlan
global# zonecfg -z zone zonecfg:zone2> add anet zonecfg:zone2:anet> set linkname=datalink zonecfg:zone2:anet> set lower-link=VXLAN-LINK zonecfg:zone2:net> end zonecfg:zone2> verify zonecfg:zone2> commit zonecfg:zone2> exit global# zoneadm -z zone reboot
VXLAN is assigned as the underlying link for the zone's anet.
# ipadm show-addr net4 ADDROBJ TYPE STATE ADDR net4/v4 static ok 203.0.113.1/24 2
# dladm create-vxlan -p addr=203.0.113.1,vni=10 vxlan1
# dladm show-vxlan LINK ADDR VNI MGROUP vxlan1 203.0.113.1 10 224.0.0.1
Because you have not specified a multicast address, this VXLAN segment uses the All Host multicast address, which addresses all the hosts on the same network segment.
# dladm show-link vxlan1 LINK CLASS MTU STATE OVER vxlan1 vxlan 1440 up --
vxlan1 is created and the link state is up.
global# zonecfg -z zone2 zonecfg:zone2> add anet zonecfg:zone2:anet> set linkname=net1 zonecfg:zone2:anet> set lower-link=vxlan1 zonecfg:zone2:anet> end zonecfg:zone2> verify zonecfg:zone2> commit zonecfg:zone2> exit global# zoneadm -z zone2 reboot
vxlan1 is assigned as the underlying link for the zone's anet.
When the zone boots up, net1 is created in zone2 over vxlan1.