anonymous@RULINUX.NET~# Last login: 2024-05-05 10:05:02
Регистрация Вход Новости | Разметка | Пользователи | Галерея | Форум | Статьи | Неподтвержденное | Трекер | Правила форума | F.A.Q. | Ссылки | Поиск
[#] [Добавить метку] [Редактировать]
Скрыть

две сети + 2 сетевушки = отказоустойчивый сервер

Есть eth0 и eth1 со следующими параметрами соответственно:

ip1=212.152.36.162 netmask1=255.255.255.240 gateway1=212.152.36.161 dns1=212.152.32.66

ip2=22.12.3.12 netmask2=255.255.255.0 gateway2=22.12.3.1 dns2=22.12.2.4

обе сетевухи воткнуты в мамку и в комп ведет два сетевых кабеля, от разных свичей. Как сделать так, чтобы при произвольном вытаскивании любого из кабелей(но не двух сразу) оставалась доступной сеть в целом и в целом видна была бы машина извне. т.е. своеобразная отказоустойчивая система.

По каким ключевым словам хотя бы искать? Спасибо!

vilfred(*) (2009-12-18 00:19:00)

Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.2b4) Gecko/20091124 Firefox/3.6b4 FBSMTWB

[Ответить на это сообщение]
avatar
Скрыть

Re: две сети + 2 сетевушки = отказоустойчивый сервер

> По каким ключевым словам хотя бы искать?
По каким-нибудь из этих ищи:

Enabling failover routing

After you have configured your network, the next step is to enable failover routing on your Linux box, so that if the first route dies the router will automatically switch over to the next route. To do so, you'll need to add the default gateway routes provided to you by your ISPs for both your network cards:

# route add default gw 61.16.130.97 dev eth0

# route add default gw 200.15.110.90 dev eth1

Here, 61.16.130.97 is the gateway address given by ISP1 and 200.15.110.90 is the gateway address given by ISP2. Replace them with the addresses available to you. These routes will disappear every time you reboot the system. In order to make these routes permanent add the above two commands in the /etc/rc.d/rc.local file, which is run at boot time.

Also make sure that all the computers on your internal LAN (10.0.0.0/24) have their default gateway address set as the IP address of the eth3 Ethernet interface (i.e. 10.0.0.1) of your failover router.

Finally, modify the /proc/sys/net/ipv4/route/gc_timeout file. This file contains a numerical value that denotes the time in seconds after which the kernel declares a route to be inactive and automatically switches to the other route if available. Open the file in any text editor and change its default value of 300 to some smaller value, say 10 or 15. Save the changes and exit.

Now your Linux machine is ready to serve as a failover router, automatically and quickly switching to the secondary route every time the primary route fails.

HEBECTb_KTO(*)(2009-12-18 00:25:17)

avatar
Скрыть

Re: две сети + 2 сетевушки = отказоустойчивый сервер

спасибо народ, гляну как и что...

vilfred(*)(2009-12-18 00:37:31)

Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.2b4) Gecko/20091124 Firefox/3.6b4 FBSMTWB
avatar
Скрыть

Re: две сети + 2 сетевушки = отказоустойчивый сервер

оч любопытно, куда делось сообщение gnomino ?

vilfred(*)(2009-12-18 00:38:06)

Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.2b4) Gecko/20091124 Firefox/3.6b4 FBSMTWB
avatar
Скрыть

Re: две сети + 2 сетевушки = отказоустойчивый сервер

>оч любопытно, куда делось сообщение gnomino ?
Я его удалили ибо делать маршрутизатор немного не твой вариант все же

gnomino(*)(2009-12-18 02:53:31)

Mudilla/9.0 (XXX; U; *nix i686; ru; rv:1.8.1.11) Gecko/20071128 nonM$OS/2.0.0.11-1.5 Firefox/2.0.0.0
avatar
Скрыть

Re: две сети + 2 сетевушки = отказоустойчивый сервер

А просто bonding driver на двух интерфейсах поднять? Причем там даже round-robin позволяет немного расширить канал, когда обе сетевухи работают, и работать на одной, если другая падает.

anonymous(*)(2009-12-19 10:39:22)

Mozilla/5.0 (X11; U; Linux i686; ru-RU; rv:1.8.1.4) Gecko/20070601 SeaMonkey/1.1.2
Этот тред читают 1 пользователь:
Анонимных: 1
Зарегистрированных: 0




(c) 2010-2020 LOR-NG Developers Group
Powered by TimeMachine

Valid HTML 4.01 Transitional Правильный CSS!