I have a Router
has 4 ethernet ports, eth0
to eth3
, with OpenWRT inside and such configurations:
- Interface
lan1
involves onlyeth0
, IP address10.10.0.1/16
- Interface
lan2
involves onlyeth1
, IP address10.11.0.1/16
The route table auto generated by OpenWRT is:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.10.0.0 * 255.255.0.0 U 0 0 0 eth0
10.11.0.0 * 255.255.0.0 U 0 0 0 eth1
So as you could see these two interfaces are different subnets.
When I ssh into the router I could ping both devices on 10.10.0.0/16 and 10.11.0.0/16. But when I was going to ping a device from 10.11.0.0/16 to 10.10.0.0/16 I only got bytes from 10.11.0.1: Destination Port Unreachable
.
What I want to do is: be able to ping 10.10.0.0 from 10.11.0.0 and vice versa.
How could I achieve this?
eth0
is10.10.0.1
and foreth1
is10.11.0.1
. The iptables is running but I've changed all the rules toACCEPT