2 public ip adresses 2 localnetworks (guests and my company)

Hello There

I have a 8 subnet (255.255.255.248)

ethernet1 80.120.23.145 /29
ethernet2 80.120.23.146 /29
Gateway for both eth1 and eth2 80.120.23.144

ethernet4 192.168.0.1 /24 company
ethernet5 192.168.1.1 /24 guests

I want that the guests surf on ethernet 2
and that my company on ethernet 1

but i didn’t get it to work.

maybe somebody can explain me how to get this work?
and i am really a beginner on mikrotik.

Thanks a lot for your time and help

May I be the first to welcome you to the MikroTik forum!
First, you need to get both of your public ips on one interface. Like this:

/ip address
add address=xx.xx.xx.02/24 interface=ether1
add address=xx.xx.xx.03/24 interface=ether1

Insure your default route is set ok:
/ip route
add gateway=xx.xx.xx.01

The a srcnat (masquerade if one ip on interface)
/ip firewall nat
add chain=srcnat action=src-nat to-addresses=xx.xx.xx.02

Change these to the correct ip addresses/subnets as necessary.

hi thanks for answer but there is one problem

now internet is working for guests and company thats fine
but i want

that guests surf with public ip 80.120.43.133
and company surf with public ip 80.120.43.134

I guessed that, but I like one change at a time. Now that your net is working, now we will “divide it up”.

/ip firewall nat
add chain=srcnat action=src-nat src-address=192.168.1.0/24 to-addresses=80.120.43.133 place-before=0
add chain=srcnat action=src-nat src-address=192.168.0.0/24 to-addresses=80.120.43.134 place-before=0

This will “masquerade”:
192.168.1.0/24 to 80.120.43.133
192.168.0.0/24 to 80.120.43.134

Anything else should be covered by a default rule if necessary. The default rule should be the last rule in this list. Order is important here. That is why the “place-before=0” parameters.