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.
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:
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,