1. Execute the /etc/xen/scripts/network-bridge script.
2. This will create a new network bridge called xenbr0.
3. Copy the MAC address and IP address from the physical network
interface eth0.
4. Stop the physical network interface eth0.
5. Create a new pair of connected virtual ethernet interfaces??”veth0 and
vif0.0.
6. Assign the previously copied MAC address and IP address to the virtual
interface veth0.
7. Rename the physical network interface to peth0 from eth0.
8. Rename the virtual network interface veth0 to eth0.
9. Attach peth0 and vif0.0 to the bridge xenbr0.
10. Bring up the bridge xenbr0, and the network interfaces peth0, eth0, and
vif0.0.
Chapter 5
[ 77 ]
Check the network configuration and list details of the various interfaces created by
running the ifconfig command:
The hardware address or MAC address for all the interfaces is set to the broadcast
address FF:FF:FF:FF:FF:FF. Use the bridge utility tools for listing the Ethernet
bridge configuration to examine the topology of the default bridge xenbr0 created by
xend on startup. This will also show the various interfaces or ports attached to each
bridge created. As you can see in the following screenshot, the interfaces peth0 and
vif0.0 are both attached to the bridge xenbr0:
Networking
[ 78 ]
The following diagram shows the network configuration with the various interfaces
created and the connections to the bridge when xend is started and only dom0
is running.
When we start up domU with the configuration file created above, the network
configuration looks as follows:
Chapter 5
[ 79 ]
As we can see in the previous screenshot, new interfaces were added to the network
configuration.
Pages:
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79