Community discussions

MikroTik App
 
anishpsla
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 74
Joined: Mon Aug 25, 2014 9:16 am

Configure 2 ip for WAN

Sun Oct 01, 2017 8:06 pm

My ISP is giving 2 IPs (A.B.C.D and E.F.G.H - different network) for WAN connection. I want to use one IP (A.B.C.D) for broadband connectivity and other (E.F.G.H) for hosting our websites (NAT the address and forward port 80). I configure IP (A.B.C.D) for broadband connectivity and works perfectly. I create a VLAN in WAN interface and configure IP (E.F.G.H) in it. I can ping the VLAN interface from internet. But I can't NAT the interface for configuring Webserver.

How can I configure both IPs for Broadband connectivity and hosting webserver.
 
anishpsla
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 74
Joined: Mon Aug 25, 2014 9:16 am

Re: Configure 2 ip for WAN

Mon Oct 02, 2017 8:20 am

Any information from MT ?
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8712
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Configure 2 ip for WAN

Mon Oct 02, 2017 11:35 am

But I can't NAT the interface for configuring Webserver.
why? what's stopping you from doing that?
 
anishpsla
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 74
Joined: Mon Aug 25, 2014 9:16 am

Re: Configure 2 ip for WAN

Mon Oct 02, 2017 8:33 pm

Please suggest me a recommended configuration.

As I mention in the first post, I configure the second IP in a VLAN under WAN port. but it's not working correctly. I can ping to the VLAN interface. But because of unknown reason, it's not working as I want.
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8712
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Configure 2 ip for WAN

Tue Oct 03, 2017 8:42 am

But because of unknown reason, it's not working as I want.
but what exactly do you want? what do you configure, what do you check and what does work not as you expect?
 
anishpsla
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 74
Joined: Mon Aug 25, 2014 9:16 am

Re: Configure 2 ip for WAN

Wed Oct 04, 2017 8:10 pm

Our ISP give two IPs 103.12.x.x and 45.85.x.x on same fiber. I want to configure 103.12.x.x for 192.168.0.0/24 and 45.85.x.x for 172.16.0.0/24

I successfully configure 103.12.x.x on WAN and 192.168.0.0/24 on ether1. I don't know how to configure 45.85.x.x for 172.16.0.0/24 on ether2.
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8712
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Configure 2 ip for WAN  [SOLVED]

Thu Oct 05, 2017 8:50 am

You said you created a VLAN. Did your ISP tell you that you need VLAN? Or maybe you just need to add 45.85.x.x on WAN interface together with 103.12.x.x?
 
anishpsla
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 74
Joined: Mon Aug 25, 2014 9:16 am

Re: Configure 2 ip for WAN

Thu Oct 05, 2017 2:01 pm

you just need to add 45.85.x.x on WAN interface together with 103.12.x.x?
Yes, I want to host webserver on 45.85.x.x (NATed 172.16.0.0/24).
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8712
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Configure 2 ip for WAN

Thu Oct 05, 2017 3:51 pm

I mean, do not create VLAN on etherX, add second address directly to etherX
 
anishpsla
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 74
Joined: Mon Aug 25, 2014 9:16 am

Re: Configure 2 ip for WAN

Thu Oct 05, 2017 8:27 pm

Can I NAT that address to 172.16.x.x and forward port 80 to WAN ?
 
ekpesinyang
Frequent Visitor
Frequent Visitor
Posts: 73
Joined: Tue Apr 12, 2016 6:21 pm
Location: Uyo
Contact:

Re: Configure 2 ip for WAN

Thu Oct 05, 2017 9:15 pm

You don't need a VLAN to configure That. But why not do a port forwarding instead. Can u do a sketch diagramme of your network ? what really do u want to achieve with it.


Can I NAT that address to 172.16.x.x and forward port 80 to WAN ?
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8712
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Configure 2 ip for WAN

Fri Oct 06, 2017 10:13 am

Can I NAT that address to 172.16.x.x and forward port 80 to WAN ?
Sure
 
anishpsla
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 74
Joined: Mon Aug 25, 2014 9:16 am

Re: Configure 2 ip for WAN

Fri Oct 06, 2017 8:17 pm

Thanks, I will try and post the result.

Who is online

Users browsing this forum: eddieb, itimo01 and 117 guests