Configuring a virtual switch
Configure virtual switches as virtual Ethernet devices.
Procedure
You configure a virtual switch by using the interface
element (see <interface>).
| interface type attribute: | bridge |
Example
Display the available virtual
switches:
# ovs-vsctl show
...
Bridge "vswitch0"
Port "vsbond0"
Interface "enc1108"
Interface "enca112"
Port "vswitch0"
Interface "vswitch0"
type: internal
...Configure the virtual switch which is shown in Figure 3 in Network devices as virtual Ethernet devices:
<interface type="bridge">
<source bridge="vswitch0"/>
<virtualport type="openvswitch"/>
<model type="virtio"/>
</interface> After the creation and the start of the virtual server, the
virtual switch is displayed as
follows:
# ovs-vsctl show
...
Bridge "vswitch0"
Port "vnet0"
Interface "vnet0"
Port "vsbond0"
Interface "enc1108"
Interface "enca112"
Port "vswitch0"
Interface "vswitch0"
type: internal
...