Community discussions

MikroTik App
 
Duhhhh
just joined
Topic Author
Posts: 7
Joined: Thu Jan 27, 2022 10:23 am

Having a problem with RB5009UG+S+IN or with myself.

Thu Jan 27, 2022 10:43 am

Long story short.
need to connect 5 devices that have the same IP 192.168.255.129 address to the router on different ethernet ports. so i can access them through ether1 of the router. My pc must have static IP 192.168.255.130 subnet 255.255.255.0 in order to access the web interface on those devices. i want to access all 5 simultaneously in different Chrome windows.

And for some reason,
/ip route vrf seems to be missing from comands on RB5009UG+S+IN

i want to break everything in the room now and cry.


my idea was something like this

/ip route vrf
add interfaces=ether2 routing-mark=DEV1
add interfaces=ether3 routing-mark=DEV2
add interfaces=ether4 routing-mark=DEV3
add interfaces=ether5 routing-mark=DEV4
add interfaces=ether6 routing-mark=DEV5

/ip address
add address=192.168.255.1 interface=ether1 network=192.168.255.0
add address=192.168.255.3 interface=ether2 network=192.168.255.4
add address=192.168.255.3 interface=ether3 network=192.168.255.4
add address=192.168.255.3 interface=ether4 network=192.168.255.4
add address=192.168.255.3 interface=ether5 network=192.168.255.4
add address=192.168.255.3 interface=ether6 network=192.168.255.4


/ip address
add address=192.168.255.11 interface=ether1 network=192.168.255.0
add address=192.168.255.12 interface=ether1 network=192.168.255.0
add address=192.168.255.13 interface=ether1 network=192.168.255.0
add address=192.168.255.14 interface=ether1 network=192.168.255.0
add address=192.168.255.15 interface=ether1 network=192.168.255.0

/ip firewall mangle
add action=mark-routing chain=prerouting dst-address=192.168.255.11 new-routing-mark=DEV1
add action=mark-routing chain=prerouting dst-address=192.168.255.12 new-routing-mark=DEV2
add action=mark-routing chain=prerouting dst-address=192.168.255.13 new-routing-mark=DEV3
add action=mark-routing chain=prerouting dst-address=192.168.255.14 new-routing-mark=DEV4
add action=mark-routing chain=prerouting dst-address=192.168.255.15 new-routing-mark=DEV5

/ip firewall mangle
add action=mark-routing chain=prerouting dst-address=192.168.255.130 new-routing-mark=main

/ip firewall nat
add action=dst-nat chain=dstnat dst-address=192.168.255.11 in-interface=ether1 to-addresses=192.168.255.129
add action=src-nat chain=srcnat out-interface=ether2 to-addresses=192.168.255.3
add action=dst-nat chain=dstnat dst-address=192.168.255.12 in-interface=ether1 to-addresses=192.168.255.129
add action=src-nat chain=srcnat out-interface=ether3 to-addresses=192.168.255.3
add action=dst-nat chain=dstnat dst-address=192.168.255.13 in-interface=ether1 to-addresses=192.168.255.129
add action=src-nat chain=srcnat out-interface=ether4 to-addresses=192.168.255.3
add action=dst-nat chain=dstnat dst-address=192.168.255.14 in-interface=ether1 to-addresses=192.168.255.129
add action=src-nat chain=srcnat out-interface=ether5 to-addresses=192.168.255.3
add action=dst-nat chain=dstnat dst-address=192.168.255.15 in-interface=ether1 to-addresses=192.168.255.129
add action=src-nat chain=srcnat out-interface=ether6 to-addresses=192.168.255.3
 
Sob
Forum Guru
Forum Guru
Posts: 9120
Joined: Mon Apr 20, 2009 9:11 pm

Re: Having a problem with RB5009UG+S+IN or with myself.

Fri Jan 28, 2022 6:35 pm

VRF in v7 is in /ip/vrf. I'm not very good with it, so I would have to test it, but I'm too lazy for it right now. Worst case, it can be done even without VRF with manually added routing tables.
 
Duhhhh
just joined
Topic Author
Posts: 7
Joined: Thu Jan 27, 2022 10:23 am

Re: Having a problem with RB5009UG+S+IN or with myself.

Tue Feb 01, 2022 2:15 am

I've tried to do it on routeros7, but failed, and I can't downgrade to 6, because my router doesn't go lower than 7.
I really need to find working Solution for my problem. @sob

Who is online

Users browsing this forum: Amazon [Bot] and 30 guests