# 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 eth0
allow-hotplug eth0
iface eth0 inet static
	address 192.168.13.3
	netmask 255.255.255.0
	network 192.168.13.0
	broadcast 192.168.13.255
	gateway 192.168.13.7
	# dns-* options are implemented by the resolvconf package, if installed
	dns-nameservers 192.168.13.3
	# routing information for all internet connections
	# including one routing table for each connection
	up ip route add default via 192.168.13.6 table lte
	up ip route add default via 192.168.13.7 table sat
	up ip route add default via 192.168.13.8 table umts

	up ip rule add from 192.168.13.3 table lte priority 30000
	up ip rule add from 192.168.13.4 table sat priority 30001
	up ip rule add from 192.168.13.5 table umts priority 30002
	up ip rule add fwmark 6 table lte priority 20000
	up ip rule add fwmark 7 table sat priority 20001
	up ip rule add fwmark 8 table umts priority 20002
	up ip rule add to 192.168.100.1 lookup sat priority 10001
	up ip rule add from all to 192.168.13.0/24 table main priority 10002

	down ip route del default via 192.168.13.6 table lte
	down ip route del default via 192.168.13.7 table sat
	down ip route del default via 192.168.13.8 table umts
	down ip rule del from 192.168.13.3 table lte
	down ip rule del from 192.168.13.4 table sat
	down ip rule del from 192.168.13.5 table umts
	down ip rule del fwmark 6 table lte
	down ip rule del fwmark 7 table sat
	down ip rule del fwmark 8 table umts
	down ip rule del to 192.168.100.1 lookup sat

auto eth0:0
allow-hotplug eth0:0
iface eth0:0 inet static
	address 192.168.13.4
	netmask 255.255.255.0

auto eth0:1
allow-hotplug eth0:1
iface eth0:1 inet static
	address 192.168.13.5
	netmask 255.255.255.0
