New Member
Posts: 5
Registered: ‎03-25-2013

DHCP on vlans

Hi,

 

I'm struggling with an issue and need some advice.

 

I have a /26 net of public static IP adresses from my provider.

1 of these is configured as wan interface on ERL router.

 

I have 3 inside networks on different vlans. Two NATed through ERL; staff and guest. 

The third network is only a switched network directly connected to ISP.

I want to use ELR to act as a dhcp server and serve a range of addresses in my /26 network to so I don't have to use static addresses on all hosts.

 

Lets consider my subnet would be: 100.100.100.64 /26

Default gateway at my provider is: 100.100.100.65

Wan on ERL: 100.100.100.66 /26

Inside staff: 192.168.1.0/24

Inside Guest: 192.168.2.0/24

 

I create a vlan interface and assign: 100.100.100.67 /26

And now I try to create a DHCP server for subnet: 100.100.100.64/26 and start/stop-range 100.100.100.68-100.100.100.100

 

With this setup I get the following error message both in GUI and CLI:

DHCP server error: None of the DHCP lease subnets are inside any of the subnets
configured on broadcast interfaces. At least one DHCP lease subnet must be set such that DHCP server listens on a minimum of one broadcast interface DHCP server configuration commit aborted due to error(s).

 

 

Is there a way to acomplish what I'm trying to do?

Ubiquiti Employee
Posts: 2,991
Registered: ‎02-04-2013
Kudos: 354
Solutions: 289

Re: DHCP on vlans

Could you try bridge WAN and the VLAN interface, put 100.100.100.66 /26 under the bridge, no address under the VLAN and WAN interfaces

 

Highlighted
New Member
Posts: 5
Registered: ‎03-25-2013

Re: DHCP on vlans

Seems to be advice in the right direction =) Just tried it quickly and it seems to work, will test more tomorrow! Thank you!