[linux-network] Re: split access konusunda anlayamadigim bir konu

---------

New Message Reply About this list Date view Thread view Subject view Author view Attachment view

From: Kivanc Oskay (koskay@cozumbilgisayar.com.tr)
Date: Thu 06 May 2004 - 17:58:15 EEST


selam,

evet aynen oyle,
"$P1_NET", "$IF1" interface.inin subneti, "$IP1" ise ayni interface.in
ip adresi

Kivanc Oskay
System Support Specialist

Cozum Bilgisayar Ltd.
Tel: +90 212 274 7877
Fax: +90 212 274 8056
koskay@cozumbilgisayar.com.tr

-----Original Message-----
From: linux-network-bounce@liste.linux.org.tr
[mailto:linux-network-bounce@liste.linux.org.tr] On Behalf Of Enis
B=FCy=FCkg=FCner
Sent: Thursday, May 06, 2004 5:37 PM
To: LKD E-posta Listecisi
Subject: [linux-network] split access konusunda anlayamadigim bir konu

Selam arkadaslar=20
=20

Asagidaki aciklamada anlayamadigim bir yer var da. Rica etsem anlayan
biri
beni bilgilendire bilir mi

=20

Anlamadigim konu $P1 ve $P1_NET ipleri. Mesela $P1 Provider 1 in if1 e
bakan
bacaginin ip adresi mi?.(192.168.0.2 gibi) eger ogle ise $P1_NET de
255.255.255.0 mi oluyor.

=20

Yardimci olursaniz cok sevinirim.

=20

Herkese iyi calismalar

=20

4.2. Routing for multiple uplinks/providers

A common configuration is the following, in which there are two
providers
that connect a local network (or even a single machine) to the big
Internet.

=20
________
                                          +------------+ /
                                          | | |
                            +-------------+ Provider 1 +-------
        __ | | | /
    ___/ \_ +------+-------+ +------------+ |
  _/ \__ | if1 | /
 / \ | | |
| Local network -----+ Linux router | |
Internet
 \_ __/ | | |
   \__ __/ | if2 | \
      \___/ +------+-------+ +------------+ |
                            | | | \
                            +-------------+ Provider 2 +-------
                                          | | |
                                          +------------+
\________

There are usually two questions given this setup.

4.2.1. Split access

The first is how to route answers to packets coming in over a particular
provider, say Provider 1, back out again over that same provider.=20

Let us first set some symbolical names. Let $IF1 be the name of the
first
interface (if1 in the picture above) and $IF2 the name of the second
interface. Then let $IP1 be the IP address associated with $IF1 and $IP2
the
IP address associated with $IF2. Next, let $P1 be the IP address of the
gateway at Provider 1, and $P2 the IP address of the gateway at provider
2.
Finally, let $P1_NET be the IP network $P1 is in, and $P2_NET the IP
network
$P2 is in.=20

One creates two additional routing tables, say T1 and T2. These are
added in
/etc/iproute2/rt_tables. Then you set up routing in these tables as
follows:

          ip route add $P1_NET dev $IF1 src $IP1 table T1
          ip route add default via $P1 table T1
          ip route add $P2_NET dev $IF2 src $IP2 table T2
          ip route add default via $P2 table T2

=20

=20

=20

=20

=20

=20

=20

=20

=20

=20

=20

=20

Enis B=DCY=DCKG=DCNER

=20

IT Chief

Bant Boru San.Tic. A.S.

Tel: 90-216-311 20 50 / 311 20 61
Fax: 90-216-311 83 86
enis <mailto:enis@bantboru.com> @bantboru.com
 <http://www.bantboru.com/> www.bantboru.com

=20

=20


New Message Reply About this list Date view Thread view Subject view Author view Attachment view

---------

Bu arsiv hypermail 2.1.2 tarafindan uretilmistir.