[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Quiz



Il Wed, 6 Oct 2004 20:30:37 +0200
gianni <savagnoluNO@SPAMlibero.it> scrisse:

> On 061004, 16:32, Bertorello Marco wrote:
> > Le soluzioni sono tante... se l'obbiettivo è solo pingare :-)
> 
> mi inserisco con un quesito attinente :)
> 
> ho una rete 192.168.0.0/24 e una 192.168.1.0/24
> La prima ha come gateway 192.168.0.250, la seconda 192.168.1.250
> Il gateway ha 2 ethernet :
> 
> gw:~# ifconfig
> eth0      Link encap:Ethernet  HWaddr 00:60:97:69:5D:96
>           inet addr:192.168.0.250  Bcast:192.168.0.255  Mask:255.255.255.0
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:2871 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:4819 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:407 txqueuelen:100
>           RX bytes:200142 (195.4 KiB)  TX bytes:6406565 (6.1 MiB)
>           Interrupt:5 Base address:0x220
> 
> eth1      Link encap:Ethernet  HWaddr 00:C0:DF:C5:2E:09
>           inet addr:192.168.1.250  Bcast:192.168.1.255  Mask:255.255.255.0
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:5983 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:3900 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:385 txqueuelen:100
>           RX bytes:6488969 (6.1 MiB)  TX bytes:462498 (451.6 KiB)
>           Interrupt:10 Base address:0x280
> 
> cio' che non capisco e' come mai le due reti si pinghino e in genere comunichino i
> (sulla 192.168.1.0/24 ci sono dei servizi, posta ecc per la 192.168.0.0/24)
> Io quando ho fatto la cosa pensavo "Ok adesso scrivo delle regole con Iptables in
> maniera da far si che 192.168.0.0/24 scarichi la posta/news/acceda_al_proxy su 192.168.1.0/24",
> invece ho provato a fare un ping da una macchina su una rete a una su un'altra rete e funziona.
> Ovviamente il gateway deve essere acceso :)

prova a vedere se facendo 

cat /proc/sys/net/ipv4/conf/all/forwarding 

ti restituisce 1 

-- 
Marco Bertorello
System Administrator
Linux Registered User #319921
http://bertorello.ns0.it

Attachment: pgpyIrDc1IjiT.pgp
Description: PGP signature


Reply to: