# This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback # The primary network interface auto bond0 iface bond0 inet static address 155.54.212.93 netmask 255.255.255.128 network 155.54.212.0 broadcast 155.54.212.127 gateway 155.54.212.1 # dns-* options are implemented by the resolvconf package, if installed dns-nameservers 155.54.1.1 155.54.15.240 dns-search um.es slaves eth0 eth1 # #################################################### # BEGIN cfengine cf.xenservers interfaces.tmpl v1.0 # ############################################################################ # Este fichero es el template para definir los interfaces de red para poder # trabajar con VLANs (tagging) y bridges integrados con Xen ############################################################################ # # Los pre-up de las iface vlanXXX en principio no deberian ser necesarios # si todo el fichero esta en un orden correcto. Los pongo porque asi me # puedo despreocupar del orden final de las interfaces en el fichero y me # aseguro que todo va a funcionar # ########################################################################### # Version: $Id: interfaces-nuevo.tmpl 2961 2008-06-05 08:41:08Z amateo $ # Date: $Date: 2008-06-05 10:41:08 +0200 (jue, 05 jun 2008) $ ########################################################################### auto xen-br300 xen-br301 xen-br302 xen-br303 xen-br304 xen-br305 xen-br3 xen-br10 xen-br40 # interfaz y bridge para la VLAN 300 (172.19.1.x - ldap) iface vlan300 inet manual pre-up /sbin/ifup bond0 vlan-raw-device bond0 iface xen-br300 inet manual pre-up /sbin/ifup vlan300 bridge_ports vlan300 bridge_fd 0 # interfaz y bridge para la VLAN 301 (172.19.2.x - smtp) iface vlan301 inet manual pre-up /sbin/ifup bond0 vlan-raw-device bond0 iface xen-br301 inet manual pre-up /sbin/ifup vlan301 bridge_ports vlan301 bridge_fd 0 # interfaz y bridge para la VLAN 302 (172.19.3.x - pop/imap) iface vlan302 inet manual pre-up /sbin/ifup bond0 vlan-raw-device bond0 iface xen-br302 inet manual pre-up /sbin/ifup vlan302 bridge_ports vlan302 bridge_fd 0 # interfaz y bridge para la VLAN 303 (172.19.4.x - web) iface vlan303 inet manual pre-up /sbin/ifup bond0 vlan-raw-device bond0 iface xen-br303 inet manual pre-up /sbin/ifup vlan303 bridge_ports vlan303 bridge_fd 0 # interfaz y bridge para la VLAN 304 (172.19.5.x - mysql) iface vlan304 inet manual pre-up /sbin/ifup bond0 vlan-raw-device bond0 iface xen-br304 inet manual pre-up /sbin/ifup vlan304 bridge_ports vlan304 bridge_fd 0 # interfaz y bridge para la VLAN 305 (155.54.212.208 - RADIUS) iface vlan305 inet manual pre-up /sbin/ifup bond0 vlan-raw-device bond0 iface xen-br305 inet manual pre-up /sbin/ifup vlan305 bridge_ports vlan305 bridge_fd 0 # interfaz y bridge para la VLAN 3 (10.54.212.x - filer) iface vlan3 inet manual pre-up /sbin/ifup bond1 vlan-raw-device bond1 iface xen-br3 inet manual pre-up /sbin/ifup vlan3 bridge_ports vlan3 bridge_fd 0 # interfaz y bridge para la VLAN 10 (155.54.0.0/10 - VLAN Espinardo) iface vlan10 inet manual pre-up /sbin/ifup bond0 vlan-raw-device bond0 iface xen-br10 inet manual pre-up /sbin/ifup vlan10 bridge_ports vlan10 bridge_fd 0 # interfaz y bridge para la VLAN 40 (155.54.66.0/23 - ATICA) iface vlan40 inet manual pre-up /sbin/ifup bond0 vlan-raw-device bond0 iface xen-br40 inet manual pre-up /sbin/ifup vlan40 bridge_ports vlan40 bridge_fd 0 # # END cfengine cf.xenservers interfaces.tmpl #################################################### # ######################################################## # BEGIN cfengine cf.xenservers interfaces-bond.tmpl v1.1 # ############################################################################ # Template para definir un bond sobre interfaces secundarias, es decir, # interfaces fuera de la interfaz primaria que no van a tener IP (el bond0 # para la interfaz principal, de momento, lo dejo que haya que hacerlo a mano) ############################################################################ ########################################################################### # Version: $Id: interfaces-bond.tmpl 2161 2007-10-18 11:53:06Z amateo $ # Date: $Date: 2007-10-18 13:53:06 +0200 (jue, 18 oct 2007) $ ########################################################################### auto bond1 iface bond1 inet manual pre-up /sbin/ifconfig eth2 up pre-up /sbin/ifconfig eth3 up pre-up /sbin/ifconfig bond1 up slaves eth2 eth3 # # END cfengine cf.xenservers interfaces-bond.tmpl ########################################################