Hello , For networking filtering , i want to specify the vif interface for one domain . By default each domain has a vif interface with ending with his dom_id . Can we specify for a domain the domain id ? or Can we specify for a domain the vif interface ? -- ____________________________________________________________ / Erwan MAS /\ | mailto:erwan@mas.nom.fr |_/ ___|________________________________________________________ | \___________________________________________________________\__/ ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
> For networking filtering , i want to specify the vif interface > for one domain . > > By default each domain has a vif interface with ending with his > dom_id . > > Can we specify for a domain the domain id ?No. Think of a domid like a unix PID.> Can we specify for a domain the vif interface ?Not right now, though I guess in principle you could. However, when a vif is created the the vif script gets invoeked with the name of the domain and the assigned vif. You can hence use the domain name for inserting domain-specific iptables rules etc. Ian ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
On Sat, Mar 12, 2005 at 03:53:09PM -0000, Ian Pratt wrote:> > Can we specify for a domain the vif interface ? > > Not right now, though I guess in principle you could. > > However, when a vif is created the the vif script gets invoeked with the > name of the domain and the assigned vif. You can hence use the domain > name for inserting domain-specific iptables rules etc.You can also rename the vif using ip once it has been created eg ip link set vif17.0 name myname That is what we do to solve the same problem. It doesn''t seem to cause any other problems. -- Nick Craig-Wood <nick@craig-wood.com> -- http://www.craig-wood.com/nick ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
Excellent... been looking for a way to do this. When we want to allow IP access to a VM we need to parse things to get the ID so we know which device to route the IP to... this seems to be much more efficient. On Sun, 2005-03-13 at 23:07 +0000, Nick Craig-Wood wrote:> On Sat, Mar 12, 2005 at 03:53:09PM -0000, Ian Pratt wrote: > > > Can we specify for a domain the vif interface ? > > > > Not right now, though I guess in principle you could. > > > > However, when a vif is created the the vif script gets invoeked with the > > name of the domain and the assigned vif. You can hence use the domain > > name for inserting domain-specific iptables rules etc. > > You can also rename the vif using ip once it has been created eg > > ip link set vif17.0 name myname > > That is what we do to solve the same problem. It doesn''t seem to > cause any other problems. >-- ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel