Oracle® VM Server for SPARC 3.3 Administration Guide

Exit Print View

Updated: October 2015
 
 

Using Link-Based IPMP in Oracle VM Server for SPARC Virtual Networking

The virtual network and virtual switch devices support link status updates to the network stack. By default, a virtual network device reports the status of its virtual link (its LDC to the virtual switch). This configuration is enabled by default and does not require you to perform additional configuration steps.

Sometimes detecting physical network link state changes might be necessary. For instance, if a physical device has been assigned to a virtual switch, even if the link from a virtual network device to its virtual switch device is up, the physical network link from the service domain to the external network might be down. In such a case, you might need to obtain and report the physical link status to the virtual network device and its stack.

You can use the linkprop=phys-state option to configure physical link state tracking for virtual network devices as well as for virtual switch devices. When this option is enabled, the virtual device (virtual network or virtual switch) reports its link state based on the physical link state while it is created as an interface in the domain. You can use standard Oracle Solaris network administration commands such as dladm and ifconfig to check the link status. In addition, the link status is also logged in the /var/adm/messages file.

For Oracle Solaris 10, see the dladm(1M) and ifconfig(1M) man pages. For Oracle Solaris 11, see the dladm(1M), ipadm(1M), and ipmpstat(1M) man pages.


Note - You can run both link-state-unaware and link-state-aware vnet and vsw drivers concurrently on an Oracle VM Server for SPARC system. However, if you intend to configure link-based IPMP, you must install the link-state-aware driver. If you intend to enable physical link state updates, upgrade both the vnet and vsw drivers to the Oracle Solaris 10 1/13 OS, and run at least version 1.3 of the Logical Domains Manager.

How to Configure Physical Link Status Updates

This procedure shows how to enable physical link status updates for virtual network devices.

You can also enable physical link status updates for a virtual switch device by following similar steps and specifying the linkprop=phys-state option to the ldm add-vsw and ldm set-vsw commands.


Note - You need to use the linkprop=phys-state option only if the virtual switch device itself is created as an interface. If linkprop=phys-state is specified and the physical link is down, the virtual network device reports its link status as down, even if the connection to the virtual switch is up. This situation occurs because the Oracle Solaris OS does not currently provide interfaces to report two distinct link states, such as virtual-link-state and physical-link-state.
  1. Become an administrator.

    For Oracle Solaris 11.3, see Chapter 1, About Using Rights to Control Users and Processes, in Securing Users and Processes in Oracle Solaris 11.3 .

  2. Enable physical link status updates for the virtual device.

      You can enable physical link status updates for a virtual network device in the following ways:

    • Create a virtual network device by specifying linkprop=phys-state when running the ldm add-vnet command.

      Specifying the linkprop=phys-state option configures the virtual network device to obtain physical link state updates and report them to the stack.


      Note - If linkprop=phys-state is specified and the physical link is down (even if the connection to the virtual switch is up), the virtual network device reports its link status as down. This situation occurs because the Oracle Solaris OS does not currently provide interfaces to report two distinct link states, such as virtual-link-state and physical-link-state.
      primary# ldm add-vnet linkprop=phys-state if-name vswitch-name domain-name

      The following example enables physical link status updates for ldom1_vnet0 connected to primary-vsw0 on the logical domain ldom1:

      primary# ldm add-vnet linkprop=phys-state ldom1_vnet0 primary-vsw0 ldom1
    • Modify an existing virtual network device by specifying linkprop=phys-state when running the ldm set-vnet command.

      primary# ldm set-vnet linkprop=phys-state if-name domain-name

      The following example enables physical link status updates for vnet0 on the logical domain ldom1:

      primary# ldm set-vnet linkprop=phys-state ldom1_vnet0 ldom1

    To disable physical link state updates, specify linkprop= by running the ldm set-vnet command.

    The following example disables physical link status updates for ldom1_vnet0 on the logical domain ldom1:

    primary# ldm set-vnet linkprop= ldom1_vnet0 ldom1
Example 45  Configuring Link-Based IPMP

    The following examples show how to configure link-based IPMP both with and without enabling physical link status updates:

  • The following example configures two virtual network devices on a domain. Each virtual network device is connected to a separate virtual switch device on the service domain to use link-based IPMP.


    Note - Test addresses are not configured on these virtual network devices. Also, you do not need to perform additional configuration when you use the ldm add-vnet command to create these virtual network devices.

    The following commands add the virtual network devices to the domain. Note that because linkprop=phys-state is not specified, only the link to the virtual switch is monitored for state changes.

    primary# ldm add-vnet ldom1_vnet0 primary-vsw0 ldom1
    primary# ldm add-vnet ldom1_vnet1 primary-vsw1 ldom1

    The following commands configure the virtual network devices on the guest domain and assign them to an IPMP group. Note that test addresses are not configured on these virtual network devices because link-based failure detection is being used.

    • Oracle Solaris 10 OS: Use the ifconfig command.

      # ifconfig vnet0 plumb
      # ifconfig vnet1 plumb
      # ifconfig vnet0 group ipmp0
      # ifconfig vnet1 group ipmp0

      The second and third commands configure the ipmp0 interface with the IP address, as appropriate.

    • Oracle Solaris 11 OS: Use the ipadm command.

      Note that net0 and net1 are the Oracle Solaris 11 vanity names for vnet0 and vnet1, respectively.

      # ipadm create-ip net0
      # ipadm create-ip net1
      # ipadm create-ipmp ipmp0
      # ipadm add-ipmp -i net0 -i net1 ipmp0
  • The following example configures two virtual network devices on a domain. Each domain is connected to a separate virtual switch device on the service domain to use link-based IPMP. The virtual network devices are also configured to obtain physical link state updates.

    primary# ldm add-vnet linkprop=phys-state ldom1_vnet0 primary-vsw0 ldom1
    primary# ldm add-vnet linkprop=phys-state ldom1_vnet1 primary-vsw1 ldom1

    Note - The virtual switch must have a physical network device assigned for the domain to successfully bind. If the domain is already bound and the virtual switch does not have a physical network device assigned, the ldm add-vnet commands will fail.

    The following commands create the virtual network devices and assign them to an IPMP group:

    • Oracle Solaris 10 OS: Use the ifconfig command.

      # ifconfig vnet0 plumb
      # ifconfig vnet1 plumb
      # ifconfig vnet0 192.168.1.1/24 up
      # ifconfig vnet1 192.168.1.2/24 up
      # ifconfig vnet0 group ipmp0
      # ifconfig vnet1 group ipmp0
    • Oracle Solaris 11 OS: Use the ipadm command.

      Note that net0 and net1 are the vanity names for vnet0 and vnet1, respectively.

      # ipadm create-ip net0
      # ipadm create-ip net1
      # ipadm create-ipmp ipmp0
      # ipadm add-ipmp -i net0 -i net1 ipmp0
      # ipadm create-addr -T static -a 192.168.1.1/24 ipmp0/v4addr1
      # ipadm create-addr -T static -a 192.168.1.2/24 ipmp0/v4addr2