Oracle® VM Server for SPARC 3.2 Administration Guide

Exit Print View

Updated: May 2015

How to Configure the Virtual Switch as the Primary Interface

Note - Perform the following procedure from the control domain's console, as the procedure could temporarily disrupt network connectivity to the domain.

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.

  1. Print the addressing information for all interfaces.
    primary# ifconfig -a
  2. Configure the virtual switch network interface.
    primary# ifconfig vsw0 plumb
  3. Remove the physical interface for the device that is assigned to the virtual switch (net-dev).
    primary# ifconfig nxge0 down unplumb
  4. To migrate properties of the physical network device (nxge0) to the virtual switch device (vsw0), do one of the following:
    • If networking is configured by using a static IP address, reuse the IP address and netmask of nxge0 for the virtual switch.
      primary# ifconfig vsw0 IP-of-nxge0 netmask netmask-of-nxge0 broadcast + up
    • If networking is configured by using DHCP, enable DHCP for the virtual switch.
      primary# ifconfig vsw0 dhcp start
  5. Make the required configuration file modifications to make this change permanent.
    primary# mv /etc/hostname.nxge0 /etc/hostname.vsw0
    primary# mv /etc/dhcp.nxge0 /etc/dhcp.vsw0