Hello,
I have two ethernet interfaces with different Ip from the same subnetwork
ether1 - 10.1.1.2/24
ether2 - 10.1.1.3/24
they have the same gateway 10.1.1.1/24
How can i force different packets to pass via specific interface?
ex: all HTTP (80) packets to pass via ether1 interface to 10.1.1.1 gw,
and all other packets to pass via ether2 interface to 10.1.1.1 gw
Diagram:
________/ ether1 -----
user - MK____________HUB----GW 10.1.1.1
________\ ether2 -----/
I think better your scnario change difference subnet,..!!!
on routerOS is not valid, when you did put same subnet on two or many interfaces,
When your suggestion plain like this[your diagram], you must 'BRIDGE' methode and put IPs on 'BRIDGE'
Yeah man, you are right..
This is like a simulation of two PC with different IP in the same subnet.
So, Mikrotik accept to add two different IP from the same subnet to different interfaces.
so, the aim is just to force MK to route the traffic via specific interface regarding some rules (like port 80 via one interface, and else via second interface)
Please, don’t ask me why i have to put the same subnet on two interfaces… Just i need it.
There are an DHCP server on the ISP. It gives IP on the DHCP client request.
In normal mode, a few PC can get ip via this DHCP server. All ip are from the same subnet like 10.1.1.0/24
I have to emulate several PC using one MK (Router OS).
Mikrotik (Router OS) have several interfaces, connected to the same DHCP Server. Each interface gets one IP from DHCP server. But all IP are from the same subnetwork. It was no problems at this step.
The problem, is how to rute traffic via specific interface?
Like to mark (via mangle) packets, and to force them to go via specific interface.