Dear all, we''re currently setting up several (many) domains which all need to communicate with Dom0, but not with the outside world. What we need is a way to specify that guest domains virtual interfaces (vifx.x) should not be bridged to the physical interface (eth0) - is this possible?. Also when specifying the mac address and ip in the config file (as per the manual) it doesnt seem to have any effect on ip and mac the domain actually uses (defaults are used instead). Is there some other way to specify this? Thanks in advance, Alasdair _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Jan 25, 2008 9:45 AM, Alasdair P Mclean <mcleanap@dcs.gla.ac.uk> wrote:> Dear all, > > we''re currently setting up several (many) domains which all need to > communicate with Dom0, but not with the outside world. What we need is a way > to specify that guest domains virtual interfaces (vifx.x) should not be > bridged to the physical interface (eth0) - is this possible?. >Yes, you can setup a dummy0 device in Dom0 to be used for this purpose. 1. Create the dummy0 network interface device (as simple as creating a network device and loading the dummy module appropriately) - this process is of course distro specific 2. Specify the (network-script ''network-bridge netdev=dummy0'') in xend-config.sxp. If you need other accesses you will need to setup a custom script that handles that. 3. use the appropriate vif=[''bridge=xenbrX''] for the guest config.> > Also when specifying the mac address and ip in the config file (as per the > manual) it doesnt seem to have any effect on ip and mac the domain actually > uses (defaults are used instead). Is there some other way to specify this? > >From my experience MAC address hhas always worked. I would be surprised thatit doesn''t for you. Post the relevant config for that and also the Xen version etc. Setting the IP I have often had to do manually in the guest to match. I am not sure if this was/is a bug or is by design. Best Regards, Todd> Thanks in advance, > Alasdair > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Thanks for the advice on how to set up the domains interfaces :-) The relevant line in the domain config was set to vif=[''ip=10.0.0.1,mac=<MACADDRESS>''] - that''s as per the manual I think?. Neither had any effect on what ifconfig actually (this is on Xen 3.1.0 btw). Cheers, Alasdair -----Original Message----- From: Todd Deshane [mailto:deshantm@gmail.com] Sent: Fri 1/25/2008 3:26 PM To: Alasdair P Mclean Cc: xen-users@lists.xensource.com Subject: Re: [Xen-users] Domain interfaces On Jan 25, 2008 9:45 AM, Alasdair P Mclean <mcleanap@dcs.gla.ac.uk> wrote:> Dear all, > > we''re currently setting up several (many) domains which all need to > communicate with Dom0, but not with the outside world. What we need is a way > to specify that guest domains virtual interfaces (vifx.x) should not be > bridged to the physical interface (eth0) - is this possible?. >Yes, you can setup a dummy0 device in Dom0 to be used for this purpose. 1. Create the dummy0 network interface device (as simple as creating a network device and loading the dummy module appropriately) - this process is of course distro specific 2. Specify the (network-script ''network-bridge netdev=dummy0'') in xend-config.sxp. If you need other accesses you will need to setup a custom script that handles that. 3. use the appropriate vif=[''bridge=xenbrX''] for the guest config.> > Also when specifying the mac address and ip in the config file (as per the > manual) it doesnt seem to have any effect on ip and mac the domain actually > uses (defaults are used instead). Is there some other way to specify this? > >From my experience MAC address hhas always worked. I would be surprised thatit doesn''t for you. Post the relevant config for that and also the Xen version etc. Setting the IP I have often had to do manually in the guest to match. I am not sure if this was/is a bug or is by design. Best Regards, Todd> Thanks in advance, > Alasdair > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Alasdair P Mclean wrote:> > Dear all, > > we''re currently setting up several (many) domains which all need to > communicate with Dom0, but not with the outside world. What we need is > a way to specify that guest domains virtual interfaces (vifx.x) should > not be bridged to the physical interface (eth0) - is this possible?. >RHEL-5.1, Centos 5.1 and Fedora would give you a solution for this out of the box through its virbr0 interface created by libvirt by default. All that you have to do is edit /etc/xen/xend-config.sxp and specify (network-script /bin/true). That is it. I am not sure about other distros.> > Also when specifying the mac address and ip in the config file (as per > the manual) it doesnt seem to have any effect on ip and mac the domain > actually uses (defaults are used instead). Is there some other way to > specify this? >IP address shouldn''t have any effect in domU, but mac address has always worked for me. An example entry from my config file is as below. vif = [ ''mac=00:16:3e:3b:f7:80, bridge=xenbr1'' ] --Sadique> > > Thanks in advance, > Alasdair > > ------------------------------------------------------------------------ > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users