Hello
i want to setup a mikrotik routerboard as router in front of some web servers.
The instructions of the datacenter is this:
give to the WAN of router ip: 2xx.xxx.xxx.xx2/32
put a routing rule so the traffic for 1xx.xxx.xxx.1 go via interface ether1 (the wan interface)
put the default routing to gateway 1xx.xxx.xxx.1
Until now i have a linux box and the above configuration it is fine.
Now i want to replace this
Here is my route config
I can ping the gateway but there is no internet access, seems that the rule for default gateway not working.
Can anyone tell me what is wrong? The routerboard cant do this config?
Thanks
I actually misread your post. You have a /32, not /30… I will post another answer for the /32.
Lets say your WAN block is 2.0.0.0/30 and your LAN block is 1.0.0.0/24. Your ISP is using 2.0.0.1 and they tell you to assign 2.0.0.2 to your interface (lets say ether1).
You would assign 2.0.0.2/30 to ether1 and add a route of 0.0.0.0/0 with a gateway of 2.0.0.1.
/ip address add address=2.0.0.2/30 interface ether1
and -
/ip route add dst-address=0.0.0.0/0 gateway=2.0.0.1
Now you have a block of 1.0.0.0/24 that you want to route. You would add the first IP to either an interface or a bridge that contains multiple interfaces.
or -
/ip address add address=1.0.0.1/24 interface bridge1
As long as your ISP has a route pointing to you containing your second block it will work. Your servers would use the Mikrotik as their gateway. Their gateway in this example is 1.0.0.1. This is basic routing. Another issue you may have is DNS.