Operating System - Linux
1830165 Members
3033 Online
109999 Solutions
New Discussion

Re: two links and two NICs

 
Ragu_3
Trusted Contributor

two links and two NICs

There are two network adapters eth0 and eth1 in one of the servers here. Both the NICs are connected to the Internet via 2 different ISPs on each of them. Is there any tool in Debian GNU/Linux where I can specify and prioritize the link to be used, preferably a CLI tool? TIA.
Debian GNU/Linux for the Enterprise! Ask HP ...
3 REPLIES 3
Steven E. Protter
Exalted Contributor

Re: two links and two NICs

Network configuration can deal with that.

I'm not sure of the Debian location but there is a file called ifcfg-eth0 and ifcfg-eth1

On my boxes its in the /etc/sysconfig/network-scripts folder

A gateway statement will set internet priority. You are probably not going to want two, but you may.

gateway=ip_address_from_isp

if eth0 has a gateway and eth1 does, all Internet outbound traffic will use eth0

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Slawomir Gora
Honored Contributor

Re: two links and two NICs

Hi,

I think that you can only properly set your
routing table - I meen one set of dest networks by ISP1 and second set of dest. networks by ISP2.
You have to check which ISP is better for which dest. networks and add add static routes.

Don_89
Trusted Contributor

Re: two links and two NICs

Steve is correct here. The gateway address defines where the packets go. If you have 2 ISP's, your router should be running BGP which will determine the best route.