forwarding in 2 subnetzen

i7lema@rz.uni-jena.de i7lema at rz.uni-jena.de
Fre Feb 18 00:48:04 CET 2000


Hallo Jan-Benedict Glaw,

> Schick mal, was diese Befehle so ausgeben...
> ipchains-save
------------
:input ACCEPT
:forward ACCEPT
:output ACCEPT
Saving `forward'.
-A forward -s 192.168.10.0/255.255.255.0 -d 192.168.8.0/255.255.255.0 -j ACCEPT
-A forward -s 192.168.8.0/255.255.255.0 -d 192.168.10.0/255.255.255.0 -j ACCEPT
s

> ifconfig
eth1      Link encap:Ethernet  HWaddr 52:54:00:E3:9F:B0
          inet addr:192.168.8.89  Bcast:192.168.8.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:61346 errors:0 dropped:0 overruns:0 frame:0
          TX packets:48044 errors:0 dropped:0 overruns:0 carrier:0
          collisions:9 txqueuelen:100
          Interrupt:9 Base address:0xd000

eth2      Link encap:Ethernet  HWaddr 00:50:BA:AF:C0:3C
          inet addr:192.168.10.89  Bcast:192.168.10.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:324918 errors:0 dropped:0 overruns:0 frame:0
          TX packets:351506 errors:6 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          Interrupt:11 Base address:0xd400

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:3924  Metric:1
          RX packets:19848 errors:0 dropped:0 overruns:0 frame:0
          TX packets:19848 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0

> route -n

192.168.10.0    0.0.0.0         255.255.255.0   U     0      0        0 eth2
192.168.8.0     0.0.0.0         255.255.255.0   U     0      0        0 eth1
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo

> cat /proc/sys/net/ipv4/ip_forwarding
cat /proc/sys/net/ipv4/ip_forward
enthält 1 (habe ich auch reingeschrieben...

eth0 habe ich abgeschalten.

-- 

bye, Leo.
---
Some OS TELL what they can do - Linux DOES it...
---
please visit my homepage at http://www.uni-jena.de/~i7lema