Community discussions

MikroTik App
 
nine1ron
just joined
Topic Author
Posts: 1
Joined: Wed Jan 09, 2019 10:52 pm

DHCP Setup on two ports

Wed Jan 09, 2019 10:58 pm

I need to setup two dhcp lease pools on my network so that traffic is on different pools. Every time I try add a dhcp server and link it to an interface, it says its set as a slave. My goal is to have port 2 set with a 192.168.75.1/24 pool and port 3 set as a 192.168.80.1/24 pool. I know it has to do with the bridge but am not figuring out what I am doing wrong. I have internet working on it where port 1 is my WAN and port 5 is directly connected to my computer. Can anyone point me in the right direction? My goal is for all data to go out the WAN port for internet but to keep traffic separate on the two ports.
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 19380
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: DHCP Setup on two ports

Thu Jan 10, 2019 7:08 pm

What router and what firmware version are you using please.
 
User avatar
AlainCasault
Trainer
Trainer
Posts: 632
Joined: Fri Apr 30, 2010 3:25 pm
Location: Prévost, QC, Canada
Contact:

Re: DHCP Setup on two ports

Thu Jan 10, 2019 7:34 pm

Hello,

I'm afraid your question is all over the place. Dhcp, traffic flow...

I'll answer the dhcp question: assign your dhcp server to the bridge hosting the two ports. As the router is saying, you can't assign the server to a port inside a bridge.

Cheers,


Sent from my cell phone. Sorry for the errors.

 
Exiver
Member Candidate
Member Candidate
Posts: 122
Joined: Sat Jan 10, 2015 6:45 pm

Re: DHCP Setup on two ports

Thu Jan 10, 2019 7:43 pm

Its not possible to add the dhcp server on a bridged interface because those ports are logically connected like on a switch. That means the dhcp service on slave interface (ether6) would also listen on slave interface (ether7). That results into the problem that the service cannot distinguish from which client (on ether6 or ether7?) the request was sent (and here you would need the deicision if it should hand out a ip from pool 1 or pool 2).

You need to make a decision: What are you trying to do. Should devices from pool 1 be able to connect to devices from pool 2 (and vice versa)? Or do you want them to be seperated? Sometimes you only need one or more specific devices from one network to reach one or more devices in the other network.

Your options are:
- Route the traffic between both networks (make sure to have proper firewall rules) -> you dont need a bridge for the two networks, just assign the dhcp service to the specific ethernet port.
- Have them in a bridged network and setup ip addresses in /ip dhcp-server leases statically for the clients (you do not need pools for that, but you need two entries in /ip dhcp-server network)
 
User avatar
AlainCasault
Trainer
Trainer
Posts: 632
Joined: Fri Apr 30, 2010 3:25 pm
Location: Prévost, QC, Canada
Contact:

Re: DHCP Setup on two ports

Fri Jan 11, 2019 5:57 pm


Its not possible to add the dhcp server on a bridged interface because those ports are logically connected like on a switch. That means the dhcp service on slave interface (ether6) would also listen on slave interface (ether7). That results into the problem that the service cannot distinguish from which client (on ether6 or ether7?) the request was sent (and here you would need the deicision if it should hand out a ip from pool 1 or pool 2).

You need to make a decision: What are you trying to do. Should devices from pool 1 be able to connect to devices from pool 2 (and vice versa)? Or do you want them to be seperated? Sometimes you only need one or more specific devices from one network to reach one or more devices in the other network.

Your options are:
- Route the traffic between both networks (make sure to have proper firewall rules) -> you dont need a bridge for the two networks, just assign the dhcp service to the specific ethernet port.
- Have them in a bridged network and setup ip addresses in /ip dhcp-server leases statically for the clients (you do not need pools for that, but you need two entries in /ip dhcp-server network)
Don't want to be rude, but this answer is as confusing as the question. I think the OP has to refine his request.

Just to clear one point, if you have two ports in one bridge, the dhcp server goes on the bridge, nowhere else. If you want one port to use one pool, and the other another pool, you don't bridge them. They become separate subnets that will be able to communicate with each other without any problem. Of course, both ports will have their own ip address. The firewall is only added after to restrict communications. Routing is not even required since both subnets are on the same router.

Cheers,

Sent from my cell phone. Sorry for the errors.

 
User avatar
AlainCasault
Trainer
Trainer
Posts: 632
Joined: Fri Apr 30, 2010 3:25 pm
Location: Prévost, QC, Canada
Contact:

Re: DHCP Setup on two ports

Fri Jan 11, 2019 6:23 pm

Well, you are rude and you're not very understanding.

If you read the original question:
request is to setup two different dhcp server configuraiton for two ports which are seemingly in same bridge configuration. What's so hard to understand?

If you're not willing to help, then don't bother others trying to do just that.
Thank you for that curtious reply.

And your contribution to this post is???

Anyway, I have replied to the question asking for more info, and corrected the previous post which was inacurate and misleading to the OP. What's your answer then?
 
User avatar
sebastia
Forum Guru
Forum Guru
Posts: 1782
Joined: Tue Oct 12, 2010 3:23 am
Location: Antwerp, BE

Re: DHCP Setup on two ports

Fri Jan 11, 2019 9:17 pm

My comment was purely on form and manner, if it wasn't obvious enough...
 
User avatar
AlainCasault
Trainer
Trainer
Posts: 632
Joined: Fri Apr 30, 2010 3:25 pm
Location: Prévost, QC, Canada
Contact:

Re: DHCP Setup on two ports

Fri Jan 11, 2019 9:31 pm

My comment was purely on form and manner, if it wasn't obvious enough...

Next time, report my post and let a real moderator tell me what to do.

Who is online

Users browsing this forum: davordaco86, Google [Bot], jaclaz, Majestic-12 [Bot], markinhusxp, PLJ020 and 189 guests