For using the configuration 2 and the configuration 3, set up the virtual network according to the following procedures.
To create a redundant virtual network by GLS on a guest OS, you need to create two virtual bridges of the virtual machine function connected to the physical interface.
The following is an example to create the shell script for creating the virtual bridge. For details, see the RHEL manuals.
/etc/xen/scripts/network-bridge-sample
#!/bin/sh # # Sample of Create/Delete virtual bridge # # $1 start : Create virtual bridge # stop : Delete virtual bridge # status: Display virtual bridge information # Exit if anything goes wrong #set -e command=$1 xenscript=/etc/xen/scripts/network-bridge # op_start:subscript for start operation # op_start () { $xenscript $command vifnum=0 netdev=eth0 $xenscript $command vifnum=1 netdev=eth1 } # op_stop:subscript for stop operation # op_stop () { # same operation as start op_start } case "$command" in start) # Create your virtual bridge op_start ;; stop) # Delete virtual bridge op_stop ;; status) # display virtual bridge information $xenscript status ;; *) echo "Unknown command: $command" >&2 echo 'Valid commands are: start, stop, status' >&2 exit 1 esac |