Incredibly Basic Routing Question

Hi, I am a complete newbie and am having trouble routing between two interfaces (ether1 and wlan1)

Here is how I have it configured:

IP - Address
192.168.1.1/24 ether1
10.1.10.1/24 wlan1

I have DHCP configured and working on the wlan1 interface, it gives out addresses from a pool to wlan1 clients.

I added a gateway to the routing table like this:
ip route add gateway 192.168.1.254 (this is the IP of my internet router on my LAN)

Under IP/Firewall/Nat, I set up a rule like this:
chain: srcnat
src.address: 10.1.10.0/24
action: masquerade

Wireless Settings:
wlan1 is set to ap bridge, 2.4ghz b/g, ssid is called test



When I connect to the wlan1 over wifi, I cannot ping to anything on my lan, even though the default routes are set up and I specified a gateway in the routing table. I can set up a bridge interface and bridge ether1 and wlan1 interfaces and pass traffic through that way, but I do not want to bridge, I want to route! Can someone please tell me what I’m missing here?

Steven

There’s no need to do any of that. If the router has IP addresses in two networks then it has routes to them on merit of being directly connected. It will automatically route between them. No need for adding routes, no need for NAT, it just works out of the box.

If it doesn’t work for you there’s something misconfigured. Check the IP firewall filter to make sure the router isn’t dropping packets, make sure the routes are showning as ADC (active, dynamic, connected), and that they are reachable. A common mistake is also to screw up the netmask on the IP address and enter a host route (/32) instead of what you actually want. If you need help beyond that post the information requested in my signature.

Thanks for your help, fewi. I’m not sure what was causing my problem, but I reset routeros to default configuration and set things up again and was able to route between interfaces no problem. Thanks for reassuring me that interfaces should be routable out of the box!