you are right, my networks have to be set as 24bit's.
i did it again
main coyote firewall/router - 192.168.2.1
shakaree# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.4.0 192.168.2.99 255.255.255.0 UG 0 0 0 eth0
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
10.112.160.0 0.0.0.0 255.255.224.0 U 0 0 0 eth1
0.0.0.0 10.112.160.1 0.0.0.0 UG 0 0 0 eth1
asus router - 192.168.2.99 (192.168.4.99)
root@OpenWrt:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.4.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth2
0.0.0.0 192.168.2.1 0.0.0.0 UG 0 0 0 eth2
my pc - 192.168.2.30
IP Address. . . . . . . . . . . . : 192.168.2.30
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.2.1
notebook - 192.168.4.34
IP Address. . . . . . . . . . . . : 192.168.4.34
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.4.99
Connection is by scheme above.
Result:
*.2.01 -> *.4.34 .. ok
*.2.30 -> *.4.34 .. ok
*.4.34 -> *.2.01 .. ok
*.4.34 -> *.2.30 .. KO !!
*.4.34 -> Internet .. KO !!
Pinging 192.168.4.34 -> Internet
tcpdump -i eth2 on 192.168.2.99 (192.168.4.99) shows:
.... IP 192.168.4.34 > 194.228.32.18: icmp 40: echo request seq xxxxxxx
.... IP 192.168.4.34 > 194.228.32.18: icmp 40: echo request seq xxxxxxx
.... IP 192.168.4.34 > 194.228.32.18: icmp 40: echo request seq xxxxxxx
Iptraf on 192.168.2.1
ICMP echo req (60 bytes) from 192.168.4.34 to 194.228.32.18 (src HWaddr 00112fe3252d) on eth0
ICMP echo req (60 bytes) from 192.168.4.34 to 194.228.32.18 (src HWaddr 00112fe3252d) on eth0
ICMP echo req (60 bytes) from 192.168.4.34 to 194.228.32.18 (src HWaddr 00112fe3252d) on eth0
Pinging 192.168.4.34 -> 192.168.2.30
tcpdump -i eth2 on 192.168.2.99 (192.168.4.99) shows:
.... IP 192.168.4.34 > 192.168.2.30 icmp 40: echo request seq xxxxxxx
.... IP 192.168.4.34 > 192.168.2.30 icmp 40: echo request seq xxxxxxx
.... IP 192.168.4.34 > 192.168.2.30 icmp 40: echo request seq xxxxxxx
Iptraf on 192.168.2.1
ICMP dest unrch (port) (56 bytes) from 192.168.2.30 to 192.168.2.1 (src HWaddr 00051c0c23e1) on eth0
ICMP echo rply (60 bytes) from 192.168.2.30 to 192.168.4.34 (src HWaddr 00051c0c23e1) on eth0
ICMP dest unrch (port) (56 bytes) from 192.168.2.30 to 192.168.2.1 (src HWaddr 00051c0c23e1) on eth0
ICMP echo rply (60 bytes) from 192.168.2.30 to 192.168.4.34 (src HWaddr 00051c0c23e1) on eth0
ICMP dest unrch (port) (56 bytes) from 192.168.2.30 to 192.168.2.1 (src HWaddr 00051c0c23e1) on eth0
ICMP echo rply (60 bytes) from 192.168.2.30 to 192.168.4.34 (src HWaddr 00051c0c23e1) on eth0
Settings are correct, right? But reason is a bit worse, that with 16 bit mask.
Why it doesn't communicate?
(Last edited by reset on 7 Dec 2005, 09:21)