I learned it the hard way. وقد علمت انه بالطريقة الصعبة. Our gateway machine with firewall (shorewall) has ونحن مع الآلة بوابة الجدار الناري (shorewall) multiple ADSL connections configured with load balancing خط المشترك الرقمي غير المتماثل وصلات متعددة مع تهيئتها تحميل موازنه for لأجل more bandwidth and transparent fail-over عرض النطاق الترددى أكثر شفافية وأكثر من الفشل . Today I faced an unenviable problem where one or other of the ADSL connections were going down sometime after a network restart. اليوم انا واجهت مشكلة عندما لا يحسد عليها واحدة أو اخرى من خط المشترك الرقمي غير المتماثل وصلات كانت آخذة فى الانخفاض ما بعد اعادة تشغيل الشبكه. It was unique because the ADSL modems (configured as router) were accessible via telnet or ping and displayed perfect connectivity. انها فريدة من نوعها لأن المودم خط المشترك الرقمي غير المتماثل (تشكيلة باعتباره مسار) يمكن الوصول اليها عبر تلنت او عرض بينغ والكمال الاتصال. However I was unable to use them as gateway to connect to a server on the internet. ولكن لم اكن قادرا على استخدامها بوابة للاتصال الى الخادم على شبكة الانترنت. They were working fine before. كانت تعمل جيدا من قبل. With our non-trivial setup there were many suspects including the shorewall firewall and iptables (dropping certain packets?), network adapter, routing issue etc. مع شركائنا في المنظمات غير تافهه الاعداد هناك العديد من المشتبه فيهم بما shorewall جدار وiptables (واسقاط بعض الرزم؟) ، محول الشبكه ، وما الى مسألة التوجيه

The solution was interesting. وكان الحل للاهتمام. We need to make some changes to the routing table to allow simultaneous access through multiple network adapters. ونحن بحاجة الى اجراء بعض التغييرات على قائمة التوجيه لاتاحة الوصول عن طريق متعددة في وقت واحد محولات الشبكه. In our case they were these: وفي حالتنا هذه كانت :

 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 الطريق الملكيه الفكريه اضافة 192.168.1.0/24 ديف eth1 src 192.168.1.10 الجدول bsnl الملكيه الفكريه عبر الطريق الافتراضي 192.168.1.1 اضافة الجدول bsnl الطريق الملكيه الفكريه اضافة 192.168.0.0/24 ديف eth2 src 192.168.0.10 الجدول تاتا الطريق الملكيه الفكريه عن طريق اضافة الافتراضي 192.168.0.1 الجدول تاتا الملكيه الفكريه اضافة مادة من 192.168.1.10 الجدول bsnl الملكيه الفكريه اضافة مادة من الجدول 192.168.0.10 تاتا يستعاض عن طريق الملكيه الفكريه العالمية النطاق الافتراضي nexthop عبر 192.168.1.1 ديف eth1 الوزن 1 nexthop عبر 192.168.0.1 ديف eth2 الوزن 4 

When the network is restarted all these entries are lost. عندما شبكة من جديد جميع هذه المدخلات تضيع. So when eth2 comes up later, eth1 goes down and vice versa. لذلك عندما يأتي eth2 في وقت لاحق ، eth1 انخفاضا والعكس بالعكس. The solution is to use a script to restart the network which does the following: الحل هو استخدام البرنامج النصي لاعادة تشغيل شبكة هل التالية :
1. Restart network اعادة تشغيل شبكة
2. Add entries to routing table similar to example above اضافة مداخل مماثلة لتوجيه الجدول اعلاه مثلا
3. Restart shorewall firewall (required after network restart) اعادة shorewall جدار ناري (المطلوبة بعد إعادة تشغيل الشبكه)

Now I can safely restart the network without any issues at all. استطيع الان ان اعادة تشغيل شبكة أمان من دون أي قضايا على الاطلاق.