# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

auto lo eth0 eth1 eth2 eth3 eth4 eth5
allow-hotplug eth0 eth1 eth2 eth3 eth4 eth5

# loopback
iface lo inet loopback

# configure interfaces by dark magic so it works on almost all systems
mapping eth0 eth2 eth4
	script /usr/bin/cacert_if_helper
	map foo cacert1-dhcp
# replace cacert1-dhcp with cacert1-static to use a static IP address as
# defined below

mapping eth1 eth3 eth5
	script /usr/bin/cacert_if_helper
	map foo secure1-dhcp
# replace secure1-dhcp with secure1-static to use a static IP address as
# defined below



iface cacert1-static inet static
	address 192.168.178.10
	netmask 255.255.255.0
	gateway 192.168.178.1
	post-up /usr/bin/cacert_update_etc_hosts cacert1

iface secure1-static inet static
	address 192.168.178.11
	netmask 255.255.255.0
	post-up /usr/bin/cacert_update_etc_hosts secure1

iface cacert1-dhcp inet dhcp
	hostname cacert1
	post-up /usr/bin/cacert_update_etc_hosts cacert1

iface secure1-dhcp inet dhcp
	hostname secure1
	post-up /usr/bin/cacert_update_etc_hosts secure1


