Hello
sorry for my English..
i have a router with the capmanager activate.
i have two configuration 1 wifi-lan and the other wifi-home automation.
a dhcp in 192.168.2.x for my lan and wifi lan.
I wish to have a dhcp for wifi-home automation in 192.168.3.x.
I galley a little for the interface to take for the 2nd dhcp.
First you need to define another address pool then DHCP server network and lastly bind DHCP server with correct pool and network to desired interface:
/ip pool
add name=home_automation ranges=192.168.3.20-192.168.3.254
/ip dhcp-server network
add address=192.168.3.0/24 dns-server=<enter DNS server to be used by clients here> gateway=192.168.3.1 netmask=24
/ip dhcp-server
add address-pool=home_automation interface="wifi_home automation" name="dhcp_home automation"
Review the above commands and adjust them to your setup (IP address range, DNS server address, gateway address - this should match IP address bound to “wifi_home automation” interface … and correct name of said interface).
i still have a problem at dns level. if i put dns 8.8.8.8 i have access to the web however if i put 192.168.3.1 no web.
I ping the IPs but not the dns names.
I’m not sure how DNS server is configured now. Probably you have to enable it if it’s not already. Be sure you don’t allow connections to TCP and UDP ports 53 from internet.
/ip dns
set allow-remote-requests=yes servers=8.8.8.8
192.168.1.254 is Ip of my adsl box.
First lan: 192.168.2./24 dns 192.168.2.1 (ip router board) .
Second lan (with capsmanager) 192.168.3./24 if dns is 192.168.3.1 no resolution , i can ping ip no domain ..
if in configure dhcp for my second lan like this:
I can think of two reasons why you can’t use RB’s DNS server from your home automation: either there’s some firewall rule blocking access to DNS service from 192.168.3.0/24 or CapsMan settings prevent it. Either way it’s just guessing until you post full configuration.
If I got it right the problem is that you have 3 interface lists: LAN, WAN and domotique. You have firewall rule
add action=drop chain=input comment="defconf: drop all not coming from LAN" \
in-interface-list=!LAN
which doesnt allow to use RB’s DNS service (among other things) from devices connecting through domotique interface list. As you probably don’t want to allow full connectivity from home automation to router, it is probabky better to construct specific allow filters for DNS only
add action=accept chain=input comment="allow DNS from domotique" \
in-interface-list=domotique protocol=udp port=53
add action=accept chain=input comment="allow DNS from domotique" \
in-interface-list=domotique protocol=tcp port=53
You should place these two rules before the one quoted above which drops all on input chain.