Easy Gateway question:

Hello,

here is the network map I am tring to build:

RB433AH
addresses:

  • 192.168.2.254
  • 192.168.8.254
  • 192.168.9.254

2 networks:

  • 192.168.8.0/24
  • 192.168.9.0/24

2 gateways:

  • 192.168.2.137
  • 192.168.2.138

I want network 192.168.8.0/24 to access the internet through gateway 192.168.2.137
and network 192.168.9.0/24 to access the internet through gateway 192.168.2.138

any ideas?

thanks

It is a two step process.

/ip firewall mangle
add chain=prerouting action=mark-routing new-routing-mark=gateway2 src-address=192.168.9.0/24

/ip route
add gateway=192.168.2.137
add gateway=192.168.2.138 routing-mark=gateway2

The 192.168.9.0/24 net will use 192.168.2.138. All else 192.168.2.137

this is easier than I thought it would be! thanks surfertim..

well, now it works however why cant the users in the network cannot see each other? ex. 192.168.9.1 cannot see 192.168.9.2 , is there something to do with passthrough?

thanks

They should be able to see each other. Check “/ip address” for correct ip/netmasks. If clients get ips through dhcp, check “/ip dhcp-server network” to insure all is ok there. If you have questions, post both.

I will try to figure it out then I will report here, thank you