🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.os.linux.sieci
Article #244126

Re: Problem z dodaniem trzeciego łącza do internetu

#244126
From: ein
Date: Thu, 27 Mar 2014 22:04
30 lines
2242 bytes
Melwinek wrote:
> Mam w tej chwili dwa działające łącza:
> 
> ip route add WAN1/29 dev eth0 src IP1 table 201
> ip route add default via BRAMA1 table 201
> ip route add WAN2/24 dev eth1 src IP2 table 202
> ip route add default via BRAMA2 table 202
> 
> ip route add WAN1/29 dev eth0 src IP1
> ip route add WAN2/24 dev eth1 src IP2
> 
> ip rule add from IP1 table 201
> ip rule add from IP2 table 202
> 
> ip route add default scope global nexthop via BRAMA2 dev eth1 weight 2 nexthop via BRAMA1 dev eth0 weight 1
> 
> ip route flush cache
> 
> iptables -t nat -A POSTROUTING -o eth0 -s 192.168.2.0/24 -j MASQUERADE
> iptables -t nat -A POSTROUTING -o eth1 -s 192.168.2.0/24 -j MASQUERADE
> 
> i wszystko działa
> 
> Mam dodatkowe łącze zakończone routerem od providera. Jest wpięte w sieć LAN. Ma adres w mojej sieci wewnętrznej a dokładnie 192.168.2.8..
> Musi być ten router providera i wpięcie do lan a nie bezpośrednio do tego samego serwera co WAN1 i WAN2 bo jest to łącze w drugiej lokalizacji oddalonej o 2km. 
> Totalnie nie wiem jak to dopiąć do pozostałych dwóch.
> Podpowie ktoś coś ?

Analogicznie, jak z tym powyżej:
http://lukasz.bromirski.net/docs/translations/lartc-pl.html#LARTC.RPDB.MULTIPLE-LINKS
Technical Details
Message-ID: <lh279o$grq$1@node2.news.atman.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail
References: <0d3629dc-de7e-4d36-b469-20b70c72228d@googlegroups.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail
From: ein <ein@no.spam>
Newsgroups: pl.comp.os.linux.sieci
Subject: Re: Problem z dodaniem trzeciego łącza do
 internetu
Date: Thu, 27 Mar 2014 23:04:42 +0100
Organization: ATMAN - ATM S.A.
Lines: 32
Message-ID: <lh279o$grq$1@node2.news.atman.pl>
References: <0d3629dc-de7e-4d36-b469-20b70c72228d@googlegroups.com>
NNTP-Posting-Host: 89-65-104-248.dynamic.chello.pl
Mime-Version: 1.0
X-Trace: node2.news.atman.pl 1395957880 17274 89.65.104.248 (27 Mar 2014 22:04:40 GMT)
X-Complaints-To: usenet@atman.pl
NNTP-Posting-Date: Thu, 27 Mar 2014 22:04:40 +0000 (UTC)
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0
In-Reply-To: <0d3629dc-de7e-4d36-b469-20b70c72228d@googlegroups.com>
X-Enigmail-Version: 1.6
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit