Never Restart Network on Multi-ADSL Connection Machine… 멀티 - adsl 연결을 절대로 컴퓨터를 다시 시작 네트워크에…
I learned it the hard way. 나는 그것을 배운 방식의 하드합니다. Our gateway machine with firewall (shorewall) has 우리의 게이트웨이 컴퓨터에서 방화벽 (shorewall)은 multiple ADSL connections configured with load balancing 로드 밸런싱으로 구성 adsl 연결을 여러 개 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. 오늘 나는 an 부럽지 않는 문제에 직면 중 하나 또는 기타의 위치가 내려갈 adsl 결혼한 후 네트워크 연결을 다시 시작합니다. It was unique because the ADSL modems (configured as router) were accessible via telnet or ping and displayed perfect connectivity. 그것이 아주 독특하기 때문에 adsl 모뎀 (라우터로 구성)는 텔넷이나 핑을 통해 접근할 수와 완벽한 연결을 표시합니다. 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 dev eth1 src 192.168.1.10 테이블을 장바구니에 BSNL 인터넷 프로토콜 경로 192.168.1.1 테이블을 장바구니에 BSNL 인터넷 프로토콜 경로를 통해 기본 192.168.0.0/24 dev eth2 src 192.168.0.10 테이블을 추가 타타 인터넷 프로토콜 경로를 통해 장바구니 기본 192.168.0.1 타타 ip 192.168.1.10 테이블을 테이블에서 규칙을 장바구니에 BSNL ip 규칙을 장바구니 192.168.0.10 테이블에서 기본 범위를 대체할 타타 인터넷 프로토콜 경로를 통해 글로벌 nexthop 192.168.1.1 dev eth1 무게 192.168.0.1 dev eth2 무게를 통해 한 nexthop 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. 3합니다. Restart shorewall firewall (required after network restart) shorewall 방화벽을 다시 시작합니다 (필수 후 네트워크를 다시 시작)
Now I can safely restart the network without any issues at all. 이제는 모든 문제를 전혀하지 않고 네트워크를 안전하게 다시 시작합니다.
Filed under 밑에 Fedora 7 중절모 7 , Fedora Core 6 페도라 코어 6 , Headline News 헤드 라인 뉴스 , How To 하는 방법을 , Linux 리눅스 , Tech Note 기술 참고 사항 , Web 웹 | |
| |
RSS 2.0 rss 2.0 | |
Trackback 트랙백 this Article | 이 문서 |
Email this Article 전자 우편이 문서
You may also like to read 같은를 읽을 수있습니다 |





January 28th, 2008 at 12:46 am 2008년 1월 28일에서 오전 12시 46분
Quite an interesting article. 아주 재미있는 기사가있습니다. Would it be possible for you to share all related scripts? 그것을 공유할 수있습니다 모든 관련 스크립트를? Thanks. thanks.
January 28th, 2008 at 11:35 am 2008년 1월 28일에서 오전 11시 35분
Check this 이것 article 기사 for more details. 대한 자세한 내용.