255.255.0
IPADDR=x.x.x.x
ARP=yes
Chapter 5
[ 85 ]
2. Assign an IP address to this interface and add it to the network interfaces
file??”/etc/network/interfaces:
auto dummy0
iface dummy0 inet static
address 192.168.2.1
netmask 255.255.255.0
3. Modify the xend configuration??”/etc/xen/xend-config.sxp so that we can
bind the bridge to the new dummy network interface dummy0 by adding
the following line:
(network-script 'network-bridge netdev=dummy0')
4. Ensure that IP forwarding is enabled.
# echo "1" > /proc/sys/net/ipv4/ip_forward
5. Restart sysctl so that the changes are picked up by the live kernel.
# /sbin/sysctl ??“p
6. Create the first virtual machine on our VLAN. Use any of the guest domains
that we have been using in this book. Modify its configuration file to look as
follows:
# assume this is the webserver vm
kernel = "/boot/vmlinuz-2.6.16.38-xenU"
memory = 32
name = "vlan_domU_1"
disk = ['tap:aio:/home/pchaganti/xen-
images/ttylinux_domU.img,hda,w']
vif = [ 'ip=192.168.2.2' ]
root = "/dev/hda1 ro"
gateway="192.168.2.1"
7. Create the second virtual machine on our VLAN. Use any of the guest
domains used in this book. Modify its configuration file to look as follows:
# assume this is the mysql vm
kernel = "/boot/vmlinuz-2.6.16.38-xenU"
memory = 32
name = "vlan_domU_2"
disk = ['tap:aio:/home/pchaganti/xen-
images/ttylinux_domU.img,hda,w']
vif = [ 'ip=192.168.2.3' ]
root = "/dev/hda1 ro"
gateway="192.168.2.1"
Networking
[ 86 ]
8.
Pages:
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85