Hello,
we have 192.168.1.2/30 on our Ether1 and my upstream provider static x.x.x.x/27 to 192.168.1.2 and i set x.x.x.1/27 on Ether1 so right now all packets go out with 192.168.1.2 however i want they use x.x.x.1 as source ip, how can i do this?
in cisco we can specify secondary ip but in mikrotik there is no such option,
thanks
I think it would be match with the specific mask like routing table because it is the more probability best option , /30 will be prefer than /27.
As far as i know it is not possible to set primary or secondary IP in a interface, in fact have more than an IP address in a interface is not the best practice.
so what is your suggestion for solve this?
because i need my packets headers travel with public ip instead my private ip
I think another way is tell my provider that assign a vlan to me then i set that vlan on Ether1 and set private ip over that VLAN and then assign static routed Ip to ethe1 in this way my router should transit packets with my public ip right?
and another question if we have 2x /30 over an ether1 which one is prefered?
thanks
I’ve put multiple IP addresses on an interface. They will only go where there is a route. If you put 192.168.100.2/24 on eth1 and your ISP gives you 130.130.1.2/23 with gateway 130.130.1.1 and it’s connected to eth1 then the route will determine what address provides the path to the destination.
ros will decide the address which to user for nat ,It’s depend on the gateway you set.
we ask this from mikrotik support and they offer us use pref-src with static route or source nat and it works for us,
maybe some one need this solution
thanks