The following is an example of configuration for adding a virtual NIC in the Oracle VM environment.
Figure 3.4 Example of configuration in the Oracle VM environment
Create a virtual NIC "fjvnet0" by bundling "net1" and "net2" on the control domain (primary), and then connect it to a virtual switch "primary-vsw0" in Oracle VM. This procedure is shown below.
Communication is available without setting VID on the guest domain (ldom1), by setting VID=10 on the gust domain (ldom2), and by setting VID=20 on the guest domain (ldom3).
Creating a virtual NIC
Create a virtual NIC on the control domain with the rvnetadm create command.
# /opt/FJSVrvnet/bin/rvnetadm create -n fjvnet0 -i net1,net2 -v yes
Note
You must set "yes" to the value of "ALLOW-UPPER-VNIC" with the -v option to connect to a virtual switch.
See
For details on the rvnetadm command, see "A.1 rvnetadm command."
Enabling a network monitoring function
Enable a network monitoring function with the rvnetadm start-observ command.
# /opt/FJSVrvnet/bin/rvnetadm start-observ
Note
When a network monitoring function is enabled, disable it with the rvnetadm stop-observ command, and then enable it with the rvnetadm start-observ command again.
See
For details on the rvnetadm command, see "A.1 rvnetadm command."
Creating a virtual switch
Specify the virtual NIC as a network adapter to be used with the ldm add-vsw command, and then create the virtual switch running on the control domain.
# ldm add-vsw net-dev=fjvnet0 primary-vsw0 primary
See
For details on the ldm(1M) command, see the Solaris manual.
Connecting a guest domain
Connect a guest domain to the virtual switch with the ldm add-vnet command.
When connecting the guest domain "ldom1" in which the port VLAN is not used
# ldm add-vnet vnet0 primary-vsw0 ldom1
When connecting the guest domain "ldom2" in which the port VLAN_ID(10) is used, and connecting the guest domain "ldom3" in which the port VLAN ID(20) is used
# ldm add-vnet pvid=10 vnet0 primary-vsw0 ldom2 # ldm add-vnet pvid=20 vnet0 primary-vsw0 ldom3
See
For details on the ldm(1M) command, see the Solaris manual.