Newsgroup: it.comp.os.linux.sys
Titolo: routing

Con queste tre macchine cosi' configurate
Windows 2000 (
192.168.10.50/255.255.0.0
) <--|
|
|
        (eth0 
192.168.20.20/255.255.0.0
)<-------- |
Linux A(eth1
adsl) ------------------------------------------------->internet
        (eth2 
10.10.20.20/255.255.0.0
)<----------|
                                                                          |
                                                                          |
Linux B(eth0 
10.10.30.20/255.255.0.0
)<----------|
Vorrei riuscire a vedere Linux B da Windows 2000 (ora da windows 2000 il
ping 10.10.30.20 non va :( ). Per il momento Windows 2000 riesce ad andare
su interne usando ADSL di Linux A.
Allego la configurazione di Linux A
eth0      Link encap:Ethernet  HWaddr XXXX
          inet addr:192.168.20.20  Bcast:192.168.255.255  Mask:255.255.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3702 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5617 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:255298 (249.3 Kb)  TX bytes:1599763 (1.5 Mb)
          Interrupt:5 Base address:0x8000
eth1      Link encap:Ethernet  HWaddr XXXX
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1521 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1116 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:493152 (481.5 Kb)  TX bytes:79607 (77.7 Kb)
          Interrupt:9 Base address:0xa000
eth2      Link encap:Ethernet  HWaddr XXXX
          inet addr:10.10.20.20  Bcast:10.10.255.255  Mask:255.255.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:947 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1400 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:120851 (118.0 Kb)  TX bytes:135192 (132.0 Kb)
          Interrupt:9 Base address:0xc000
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:130 errors:0 dropped:0 overruns:0 frame:0
          TX packets:130 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:9926 (9.6 Kb)  TX bytes:9926 (9.6 Kb)
ppp0      Link encap:Point-to-Point Protocol
          inet addr:XXXX P-t-P:192.168.100.1  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
          RX packets:1232 errors:0 dropped:0 overruns:0 frame:0
          TX packets:828 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:447749 (437.2 Kb)  TX bytes:44026 (42.9 Kb)
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
10.10.20.20     0.0.0.0         255.255.255.255 UH    0      0        0 eth2
192.168.100.1   0.0.0.0         255.255.255.255 UH    0      0        0 ppp0
10.10.30.20     0.0.0.0         255.255.255.255 UH    0      0        0 eth2
10.10.0.0       0.0.0.0         255.255.0.0     U     0      0        0 eth2
192.168.0.0     0.0.0.0         255.255.0.0     U     0      0        0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
0.0.0.0         192.168.100.1   0.0.0.0         UG    0      0        0 ppp0
Per sfruttare Linux A come route per internet uo le iptables:
iptables -F; iptables -t nat -F; iptables -t mangle -F
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
Naturalmente Linux A riesce a vedere Linux B.
Grazie, Marco
PS Questa volta, seguendo i vostri consigli, non ho "crosspostato".
-- 
--------------------------------------------------------------------
e-mail su 
http://thinkmarcorighi.supereva.it
--------------------------------------------------------------------

 PS Questa volta, seguendo i vostri consigli, non ho "crosspostato".
Ed hai fatto bene.
-- 
                         Maurizio - Tannoiser - Lemmo
                 Founder Member of ERLUG 
http://erlug.linux.it
-------------------------------------------------------------------------------
Illiterate?  Write for help!

 ha scritto nel messaggio
news:HUG1b.30097$zN5.9...@news1.tin.it...
