2 ethernets...

Liakakis Kostas kostas at rincewind.techpath.gr
Tue Mar 18 16:25:34 EET 1997


On Tue, 18 Mar 1997, Fotis Andritsopoulos wrote:

> H8ela na kanw mia erwthsh peri diktywn....An exw dyo ethernets sto linux kai
> 8elw na 'enwsw'' kata kapoio tropo dyo diktya ta opoia DEN einai omws
> syndedemena sto internet prepei aparaithta na trexei to linux to gated ???
> To exw dokimasei ayto me dyo interfaces alla syndedemena sto internet kai to
> routed htan arketo...(mia kai to ena akro epefte panw se router).Gia na
> ginei omws ayth h syndesh 8elei gated 'h yparxei kai kapoios allos tropos ??

Den 0a xreiasteis kanena routed, h gated afou den exeis anagkh na kaneis
broadcast ta routes sou pou0ena h na lambaneis broadcasts apo kapoion.
Dose sto ena subnet dieu0ynseis px 192.168.1.x kai sto allo 192.168.2.x
(192.168.x.x einai reserved dieu0ynseis, den prokeite na ypar3oun pote sto
internet). Sto mhxanhma me tis dyo kartes, dose se ka0e mia ena doumero,
as poume 192.168.1.1 kai 192.168.2.1. Sto idio epishs:
route add -net 192.0.2.0 gw 192.0.2.1
route add -net 192.0.1.0 gw 192.0.1.1
Isos 0a xreiastei na baleis kai to IP forwarding ston kernel...

Sta ypoloipa mhxanhmata, dhlose san default gateway to 192.168.1.1 h
192.168.2.1 analogos se poia meria tou diktyou sou briskontai.

Grapse nea :-)

- -Kostas
==================================================================
For help on using this list (linux-greek-users), send a message to
"majordomo at argeas.argos.hol.gr" with one line of text: "help".
For any problem send e-mail to owner-linux-greek-users
==================================================================



More information about the Linux-greek-users mailing list