I learned it the hard way. Ho imparato che il modo difficile. Our gateway machine with firewall (shorewall) has La nostra macchina gateway con firewall (shorewall) multiple ADSL connections configured with load balancing più connessioni ADSL configurato con il bilanciamento del carico for per more bandwidth and transparent fail-over larghezza di banda più trasparente e di fail-over . Today I faced an unenviable problem where one or other of the ADSL connections were going down sometime after a network restart. Oggi ho di fronte uno poco invidiabile problema nel caso in cui una o l'altra delle connessioni ADSL sono state scendendo qualche volta dopo una rete riavviare. It was unique because the ADSL modems (configured as router) were accessible via telnet or ping and displayed perfect connectivity. E 'stato unico perché il modem ADSL (configurato come router) sono stati accessibile via telnet o ping e mostrate perfetta connettività. However I was unable to use them as gateway to connect to a server on the internet. Tuttavia non ho potuto utilizzare come gateway per connettersi a un server su Internet. They were working fine before. Sono stati di lavoro prima di ammenda. With our non-trivial setup there were many suspects including the shorewall firewall and iptables (dropping certain packets?), network adapter, routing issue etc. Con i nostri non banali di installazione ci sono stati molti sospetti tra cui il shorewall firewall e iptables (cadere alcuni pacchetti?), Scheda di rete, ecc problema di routing

The solution was interesting. La soluzione è stata interessante. We need to make some changes to the routing table to allow simultaneous access through multiple network adapters. Abbiamo bisogno di apportare alcune modifiche alla tabella di routing per consentire l'accesso simultaneo con più schede di rete. In our case they were these: Nel nostro caso sono stati questi:

 ip route add 192.168.1.0/24 dev eth1 src 192.168.1.10 table bsnl ip route add default via 192.168.1.1 table bsnl ip route add 192.168.0.0/24 dev eth2 src 192.168.0.10 table tata ip route add default via 192.168.0.1 table tata ip rule add from 192.168.1.10 table bsnl ip rule add from 192.168.0.10 table tata ip route replace default scope global nexthop via 192.168.1.1 dev eth1 weight 1 nexthop via 192.168.0.1 dev eth2 weight 4 ip route add 192.168.1.0/24 dev eth1 src 192.168.1.10 tabella bsnl ip route add default via 192.168.1.1 tabella bsnl ip route add 192.168.0.0/24 dev eth2 src 192.168.0.10 tabella tata ip route add default via 192.168.0.1 tata tabella ip regola da aggiungere 192.168.1.10 tabella bsnl ip regola da aggiungere 192.168.0.10 tabella tata ip route predefinita sostituire portata globale nexthop via 192.168.1.1 dev eth1 peso 1 nexthop via 192.168.0.1 dev eth2 peso 4 

When the network is restarted all these entries are lost. Quando la rete è riavviato tutte queste voci sono persi. So when eth2 comes up later, eth1 goes down and vice versa. Così, quando viene a eth2 più tardi, eth1 scende e viceversa. The solution is to use a script to restart the network which does the following: La soluzione è utilizzare uno script per riavviare la rete che fa la seguente:
1. Restart network Riavviare rete
2. Add entries to routing table similar to example above Aggiungere le entrate alla tabella di routing simile al precedente
3. Restart shorewall firewall (required after network restart) Riavviare shorewall firewall (necessario riavviare dopo la rete)

Now I can safely restart the network without any issues at all. Ora posso tranquillamente riavviare la rete senza problemi a tutti.