Community discussions

MikroTik App
 
Max76
just joined
Topic Author
Posts: 4
Joined: Mon May 11, 2020 8:24 am

[Swich + router] configuration

Mon May 11, 2020 8:49 am

Hi there,

Is it posible inside a single device (hAP ac Lite) as below configuration?:
IMG_2149.JPG
ISP on the first interface;
webserver on the second (ISP provide a static IP by mac address here);
3,4 interface + wifi - other devices (dynamic IP).

It is important that the webserver and other devices will be isolated each other.

Thanks.
You do not have the required permissions to view the files attached to this post.
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 19363
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: [Swich + router] configuration

Mon May 11, 2020 4:25 pm

So you have one ISP that has provided you two WANIP addresses OR two different ISPs?
In either case all doable.
 
Max76
just joined
Topic Author
Posts: 4
Joined: Mon May 11, 2020 8:24 am

Re: [Swich + router] configuration

Thu May 14, 2020 9:27 pm

Yes. One ISP, two external IP. I need to give one IP to the webserver and one to the router (dhcp) so that the webserver and other devices ended up in isolation from each other.
I add a one bridge with ISP port and webserver port. Next: second bridge with all others ports. But how will the Internet get into the second bridge? And what about dhcp server and dhcp client?
Thanks!
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 19363
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: [Swich + router] configuration

Thu May 14, 2020 9:51 pm

All possible with the hapac, although I am pretty sure you could have done all with ONE IP, but there is nothing wrong with a dedicated IP either for a server and probably a better way to go, just more costly. How to set it up correctly is a good question.

Did the ISP give you a block of IPs............ or just two fixed IPs?
what info did they exactly provide just use fake numbers etc.......
 
Max76
just joined
Topic Author
Posts: 4
Joined: Mon May 11, 2020 8:24 am

Re: [Swich + router] configuration

Fri May 15, 2020 1:18 pm

Now I have done this:
bridge-1 = ISP port + web server port
bridge-2 = all other ports

bridge-2 ports connect among themselves, but how to connect it with the ISP?
 
andriys
Forum Guru
Forum Guru
Posts: 1527
Joined: Thu Nov 24, 2011 1:59 pm
Location: Kharkiv, Ukraine

Re: [Swich + router] configuration

Fri May 15, 2020 1:39 pm

What are your speed requirements? The easiest way to configure what you want is to use two bridges, but you device can only have one hardware-accelerated bridge. If your WAN is relatively slow I'd say go this way, with LAN bridge with hardware acceleration and WAN bridge in software.

Another way would be to add all five ports to a single bridge, and then isolate ports from each other using VLANs, but this is going to be more complicated.
 
Max76
just joined
Topic Author
Posts: 4
Joined: Mon May 11, 2020 8:24 am

Re: [Swich + router] configuration

Fri May 15, 2020 9:49 pm

Another way would be to add all five ports to a single bridge, and then isolate ports from each other using VLANs, but this is going to be more complicated.
that would be cool! How can I do it?
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 19363
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: [Swich + router] configuration

Fri May 15, 2020 9:53 pm

viewtopic.php?f=13&t=143620
Is the best reference to read on the topic and its not that difficult.
There are some gotchas that most trip over but we are here to help.

Who is online

Users browsing this forum: iDaemon and 40 guests