[linux-network] split access konusunda anlayamadigim bir konu

---------

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

From: Enis Büyükgüner (enis@bantboru.com)
Date: Thu 06 May 2004 - 17:37:08 EEST


Selam arkadaslar
 

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

 

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.

 

Yardimci olursaniz cok sevinirim.

 

Herkese iyi calismalar

 

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.

                                                                 ________
                                          +------------+ /
                                          | | |
                            +-------------+ 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.

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.

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

 

 

 

 

 

 

 

 

 

 

 

 

Enis BÜYÜKGÜNER

 

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

 

 


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

---------

Bu arsiv hypermail 2.1.2 tarafindan uretilmistir.