When I add all interfaces, the internet does not work.... eth0 = interneteth1 = lan ------------------auto eth0 iface eth0 inet static address 192.168.1.254 netmask 255.255.255.0 broadcast 192.168.1.255 auto eth1 iface eth1 inet static address 192.168.0.100 netmask 255.255.255.0 broadcast 192.168.0.255 gateway 192.168.0.254 auto xenbr0 iface xenbr0 inet static address 192.168.0.101 netmask 255.255.255.0 broadcast 192.168.0.255 auto xenbr1 iface xenbr1 inet static address 192.168.0.102 netmask 255.255.255.0 broadcast 192.168.0.255 _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
config: auto eth0 iface eth0 inet static address 192.168.1.254 netmask 255.255.255.0 broadcast 192.168.1.255 auto eth1 iface eth1 inet static address 192.168.0.100 netmask 255.255.255.0 broadcast 192.168.0.255 gateway 192.168.0.254 auto xenbr0 iface xenbr0 inet static address 192.168.0.101 bridge_ports eth1 netmask 255.255.255.0 broadcast 192.168.0.255 auto xenbr1 iface xenbr1 inet static address 192.168.0.102 bridge_ports eth1 netmask 255.255.255.0 broadcast 192.168.0.255From: daemoncesar@hotmail.com To: xen-users@lists.xen.org Date: Fri, 1 Nov 2013 10:26:51 +0000 Subject: [Xen-users] network not work When I add all interfaces, the internet does not work.... eth0 = interneteth1 = lan ------------------auto eth0 iface eth0 inet static address 192.168.1.254 netmask 255.255.255.0 broadcast 192.168.1.255 auto eth1 iface eth1 inet static address 192.168.0.100 netmask 255.255.255.0 broadcast 192.168.0.255 gateway 192.168.0.254 auto xenbr0 iface xenbr0 inet static address 192.168.0.101 netmask 255.255.255.0 broadcast 192.168.0.255 auto xenbr1 iface xenbr1 inet static address 192.168.0.102 netmask 255.255.255.0 broadcast 192.168.0.255 _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
On Fri, 2013-11-01 at 10:26 +0000, Cesar A. wrote:> When I add all interfaces, the internet does not work....http://wiki.xen.org/wiki/Network_Configuration_Examples_%28Xen_4.1%2B%29 contains examples of how to do this correctly.> eth0 = internet > eth1 = lanAre you intending for these to be bridged via xenbr0 and xenbr1 or are those bridges intended to be internal only? Assuming the former then you want to drop the eth0/eth1 stanzas from your configuration and add the necessary directives (see the link above) to add the physical NICs as ports to the bridge. Depending on your environment you may also want to use e.g. the eth0 IP settings on xenbr0. It doesn''t make sense to have eth0 bridged to xenbr0 with both having IP settings, your settings need to be on the bridge not the enslaved NIC. HTH Ian.