Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Jeden serwer, dwa lacza
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

rackathon
 
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish)
View previous topic :: View next topic  
Author Message
mcbarlo
Tux's lil' helper
Tux's lil' helper


Joined: 18 Jul 2005
Posts: 101

PostPosted: Wed Nov 15, 2006 9:53 am    Post subject: [SOLVED] Jeden serwer, dwa lacza Reply with quote

Moja sytuacja wyglada nastepujaco:

- mam dwa lacza i jeden serwer
- dajmy na to, ze jedno lacze wchodzi do eth0, a drugie do eth1
- wyjscie na lan idzie przez eth2

Jaki mam cel? Chce czesc uslug puscic przez interface eth0, a czesc przez eth1 przy czym lacze z eth0 jest domyslne. Uslugi zaznaczam sobie markami.

Pytanie brzmi. Jak przekierowac pakiet oznaczony jakims markiem na lacze eth1. Dodam, ze eth0 i eth1 maja stworzone osobne bramy.


Last edited by mcbarlo on Wed Nov 15, 2006 6:01 pm; edited 1 time in total
Back to top
View user's profile Send private message
msch
Guru
Guru


Joined: 14 Mar 2006
Posts: 385
Location: ms@wind ~ $

PostPosted: Wed Nov 15, 2006 10:44 am    Post subject: Reply with quote

oo podlaczam sie do pytania ;)
Back to top
View user's profile Send private message
Yatmai
Veteran
Veteran


Joined: 12 Nov 2005
Posts: 1500
Location: Kraków

PostPosted: Wed Nov 15, 2006 11:25 am    Post subject: Reply with quote

eth0 przydzielasz 192.168.0.1, eth1 dajesz 192.168.1.1, a potem podpinasz każdą usługę tylko pod jeden numer ip :]
_________________
Desktop: [Ath64 X2 2GB DDR2 GF76GT] [amd64] [2.6.29-gentoo] [nVidia] [KDE 3.5.10]
Lapek: [HP nc6000] [i686] [2.6.29-ARCH] [ati-open] [KDE 3.5.10]
Back to top
View user's profile Send private message
Raku
Bodhisattva
Bodhisattva


Joined: 27 Feb 2004
Posts: 2333
Location: Poland

PostPosted: Wed Nov 15, 2006 1:00 pm    Post subject: Reply with quote

Code:
ip route help
+ advanced routing how-to do pomocy
_________________
raku

Powered by Archlinux ;-)
Back to top
View user's profile Send private message
bartmarian
Guru
Guru


Joined: 28 Nov 2005
Posts: 523

PostPosted: Wed Nov 15, 2006 1:18 pm    Post subject: Reply with quote

moze pomoze taki przykladzik
Code:
ip rule add fwmark 369 table T2
Back to top
View user's profile Send private message
mcbarlo
Tux's lil' helper
Tux's lil' helper


Joined: 18 Jul 2005
Posts: 101

PostPosted: Wed Nov 15, 2006 6:01 pm    Post subject: Reply with quote

Wielkie dzieki za pomoc. Juz znalazlem to o co mi chodzilo. Dla innych, ktorzy maja ten sam problem polecam przeczytanie tego:

http://lukasz.bromirski.net/docs/translations/lartc-pl.html

W szczegolnosci punkt nr. 4
Back to top
View user's profile Send private message
Mroofka
Guru
Guru


Joined: 25 Jan 2005
Posts: 354
Location: Poland

PostPosted: Wed Nov 15, 2006 8:21 pm    Post subject: Reply with quote

zawsze mnie zastanawiało czemu te how-to (a raczej policy routing) to jest akurat advanced a nie np pre-intermidiate albo intermidiate routing.... :twisted:

Pozdrawiam
Mroofka
_________________
"Make install not love"
registred linux User # 379143

"Ready for Anything; Prepared for everything; Surprised by Nothing !"
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum