
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
Содержание LINUX ENTERPRISE 11 SP1 - LINUX AUDIT
Страница 1: ...SUSE Linux Enterprise Desktop www novell com 11 SP1 August 18 2010 Virtualization with Xen ...
Страница 6: ......
Страница 11: ...Part I Getting Started with Xen ...
Страница 12: ......
Страница 17: ...Figure 1 2 Desktop Showing Virtual Machine Manager and Virtual Machines Introduction to Xen Virtualization 7 ...
Страница 18: ......
Страница 41: ...Part II Advanced Configurations ...
Страница 42: ......
Страница 54: ......
Страница 87: ...Part III Administration and Best Practices ...
Страница 88: ......
Страница 100: ......
Страница 108: ......
Страница 114: ......
Страница 116: ......
Страница 117: ...Part IV Appendix ...
Страница 118: ......
Страница 122: ......