Hello, I am trying to configure xen to work with the same configuration: * I have dom0 with one ethernet interface connected to my network. This interface (eth0) has an IP address in the vlan assigned to its port (the "typical" configuration). * I have a domU which ethernet interface is in the same network (and vlan). I configure this domU as: vif = [ '''' ] ip="<its ip>" netmask="<its netmask>" gateway="<its gateway>" hostname="<its hostname>" this domU is working perfectly. I can boot it and I can connect to its services (for example, ssh). * I have another domU I want it to be connected to a different vlan, although I want to use the same ethernet physical interface. So I want to know how do I have to configure this domU so its network works. In a typical configuration (without xen) I have to do: 1. vconfig add eth0 <vlan_id>: To create a virtual interface connected to this vlan. This virtual interface will tag all sent packets with the corresponding vlan tag. 2. Configure the interface eth0.<vland_id> with its corresponding IP address, netmask, etc. If a do this, I can work with the new IP, so the network switch is correctly configured. My problem is that I am trying to configure it (with xen) as: 1. I create the eth0.100 (for vlan id 100) interface with the vconfig command. 2. I do an ifconfig eth0.100 up 3. I create a new brigde called xen-br100 4. I run: /etc/xen/scripts/network start netdev=eth0.100 bridge=xen-br100 antispoof=no 5. I configure the domU as: vif = [ ''bridge=xen-br100'' ] ip="172.19.3.123" netmask="255.255.255.0" gateway="172.19.3.254" hostname="a hostname" (this IP, netmask and gateway is the corresponding to my vlan 100). With this configuration, network seems to work (just seems), because I can ping to its IP address. The problem is that I can''t contact with it by udp neither tcp, just by icmp. But I run tcpdump in dom0 on the eth0.100 interface, I can use all network functions in the domU (tcp and udp too). I have also check that I haven''t got any filter (iptables or other) that could filter it. I don''t know what I''m doing wrong. I''m not sure of needing another bridge to this configuration (to work without xen, I don''t need any bridge to tag an interface). I''ve just followed the instructions found in the xen howto at http://wiki.xensource.com/xenwiki/XenNetworking. I guess this isn''t an unsual configuration (having different domUs running in the different networks and vlans), so I guess it could be there a solution to this configuration. -- Angel L. Mateo Martínez Sección de Telemática Área de Tecnologías de la Información _o) y las Comunicaciones Aplicadas (ATICA) / \\ http://www.um.es/atica _(___V Tfo: 968367590 Fax: 968398337 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
John Cianfarani
2006-Apr-08 18:32 UTC
RE: [Xen-users] different vlans in different domU''s
For me I have to run the below command in my domU because of the checksum bug. ethtool -K eth0 tx off Thanks John -----Original Message----- From: xen-users-bounces@lists.xensource.com [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of Angel L. Mateo Sent: Thursday, April 06, 2006 4:41 AM To: xen-users@lists.xensource.com Subject: [Xen-users] different vlans in different domU''s Hello, I am trying to configure xen to work with the same configuration: * I have dom0 with one ethernet interface connected to my network. This interface (eth0) has an IP address in the vlan assigned to its port (the "typical" configuration). * I have a domU which ethernet interface is in the same network (and vlan). I configure this domU as: vif = [ '''' ] ip="<its ip>" netmask="<its netmask>" gateway="<its gateway>" hostname="<its hostname>" this domU is working perfectly. I can boot it and I can connect to its services (for example, ssh). * I have another domU I want it to be connected to a different vlan, although I want to use the same ethernet physical interface. So I want to know how do I have to configure this domU so its network works. In a typical configuration (without xen) I have to do: 1. vconfig add eth0 <vlan_id>: To create a virtual interface connected to this vlan. This virtual interface will tag all sent packets with the corresponding vlan tag. 2. Configure the interface eth0.<vland_id> with its corresponding IP address, netmask, etc. If a do this, I can work with the new IP, so the network switch is correctly configured. My problem is that I am trying to configure it (with xen) as: 1. I create the eth0.100 (for vlan id 100) interface with the vconfig command. 2. I do an ifconfig eth0.100 up 3. I create a new brigde called xen-br100 4. I run: /etc/xen/scripts/network start netdev=eth0.100 bridge=xen-br100 antispoof=no 5. I configure the domU as: vif = [ ''bridge=xen-br100'' ] ip="172.19.3.123" netmask="255.255.255.0" gateway="172.19.3.254" hostname="a hostname" (this IP, netmask and gateway is the corresponding to my vlan 100). With this configuration, network seems to work (just seems), because I can ping to its IP address. The problem is that I can''t contact with it by udp neither tcp, just by icmp. But I run tcpdump in dom0 on the eth0.100 interface, I can use all network functions in the domU (tcp and udp too). I have also check that I haven''t got any filter (iptables or other) that could filter it. I don''t know what I''m doing wrong. I''m not sure of needing another bridge to this configuration (to work without xen, I don''t need any bridge to tag an interface). I''ve just followed the instructions found in the xen howto at http://wiki.xensource.com/xenwiki/XenNetworking. I guess this isn''t an unsual configuration (having different domUs running in the different networks and vlans), so I guess it could be there a solution to this configuration. -- Angel L. Mateo Martínez Sección de Telemática Área de Tecnologías de la Información _o) y las Comunicaciones Aplicadas (ATICA) / \\ http://www.um.es/atica _(___V Tfo: 968367590 Fax: 968398337 _______________________________________________ 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
El sáb, 08-04-2006 a las 14:32 -0400, John Cianfarani escribió:> For me I have to run the below command in my domU because of the checksum bug. > > ethtool -K eth0 tx off >Thank you very much!!!! It solved the problem. -- Angel L. Mateo Martínez Sección de Telemática Área de Tecnologías de la Información _o) y las Comunicaciones Aplicadas (ATICA) / \\ http://www.um.es/atica _(___V Tfo: 968367590 Fax: 968398337 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
John Cianfarani
2006-Apr-10 17:33 UTC
RE: [Xen-users] different vlans in different domU''s
Glad to help! There was another post a while back I''m not sure where it is now but it had patches to the network startup scripts so you could add this into your ifcf-eth0 etc files. If you restart networking on the DomU you need to reapply the command. If I have a sec I will try to dig it up. Thanks John -----Original Message----- From: xen-users-bounces@lists.xensource.com [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of Angel L. Mateo Sent: Monday, April 10, 2006 4:48 AM To: xen-users@lists.xensource.com Subject: RE: [Xen-users] different vlans in different domU''s El sáb, 08-04-2006 a las 14:32 -0400, John Cianfarani escribió:> For me I have to run the below command in my domU because of the checksum bug. > > ethtool -K eth0 tx off >Thank you very much!!!! It solved the problem. -- Angel L. Mateo Martínez Sección de Telemática Área de Tecnologías de la Información _o) y las Comunicaciones Aplicadas (ATICA) / \\ http://www.um.es/atica _(___V Tfo: 968367590 Fax: 968398337 _______________________________________________ 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