By default, networking between an Oracle Solaris 10 service domain and other domains in the system is disabled. Because networking is not enabled by default in the Oracle Solaris 10 OS, you must enable networking by configuring the virtual switch device 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.
Guest domains can automatically communicate with the Oracle Solaris 10 service domain as long as the corresponding network back-end device is configured in the same virtual LAN or virtual network.
If necessary, you can configure the virtual switch as well as the physical network device. In this case, create the virtual switch as in Step 2, and do not delete the physical device (skip Step 3). 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 a Virtual Switch and the Service Domain for NAT and Routing.
# ifconfig -a
# ifconfig vsw0 plumb
# ifconfig nxge0 down unplumb
# ifconfig vsw0 IP-of-nxge0 netmask netmask-of-nxge0 broadcast + up
# ifconfig vsw0 dhcp start
# mv /etc/hostname.nxge0 /etc/hostname.vsw0 # mv /etc/dhcp.nxge0 /etc/dhcp.vsw0