JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Oracle VM Server for SPARC 3.0 Administration Guide     Oracle VM Server for SPARC
search filter icon
search icon

Document Information

Preface

Part I Oracle VM Server for SPARC 3.0 Software

1.  Overview of the Oracle VM Server for SPARC Software

2.  Installing and Enabling Software

3.  Oracle VM Server for SPARC Security

4.  Setting Up Services and the Control Domain

5.  Setting Up Guest Domains

6.  Setting Up I/O Domains

7.  Using Virtual Disks

8.  Using Virtual Networks

Introduction to a Virtual Network

Oracle Solaris 10 Networking Overview

Oracle Solaris 11 Networking Overview

Virtual Switch

Virtual Network Device

Inter-Vnet LDC Channels

Virtual Device Identifier and Network Interface Name

How to Find Oracle Solaris OS Network Interface Name

Assigning MAC Addresses Automatically or Manually

Range of MAC Addresses Assigned to Logical Domains

Automatic Assignment Algorithm

Duplicate MAC Address Detection

Freed MAC Addresses

Using Network Adapters With Logical Domains

How to Determine If a Network Adapter Is GLDv3-Compliant (Oracle Solaris 10)

Configuring a Virtual Switch and the Service Domain for NAT and Routing

Configuring NAT on an Oracle Solaris 10 System

How to Set Up a Virtual Switch to Provide External Connectivity to Domains (Oracle Solaris 10)

Configuring NAT on an Oracle Solaris 11 System

How to Set Up a Virtual Switch to Provide External Connectivity to Domains (Oracle Solaris 11)

Configuring IPMP in a Logical Domains Environment

Configuring Virtual Network Devices Into an IPMP Group in a Domain

Configuring and Using IPMP in the Service Domain

Using Link-Based IPMP in Logical Domains Virtual Networking

How to Configure Physical Link Status Updates

Configuring and Using IPMP in Releases Prior to Logical Domains 1.3

Configuring IPMP in the Guest Domain

Configuring IPMP in the Service Domain

Using VLAN Tagging

Port VLAN ID (PVID)

VLAN ID (VID)

How to Assign VLANs to a Virtual Switch and Virtual Network Device

How to Install a Guest Domain When the Install Server Is in a VLAN

Using NIU Hybrid I/O

How to Configure a Virtual Switch With an NIU Network Device

How to Enable Hybrid Mode

How to Disable Hybrid Mode

Using Link Aggregation With a Virtual Switch

Configuring Jumbo Frames

How to Configure Virtual Network and Virtual Switch Devices to Use Jumbo Frames

Compatibility With Older (Jumbo-Unaware) Versions of the vnet and vsw Drivers (Oracle Solaris 10)

Oracle Solaris 11 Networking-Specific Feature Differences

9.  Migrating Domains

10.  Managing Resources

11.  Managing Domain Configurations

12.  Performing Other Administration Tasks

Part II Optional Oracle VM Server for SPARC Software

13.  Oracle VM Server for SPARC Physical-to-Virtual Conversion Tool

14.  Oracle VM Server for SPARC Configuration Assistant (Oracle Solaris 10)

15.  Using Power Management

16.  Using the Oracle VM Server for SPARC Management Information Base Software

17.  Logical Domains Manager Discovery

18.  Using the XML Interface With the Logical Domains Manager

Glossary

Index

Configuring a Virtual Switch and the Service Domain for NAT and Routing

In the Oracle Solaris 10 OS, the virtual switch (vsw) is a layer-2 switch, which also can be used as a network device in the service domain. The virtual switch can be configured to act only as a switch between the virtual network (vnet) devices in the various logical domains but with no connectivity to a network outside the box through a physical device. In this mode, creating the vsw as a network device and enabling IP routing in the service domain enables virtual networks to communicate outside the box using the service domain as a router. This mode of operation is very essential to provide external connectivity to the domains when the physical network adapter is not GLDv3-compliant.

The advantages of this configuration are:

Configuring NAT on an Oracle Solaris 10 System

The following diagram shows how a virtual switch can be used to configure Network Address Translation (NAT) in a service domain to provide external connectivity for guest domains.

Figure 8-5 Virtual Network Routing

image:Diagram shows Oracle Solaris 10 virtual network routing as described in the text.

How to Set Up a Virtual Switch to Provide External Connectivity to Domains (Oracle Solaris 10)

  1. Create a virtual switch that does not have an associated physical device.

    If assigning an address, ensure that the virtual switch has a unique MAC address.

    primary# ldm add-vsw [mac-addr=xx:xx:xx:xx:xx:xx] primary-vsw0 primary
  2. Create the virtual switch as a network device in addition to the physical network device being used by the domain.

    See How to Configure the Virtual Switch as the Primary Interface for more information about creating the virtual switch.

  3. Configure the virtual switch device for DHCP, if needed.

    See How to Configure the Virtual Switch as the Primary Interface for more information about configuring the virtual switch device for DHCP.

  4. Create the /etc/dhcp.vsw file, if needed.
  5. Configure IP routing in the service domain, and set up required routing tables in all the domains.

    For more information about IP routing, see Packet Forwarding and Routing on IPv4 Networks in System Administration Guide: IP Services.

Configuring NAT on an Oracle Solaris 11 System

The Oracle Solaris 11 network virtualization features include etherstub, which is a pseudo network device. This device provides functionality similar to physical network devices but only for private communications with its clients. This pseudo device can be used as a network back-end device for a virtual switch that provides the private communications between virtual networks. By using the etherstub device as a back-end device, guest domains can also communicate with VNICs on the same etherstub device. Using the etherstub device in this way enables guest domains to communicate with zones in the service domain. Use the dladm create-etherstub command to create an etherstub device.

The following diagram shows how virtual switches, etherstub devices, and VNICs can be used to set up Network Address Translation (NAT) in a service domain.

Figure 8-6 Virtual Network Routing

image:Diagram shows Oracle Solaris 11 virtual network routing as described in the text.

How to Set Up a Virtual Switch to Provide External Connectivity to Domains (Oracle Solaris 11)

  1. Create an Oracle Solaris 11 etherstub device.
    primary# dladm create-etherstub stub0
  2. Create a virtual switch that uses stub0 as the physical back-end device.
    primary# ldm add-vsw net-dev=stub0 primary-stub-vsw0 primary
  3. Create a VNIC on the stub0 device.
    primary# dladm create-vnic -l stub0 vnic0
  4. Configure vnic0 as the network interface.
    primary# ipadm create-ip vnic0
    primary# ipadm create-addr -T static -a 192.168.100.1/24  vnic0/v4static
  5. Enable IPv4 forwarding and create NAT rules.

    See Setting IP Interface Properties in Connecting Systems Using Fixed Network Configuration in Oracle Solaris 11.1 and Packet Forwarding and Routing on IPv4 Networks in System Administration Guide: IP Services.