Answer the question
In order to leave comments, you need to log in
Mikrotik: 2 ip external IPs per interface with mac binding \?
The provider distributes 2 external IPs (on the same network) ip1, ip2 over one twisted pair pair with binding to 2 mac addresses (mac1, mac2).
Previously, there was a switch at the entrance that switched 2 devices: a web server (mac1) and a router (mac2).
In order to get rid of the zoo, a Mikrotik 2011 router was purchased.
Problem: 2 external addresses are not configured.
What was tried:
- eth1 was assigned to mac1 or mac2, all computers were stuck in the grid, then they went online as ip1 or ip2.
- eth1 was assigned to mac3 (which is not known to the provider, the suspicion is that this is where the problem lies). eth2-eth5 were merged into brigde1 (assigned to mac1), eth6-eth10 into bridge2 (assigned to mac2), src-nat, dst-nat for poppies were registered in the switch settings. The routing settings do not help, as I understand it, because packets do not reach this stage.
How to be in such a scenario? Can the provider in both contracts prescribe one poppy address?
Answer the question
In order to leave comments, you need to log in
You must understand that Mikrotik has such a concept of master-port. That is, ether1 - master-port = none, then this is just a port, but when ether1 is master-port = none, and in eth2 - master-port = ether1, then this is already a switched connection (switch).
In the same way, you can switch through the bridge, but then it will not go through the switching chip, but through the processor. In some cases, switching through the maser-port reduces the load on the processor.
There are two switching chips in your equipment. First ether1-5 and second ether6-10
So there are two options. Option 1:
ether1 - WAN
ether2 - master-port - none
ether3-5 - master-port - ether2
ether6 - master-port - none
ether7-10 - master-port - ether6
and now to combine all ports we add master ports to the bridge - ether2 + ether6. As a result, we get WAN + Bridge (switch)
And option 2 (for all master-ports - none)
ether1 - WAN
bridge - ether2 + ether3 + ether4 .... ether10
Manuals: Switching chip capabilities - MikroTik Wiki
Now that you understand the theory, then you can understand how to "simulate" a switch.
bridge1 = ether1(WAN provider cable)+ether2(server)
bridge2 = ether3-ether10
/ip dhcp-client
add add-default-route=yes default-route-distance=0 interface= ether1
add add-default-route=yes default -route-distance=0 interface= ether2
To google for more information, search on Google - Mikroitik STB port
I can’t imagine this in the configuration yet, but I can kick in which direction to dig. In theory, you need to add the port that goes to the provider to the access VLAN, add a second port to the same VLAN, both with the necessary MAC addresses, and then register ip / dhcp-client on these two ports, as required by the provider.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question