[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Xen-users] how to enable dom0 and domu share same physical network...
Am 28.11.2012 19:39, schrieb Tapdiya,
Ashish:
Hi,
I have two physical machines connected through a switch in a
192.168.1.* subnet. Dom0's are assigned static ip addresses
192.168.1.100, 192.168.1.101 respectively. Dom0's can ping each
other. Each physical machine has a domu guest and static address
assigned to domu's are 192.168.1.200, 192.168.1.201
respectively.
However domu's can neither ping each other nor dom0's. Similarly
dom0's cannot ping domu's. Following are my configuration
specifics:
In /etc/xen/xend-config.sxp following entries are enabled
network-script network-bridge
vif-script vif-bridge
Domu's /etc/network/interfaces static ip is assigned like this
auto eth0
iface eth0 inet static
address 192.168.1.200
netmask 255.255.255.0
gateway 192.168.1.2
if dom-u creation config file vif entry is as follows,
vif = ['ip=192.168.1.200']
How to enable domu's to share same physical network and become
part of 192.168.1.* subnet.
Any help or pointer will be highly appreciated.
Thanks.
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users
Hello,
so the right scripts are set in xend-config.sxp. Does the system
create a correct bridge and connects the DomU devices to the bridge
when the DomU starts?
So in the case of a Debian/Ubuntu system you can do this very easy
manually on this way:
Open /etc/network/interfaces with an editor and put in something
like this:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet manual
auto xenbr0
iface xenbr0 inet static
address IP
netmask NETMASK
gateway GATEWAY
bridge_ports eth0
bridge_stp off
bridge_fd 0
Then restart the network:
/etc/init.d/networking restart
Before you do this comment out the network-script network-bridge
line in xend-config.sxp.
The vif line would look like this:
vif = ['ip=IP,bridge=xenbr0']
Then should the DomU be able to communicate with the physical
network.
The bridge-utils must be installed for this. For Red Hat based
distributions you have to create a network script for eth0 and for
the bridge. For any other distribution you can look in the
documentation how to create bridges.
Best Regards
|
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users
|