By default, networking between the control domain and other domains in the system is disabled. To enable this, the virtual switch device should be configured as a network device. The virtual switch can either replace the underlying physical device (nxge0 in this example) as the primary interface or be configured as an additional network interface in the domain.
Note - Perform the following procedure from the control domain's console, as the procedure could temporarily disrupt network connectivity to the domain.
primary# ifconfig -a
primary# ifconfig vsw0 plumb
primary# /usr/sbin/dladm show-link | grep vsw vsw0 type: non-vlan mtu: 1500 device: vsw0
primary# ifconfig nxge0 down unplumb
If networking is configured using a static IP address, reuse the IP address and netmask of nxge0 for vsw0.
primary# ifconfig vsw0 IP_of_nxge0 netmask netmask_of_nxge0 broadcast + up
If networking is configured using DHCP, enable DHCP for vsw0.
primary# ifconfig vsw0 dhcp start
primary# mv /etc/hostname.nxge0 /etc/hostname.vsw0 primary# mv /etc/dhcp.nxge0 /etc/dhcp.vsw0
Note - If necessary, you can also configure the virtual switch as well as the physical network device. In this case, plumb the virtual switch as in Step 2, and do not unplumb the physical device (skip Step 4). You must then configure the virtual switch with either a static IP address or a dynamic IP address. You can obtain a dynamic IP address from a DHCP server. For additional information and an example of this case, see Configuring Virtual Switch and Service Domain for NAT and Routing.