[Solved] How to set up two subnets on one router?

I’m basically a networking illiterate and would appreciate some help on how to set up 2 subnets on 1 router at home, but I’m willing to get additional equipment if necessary.

All I need is a few more IPs from my ISP, which only sells /29.

My current setup:
3 PCs connected to a router connected to a modem; one /29 from my ISP
The key is that once I have 2 subnets, all of my PCs should be able to use any IP from either subnet. If that is not possible, please stop reading and tell me to abort too.

My current router config for 1 /29:
ether1 connected to modem; ether2 set as master port; 3 PCs connected to ether2,3,4.

In firewall:
add action=masquerade chain=srcnat out-interface=pppoe-out1 src-address=!111.222.333.224/29

That’s it.


Here’s the script for those interested:

/interface ethernet
set [ find default-name=ether3 ] master-port=ether2
set [ find default-name=ether4 ] master-port=ether2
set [ find default-name=ether5 ] master-port=ether2
/interface pppoe-client
add add-default-route=yes disabled=no interface=ether1 max-mru=1480 max-mtu=1480 mrru=1600 name=pppoe-out1 password=password user=user@isp.com
/ip hotspot profile
set [ find default=yes ] html-directory=flash/hotspot
/ip address
add address=111.222.333.225/29 interface=ether2 network=111.222.333.224
/ip firewall filter
add chain=forward
add chain=output
add action=drop chain=input
/ip firewall nat
add action=masquerade chain=srcnat out-interface=pppoe-out1 src-address=!111.222.333.224/29


Any help would be much appreciated. Thank you!

Bump. Could someone let me know whether it’s even possible to have a setup like the one I just asked for?

Using a simpler example. Say I have just 1 PC, 1 router, and 2 subnets on the router. Is it possible for that 1 PC to use any IP on both subnets?

Sure, your PC can have multiple addresses from different subnets. The other matter is how it will or will not be able to use them. If it would run some server(s), using all addresses for incoming connections would work fine. If you have programs that can specifically select an address to use for outgoing connections, they will work too. But regular programs (web browser, …) will just use one. So it depends on what you’re after.

Seems to be a popular subject! :smiley:
MikroTik-Forums_InterVLANRouting_1.png
^^ This shows inter-VLAN routing with bridges (not optimized for switch chip features available on some platforms)

http://forum.mikrotik.com/t/i-want-access-any-pc-from-range-to-any-pc-in-range-other/107642/20

^^ This post shows simple static routing where the IP addresses are placed on the router interfaces and an extra subnet is used with static routes to pass traffic between the 2 MikroTiks.

I echo what Sob says here. If you need 2 IPs on a single PC that is fine. You just assign a second IP address to the layer 3 device it is connected to (router). Your PC will need routes targeted at the IP you add to the layer 3 device in order to use them, like a default route (a second one).

This is very easy to do. I have as many as five LANs on one of my RB750s at home. However I’m not in a position to look at my configuration to compare to yours at this time.

Thanks so much everybody! I’ll go order the subnet now, which could take 48 hours to arrive. Will be back in 2 days.

Just got the /29 and set it up like you guys said. Thank you all for the help! Much appreciated.