Community discussions

MikroTik App
 
jbabbtech
just joined
Topic Author
Posts: 20
Joined: Thu Sep 30, 2010 4:17 am

Config for 2 public IPs on 1 interface facing 1 DSL Link.

Thu Apr 28, 2011 3:01 am

I have ran across a customer using an old Linksys VPN router with DMZ and load balancing capability. The router is connected to a single DSL link. I am installing a Mikrotik to replace the Linksys but I am not sure how to reproduce the config. I have been thinking in the direction of using the first interface as a switch port and connecting the DSL Link to this. I guess I can create two virtual interfaces with the public IPs and route them. I tried applying the two statics to the same interface and this did not work. Any suggestions or advice?
 
Feklar
Forum Guru
Forum Guru
Posts: 1724
Joined: Tue Dec 01, 2009 11:46 pm

Re: Config for 2 public IPs on 1 interface facing 1 DSL Link

Thu Apr 28, 2011 3:36 am

You can have as many subnets and IPs assigned to a given interface as you want. Please provide an /ip address print detail, that way we can see what you are trying to do, and might be able to give some advice.

Each interface on the router can be it's own separate routed interface, so setting up a DMZ on the router is as simple as placing a different subnet on one interface and applying different NAT rules and firewall rules.
 
jbabbtech
just joined
Topic Author
Posts: 20
Joined: Thu Sep 30, 2010 4:17 am

Re: Config for 2 public IPs on 1 interface facing 1 DSL Link

Sat Apr 30, 2011 5:53 pm

Thanks. I created a bridge containing the WAN link and assigned the two statics to the bridge. I performed a one-to-one NAT on one of the IPs for a specific server and I configured the remainder of traffic to NAT using the other static. The firewall rules hurt my head though. I'm weak in that area to begin with and I had to rethink how outside traffic would hit the bridge interface.
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: Config for 2 public IPs on 1 interface facing 1 DSL Link

Sat Apr 30, 2011 8:03 pm

There's no need for any of that. You can apply two static IPs to a physical interface just fine. If it did not work for you then you had an error in the implementation somewhere.