2public IP, how to transfer 1IP to a server?

Hello guys:
I’ve a nice RouterBoard Mikrotik in the office and it works fine, but I’ve a question.
My ISP (cable) offers me 2 public IP (they’re static IP but offered by DHCP), and I want to use 1 public IP for NAT (office’s PCs) and the other public one in a server (Asterisk), but I want to offer to the server the Public IP don’t private IP.
a) How can I do this?
b) Can I set mannualy the public IP in the Server (don’t use DHCP client)?

Thanks

Excuse me for my english, is not my principal language.

You can add ips to your mikrotik and using firewall rules you can redirect ips manually. Like you can decide which ip’s manual which ip’s other user’s should use that.
make that settings on winbox in ip-firewall part
OK I have done
chain is
dstnat

write dst address to an real WAN address that you want to use
now,
click action
action
dst-nat
to addresses:
write your local IP
ports: 0

I’m in the first step (adding IPs), but I found a problem, when I’m trying to enter the second IP (assigned via DHCP) the Mikrotik send me an error “Couldn’t add New DHCP Client -dhcp-client on that interface already exists” (I attach the screenshot)


I try to create a VLAN but the mikrotik never get an IP.
Any idea how can I fix it??

you cannot put 2 dhcp-clients on the same interface. if you are able to set them statically then use that option, just be aware if the ISP actually changes your IP then things will break.

The IP address is based on the MAC address. Is possible to create a virtual NIC adapter (in the same NIC card)?

Best regards,

My cable offers me 2 CPE, but I can use more than 2 ip’s when I enter it manually.
You can enter ip’s by manual. It doesn’t matter I think.
Just write:

/ip address add address=200.83.230.93/24 interface=ether1

this command to terminal.

Now try to ping it from:
http://www.ping.eu

write that 200.83.230.93 ip address that gap and click to ping it. If you can ping it.
Do what I said on my before post.

It works!! :slight_smile: the problem was in the Route List.

I add the IP address to the “Address List”, now I go to Firewall, and create a New Firewall Rule, in Chain only appear input, output and forward, should I select “forward”??
I attach the screenshot of what I see.
Thanks,

Best regards,


click NAT at that Firewall window.(in that page you’re in Filter Rules in Firewall window)