root@debian:/home/michael# ip route show
default via 210.6.148.1 dev eth2
192.168.0.0/24 dev eth1 proto kernel scope link src 192.168.0.1
192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.1
210.6.148.0/25 dev eth2 proto kernel scope link src 210.6.148.56
root@debian:/home/michael# sysctl net.ipv4.ip_forward
net.ipv4.ip_forward = 1
root@debian:/home/michael# iptables --list-rules
-P INPUT ACCEPT
-P FORWARD ACCEPT
-P OUTPUT ACCEPT
root@debian:/home/michael# iptables -t nat --list-rules
-P PREROUTING ACCEPT
-P INPUT ACCEPT
-P OUTPUT ACCEPT
-P POSTROUTING ACCEPT
-A POSTROUTING -o eth2 -j MASQUERADE
root@debian:/home/michael# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 210006148001.ct 0.0.0.0 UG 0 0 0 eth2
192.168.0.0 * 255.255.255.0 U 0 0 0 eth1
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
210.6.148.0 * 255.255.255.128 U 0 0 0 eth2
I can access all the 3 networks from the router. Moreover, I can access the
Internet from all the LANs. However, I can't access the 192.168.1.0/24 network
from the 192.168.0.0/24 network, and vice versa. That means the packets are
not forwarded properly between eth0 and eth1 in the router.
Now I want to make the 2 LANs accessible to each other, what should I do?
--
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 201110271808.07096.miklcct@gmail.com">http://lists.debian.org/201110271808.07096.miklcct@gmail.com