I have a thinkpad T20 with latest Ubuntu 8.04. This machine has 2
NICs and I would like to set the metric of one of them as
higher. This would permit me to move the T20 in the house with the
wireless and when at my desk plug it in in the linksys and have
nothing to do to set it up. The problem with the 2 NICs is that if I
start both interfaces at same time, the machine will receive 2 default
routes, 2 routes to the router with the same metric. This confuse
TCP/IP and I can't communicate with my gateway to access internet.
Both NICs will are set to use DHCP to get IP address. I am not using
Network Manager since it caused me many problems before.... But this
is another issue.
With Windows this is very simple to do. You go to the property of the
NIC, property of tcp/ip, then in advanced options you may set the NIC
default metric manually to whatever you need.
I haven't been able to find out how to do this in Ubuntu yet. I have
read man pages on /etc/network/interfaces without finding any human
readable hint on how to set the metric. I have read man pages on
dhclient to try suggest DHCP to give me the metric I need without
success too. Googling has not been successfull either.
Has anybody succeeded in setting the metric of an interfaces yet ?
And if yes HOW ?