# apt-get install ifmetric
# cat /etc/network/interfaces
allow-hotplug eth0
iface eth0 inet dhcp
metric 1

allow-hotplug eth1
iface eth0 inet dhcp
metric 0