Re: lug-bg: Zdraveite na vsichki ROUTER
- Subject: Re: lug-bg: Zdraveite na vsichki ROUTER
- From: ldd@xxxxxxx (Ludmil Dimitrov)
- Date: Tue, 22 Jun 1999 12:08:10 +0300
On Mon, 21 Jun 1999, Boyan Krosnov wrote:
>> Situaciata e slednata:
>> Servera mie na Slaceware 2.0.34, imam edna oblast ot adresi ot 194.12.226.80 do
>> 194.12.226.95 kato v neia e vkliuchen i NAME SERVERA, sega mi davat oshte edna
>> oblast ot 194.12.233.160 do 194.12.233.191 iskam vtorata oblast da si ia
>> polsvam kato ia routiram sys Servera mi.
>> Po princip dobaviam vtorat oblast s: route add -net 194.12.233.160 netmast
>> 255.255.255.224, no tova ne dostatychno.
>
>pak nishto ne obqsni ama karaj.
>da dopusnem che stawa duma za slednoto neshto
>Slackware Linux 3.5 s kernel 2.0.34
>s modem za wryzka kym dostawchika i LAN karta.
>LAN s mashini na koito iskame da razdawame IPta ot tezi dwe oblasti.
>na nqkoi mashini weche sme dali ip-ta ot ednata oblast i postanowkata
>raboti, no za wtorata oblast ne stawa.
>
>reshenie:
>1.dawash 2-ro ip na lan kartata na server-a ti. za da naprawish towa
>trqbwa da imash IP aliasing w kernel-a. Na kernel-a kojto idwa sys slack
>3.5 maj e na modul, ako e taka shte trqbwa da go loadnesh s modprobe
>ip_alias (za imeto na modula ne sym siguren). Sled kato imash IP
>Aliasing poddryjka w kernel-a dawash 2-ro ip na kartata sys "ifconfig
>eth0:1 NQKAKWO_IP_OT_WTORATA_OBLAST netmask 255.255.255.224"
>
>2. setwash si route za da mogat paketite koito sa za tazi oblast linux-a
>ti da gi "puska" w LANa. towa bi trqbwalo da stane prosto s "route add
>-net 194.12.233.160 netmask 255.255.255.224" kernel-a trqbwa sam da se
>seti che stawa duma za interface eth0:1, ako ne se seti, podseti go :)
>
>3. nqkoi deamoni na server-a ti moje bi sa napraweni da se bind-wat na
>specifichen interface. naprimer sambata e taka. naprawi gi da se
>bind-wat i na tozi interface. (towa w 90% ot sluchaite IMHO ne bi
>trqbwalo da se nalaga)
>
>4. mashinite w LANa ot wtorata oblast im daj default gateway IP-to na
>server-a w 2-rata oblast i nameserver ip-to na nameserver-a ti ot 1-wata
>oblast.
>
>5. "ping www.uu.net" :)))) trqbwa da wryshta, ako ne wij do kyde stiga i
>t.n.
>
>6. ako wsichko raboti normalno dobawqsh dwete ifconfig-a i route add-a
>wyw primerno /etc/rc.d/rc.inet1 , naj otdolu.
>
>Ako situaciqta ti ne e kato opisanata otgore, kaji.
>
>Boyan
>==================================================================
>A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers)
>For more send to lug-bg-request@xxxxxxxxxxxx a single word 'info'
>==================================================================
Zdraveite, napredvam.
Situaciata e tochno takava na edna lanka iskam da sloga i dvata IP adresa na
dvete zoni. Pravia go tochno taka kakto kazvate: slagam vtori interfeis eth0:1
i si go rotiram posle vsichko izglevda OK, no kato sedna zad rabotna stancia ot
vtorata zona i pinga do ciscoto na provaidera prosto lipsva inache v mregata
pingvam vsichki adresi.
Znachi iskam da sinteziram vsichko prez moiat pogled, za da mi kagete
kyde gresha:
1. Imam interfeis eth0 na adres 194.12.226.81, kydeto mi i NServera i Routera i
Slackwareto 2.0.34.
2. Prekompiliram iadroto s IP aliansing
3. Dobaviam eth0:1
ifconfig eth0:1 194.12.233.161 broadcast 194.12.233.191 netmask 255.255.255.224
4. Rotiram
route add -net 194.12.233.160 netmask 255.255.255.224 eth0:1
5. Na rabotna stancia ot 2-ra zona postaviam pyrvia swoboden adres
194.12.233.162 s GATEWAY 194.12.233.161
6. Ping do routera na ISP lipsva ... mamka mu...
KYDE BYRKAM???????????
Ludmil
==================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers)
For more send to lug-bg-request@xxxxxxxxxxxx a single word 'info'
==================================================================
|