Contact: Web / Voice / Email / Tips
Simple Thoughts Blog - Java and Web Technologies

Simple solutions for complex problems.

 

Never Restart Network on Multi-ADSL Connection Machine…

November 23rd, 2007 by Angsuman Chakraborty

I learned it the hard way. Our gateway machine with firewall (shorewall) has 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.

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

When the network is restarted all these entries are lost. So when eth2 comes up later, eth1 goes down and vice versa. 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)

Now I can safely restart the network without any issues at all.


Tags: DSL, Dataone Broadband, Fedora 7, Fedora Core 6, Headline News, How To, Linux, Tata Indicom Broadband, Tech Note, Web | | RSS 2.0 | Trackback this Article | Email this Article

You may also like to read

»How To Add Multiple IP Addresses On Linux / Fedora Core / Fedora
»Wading in IPTABLES, Traffic Shaping & Routing for Multiple Uplink Providers
»How To Setup BSNL DataOne Broadband on Linux / Fedora Core
»How To Connect Broadband & EPABX on Same Line
»How To Configure Dual ADSL / Cable Connections, Firewall, Gateway / NAT With Shorewall Firewall on Linux
»Experiences With eBox Platform (Total Network Solution for Small Business)
»Tips on Configuring (A)DSL Modems
»How To: Wireless Networking With BSNL DataOne Broadband On Windows & Linux
»Solving pppoe: Timeout waiting for PADO packets
»How To Display / Delete IP Route Cache on Linux
»Load Balancing & Failover Script for Dual/ Multi WAN / ADSL / Cable Connections on Linux with Mail on failure
»Cheapest Broadband in Kolkata / Calcutta
»AirTel Broadband Brings Broadband @ 8 Mbps
»How To Disable IPv6 on Fedora / Linux & Why
»How To Get Reliable & Affordable Broadband in India

2 Responses to “Never Restart Network on Multi-ADSL Connection Machine…”

  1. Subbu Says:

    Quite an interesting article. Would it be possible for you to share all related scripts? Thanks.

  2. Angsuman Chakraborty Says:

    Check this article for more details.

Looking forward to hear your thoughts.



Please enter the code shown below ( to verify that you are human ) before you click Submit Comment.

No. 1 method to ethically increase your blog traffic and reach.

Translate

Translate to EnglishÜbersetzen Sie zum Deutsch/GermanPřeložit do Čech/CzechOversætte hen til Dansk/DanishKääntää jotta Finnish/FinnishLefordít -hoz Magyar/HungarianÞýða til Íslenska/IcelandicTraducir a Latinoamericano Español/Latin American Spanishtagapagsalin sa Filipino/FilipinoTłumaczyć wobec Polski/PolishA traduce la spre Român/RomanianPrevesti za Srpski/Serbiantolmačiti v slovenski/SlovenianÖversätta till Svensk/SwedishChyfieitha at Cymraeg/Welshtercüme etmek -e doğru Türk/TurkishPrevesti to Hrvatski/CroatianПревеждам към Българин/BulgarianTraduzca al Español/SpanishTraduisez au Français/FrenchTraduca ad Italiano/ItalianTraduza ao Português/Portuguese日本語に翻訳しなさい /Japanese한국어에게 번역하십시오/Korean中文翻译/Chinese Simplifiedترجمة الى العربية/ArabicVertaal aan het Nederlands/DutchΜεταφράστε στα ελληνικά/GreekПереведите к русскому/RussianOversetter til Norsk/Norwegian中文翻译/Chinese TraditionalTraduzir a Língua portuguesa brasileira/Brazilian PortugueseReddo ut Latin/Latin

Taragana Network

»Ctrl-S
»Enterprise Blog
»Free Book on Eye Care by Natural Therapy
»Health Care Blog
»Hot Computer Jobs Blog
»Pet Care & Grooming News and Tips
»Phil Law Blog
»Taragana - Software Outsourcing
»The Angsuman Chakraborty Blog
»The Diabetes Cure Blog
»The Eye Treatment Blog
»The Stem Cell Blog
»Weblog Hosting Blog
"Do not worry about your difficulties in Mathematics. I can assure you mine are still greater." - Albert Einstein