Community discussions

MikroTik App
 
manolo
just joined
Topic Author
Posts: 17
Joined: Wed May 16, 2007 6:01 pm

setup DHCP

Mon Aug 29, 2011 12:32 pm

Hi,
scenario:
one L3 switch (AlliedTelesis) with 3 subnets: 192.168.1.0/24, 192.168.2.0/24 and 192.168.3.0/24 (DHCP relay is on )
Mikrotik DHCP server 192.168.1.2 attached to subnet 192.168.1.0/24
how to configure DHCP to gives IP addresses to all subnets with IP in range
pool1 192.168.1.100-192.168.1.254
pool2 192.168.2.100-192.168.2.254
pool3 192.168.3.100-192.168.3.254
DNS for all: 192.168.1.4
GATEWAY for all: 192.168.1.1


Many thanks,
Manuel
 
Feklar
Forum Guru
Forum Guru
Posts: 1724
Joined: Tue Dec 01, 2009 11:46 pm

Re: setup DHCP

Mon Aug 29, 2011 4:38 pm

How are the subnets separated on the switch? Best solution is if the switch supports VLANs, create 3 VLANs on the switch and MikroTik, and assign a different DHCP server to each VLAN.

The same solution but different, would be to do it with physical interfaces instead of VLANs on the MikroTik. The switch would still need to use VLANs to keep different switch groups separate though.
 
manolo
just joined
Topic Author
Posts: 17
Joined: Wed May 16, 2007 6:01 pm

Re: setup DHCP

Tue Aug 30, 2011 12:35 pm

The subnets are in 3 Vlans with routing, and DHCP relay on
for some reason I must have only 1 DHC server with 3 poll address space
 
Feklar
Forum Guru
Forum Guru
Posts: 1724
Joined: Tue Dec 01, 2009 11:46 pm

Re: setup DHCP

Tue Aug 30, 2011 4:02 pm

Why do you need 1 DHCP server? Why is the switch doing any kind of routing, the way you have your network described there is absolutely no reason to have the switch doing any kind of routing or DHCP relay. It is much cleaner, easier, and better to have a different DHCP server for each routed interface, instead of trying to hack something together like this, that as far as I know is not possible to accomplish the way that you want.
 
AdventureMatt
just joined
Posts: 2
Joined: Tue Aug 30, 2011 5:13 pm

Re: setup DHCP

Tue Aug 30, 2011 5:46 pm

The subnets are in 3 Vlans with routing, and DHCP relay on
for some reason I must have only 1 DHC server with 3 poll address space
Can you turn off DHCP relay? If you trunk/tag all of the 3 VLANs through to the MikroTik then you can respond to the requests directly on the VLAN itself rather than redirecting the DHCP requests across networks. Each VLAN will have its own DHCP pool representing the 3 subnets you require.

You can only select one pool for DHCP-server within the routerOS so using your MikroTik router in the way you first describe seems impossible to me, but I'm no guru!
 
manolo
just joined
Topic Author
Posts: 17
Joined: Wed May 16, 2007 6:01 pm

Re: setup DHCP

Thu Sep 01, 2011 4:00 pm

resolved,

details in PM
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: setup DHCP

Sun Sep 04, 2011 12:53 am

PMs are disabled in the forum. please post the solution =)
 
User avatar
abdonetwork
Frequent Visitor
Frequent Visitor
Posts: 53
Joined: Fri May 15, 2009 5:30 pm
Location: Palestine

Re: setup DHCP

Sun Sep 04, 2011 1:55 am

Hi,
scenario:
one L3 switch (AlliedTelesis) with 3 subnets: 192.168.1.0/24, 192.168.2.0/24 and 192.168.3.0/24 (DHCP relay is on )
Mikrotik DHCP server 192.168.1.2 attached to subnet 192.168.1.0/24
how to configure DHCP to gives IP addresses to all subnets with IP in range
pool1 192.168.1.100-192.168.1.254
pool2 192.168.2.100-192.168.2.254
pool3 192.168.3.100-192.168.3.254
DNS for all: 192.168.1.4
GATEWAY for all: 192.168.1.1


Many thanks,
Manuel
hi :)
have you tell us how did you do this ?
-------------------------------------
i have i same pool tow range i was tried many But noting now

1 hs-pool-1 192.168.30.2-192.168.31.254
2 hs-pool-2 192.168.32.2-192.168.33.254
----
in Ethernet LAN

ether1
1 192.168.30.1/24 192.168.30.0 192.168.30.255

2 10.100.0.1/32 10.100.0.1 10.100.0.1 ether2
3 192.168.32.1/24 192.168.32.0 192.168.32.255
--
the clients pc's can't got the the range 192.168.31.1-192.168.31.254 and range 32 too
---
so :: how i can open the new ranges ?
thank you
 
Feklar
Forum Guru
Forum Guru
Posts: 1724
Joined: Tue Dec 01, 2009 11:46 pm

Re: setup DHCP

Tue Sep 06, 2011 4:35 pm

Increase the pool size and increase the subnet on the interface. Easiest and quickest solution to getting more useable addresses on a hotspot.
 
supernut
just joined
Posts: 10
Joined: Tue Aug 10, 2010 5:33 pm

Re: setup DHCP

Sat Oct 08, 2011 12:26 pm

Increase the pool size and increase the subnet on the interface. Easiest and quickest solution to getting more useable addresses on a hotspot.
how. would be great is ypu explained how

thanks

Who is online

Users browsing this forum: No registered users and 176 guests