Never Restart Network on Multi-ADSL Connection Machine… Nunca reiniciar en red multi-conexión ADSL máquina…
I learned it the hard way. Me enteré por el camino difícil. Our gateway machine with firewall (shorewall) has Nuestra máquina con pasarela cortafuegos (shorewall) multiple ADSL connections configured with load balancing múltiples conexiones ADSL configurado con balanceo de carga for para more bandwidth and transparent fail-over más ancho de banda y transparente a prueba de fallas más . Today I faced an unenviable problem where one or other of the ADSL connections were going down sometime after a network restart. Hoy se enfrentan un problema poco envidiable en caso de que una u otra de las conexiones ADSL se va hacia abajo en algún momento después de reiniciar una red. It was unique because the ADSL modems (configured as router) were accessible via telnet or ping and displayed perfect connectivity. Es único porque el módem ADSL (configurado como router) eran accesibles a través de telnet o ping y se muestra perfecta conectividad. However I was unable to use them as gateway to connect to a server on the internet. Sin embargo no he podido utilizarlos como pasarela para conectarse a un servidor en Internet. They were working fine before. Ellos estaban trabajando antes de multa. With our non-trivial setup there were many suspects including the shorewall firewall and iptables (dropping certain packets?), network adapter, routing issue etc. Con nuestra no-trivial de configuración hay muchos sospechosos entre ellos el shorewall firewall iptables y (dejar caer algunos paquetes?), Adaptador de red, enrutamiento etc cuestión
The solution was interesting. La solución era interesante. We need to make some changes to the routing table to allow simultaneous access through multiple network adapters. Tenemos que hacer algunos cambios en la tabla de enrutamiento para permitir acceso simultáneo a través de múltiples adaptadores de red. In our case they were these: En nuestro caso fueron los siguientes:
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 mesa BSNL ip route add default via 192.168.1.1 mesa BSNL ip route add 192.168.0.0/24 dev eth2 src 192.168.0.10 mesa Tata ip route add default via 192.168.0.1 Tata mesa regla añadir ip 192.168.1.10 cuadro de BSNL regla añadir ip 192.168.0.10 cuadro de Tata ip sustituir ruta por defecto alcance global nexthop a través de 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. Cuando la red se reinicia todas estas entradas se han perdido. So when eth2 comes up later, eth1 goes down and vice versa. Así que cuando eth2 llega hasta más tarde, eth1 va hacia abajo y viceversa. The solution is to use a script to restart the network which does the following: La solución es usar un script para reiniciar la red que hace lo siguiente:
1. Restart network Reinicie la red
2. Add entries to routing table similar to example above Añadir entradas a la tabla de rutas similar al ejemplo anterior
3. Restart shorewall firewall (required after network restart) Reinicie shorewall firewall (requerido después de reiniciar la red)
Now I can safely restart the network without any issues at all. Ahora me puedo reiniciar la red sin ningún tipo de problemas a todos.
Filed under Filed under Fedora 7 Fedora 7 , Fedora Core 6 Fedora Core 6 , Headline News Headline News , How To Cómo , Linux , Tech Note Nota técnica , Web | |
| |
RSS 2.0 RSS 2,0 | |
Trackback this Article | este artículo |
Email this Article Enviar artículo
You may also like to read También puede leer |





January 28th, 2008 at 12:46 am 28 de enero de 2008 a 12:46 am
Quite an interesting article. Muy interesante el artículo. Would it be possible for you to share all related scripts? ¿Sería posible que usted a compartir todos los scripts? Thanks. Gracias.
January 28th, 2008 at 11:35 am 28 de enero de 2008 a 11:35 am
Check this Marque esta article artículo for more details. para más detalles.