earth with the IP 192.168.1.20, and the VM Guest has the name alice with the IP
192.168.1.21.
Procedure 6.1 Configuring a routed IPv4 VM Guest
1 Make sure that alice is shut down. Either use virt-manager or the respective
xm commands to shutdown and check.
2 Prepare the network configuration on the VM Host Server earth:
2a Create a hotplug interface that will be used to route the traffic. To accomplish
this, create a file named /etc/sysconfig/network/ifcfg-alice
.0 with the following content:
NAME="Xen guest alice"
BOOTPROTO="static"
STARTMODE="hotplug"
2b Edit the file /etc/sysconfig/SuSEfirewall2 and add the following
configurations:
• Add alice.0 to the devices in FW_DEV_EXT:
FW_DEV_EXT="br0 alice.0"
• Switch on the routing in the firewall:
FW_ROUTE="yes"
• Tell the firewall, which address should be forwarded:
FW_FORWARD="192.168.1.21/32,0/0"
• Finally, restart the firewall with the command:
rcSuSEfirewall2 restart
2c Add a static route to the interface of alice. To accomplish this, add the fol-
lowing line to the end of /etc/sysconfig/network/routes:
192.168.1.21
-
-
alice.0
Virtual Networking
49
Need help?
Do you have a question about the SUSE LINUX ENTERPRISE DESKTOP 11 SP1 - 8-18-2010 VIRTUALIZATION WITH ZEN and is the answer not in the manual?
Questions and answers