Community discussions

MikroTik App
 
ranpha
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 62
Joined: Mon Jan 09, 2012 3:16 am

DHCP server problem.

Mon Jan 09, 2012 3:31 am

Hardware: RB751U-2HnD with RouterOS 5.11.

My problem is I can never run a DHCP server on any other interface other than 'bridge-local'. If I delete the default DHCP server, and then add a new one at either the 'wlan1' or 'ether2-master-local' interfaces, RouterOS will report that the newly-added DHCP server is invalid (red text). Only DHCP server that is created on the 'bridge-local' interface seems to work.

Is there anything I can do to solve this problem?
 
User avatar
Girith
newbie
Posts: 34
Joined: Thu Jan 05, 2012 3:21 pm
Location: Zagreb, Croatia

Re: DHCP server problem.

Mon Jan 09, 2012 2:35 pm

why would you want to move the DHCP server to a different interface?
give us more details about your setup
also, post your
/interface print
and
/ip route print outputs
 
ranpha
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 62
Joined: Mon Jan 09, 2012 3:16 am

Re: DHCP server problem.

Mon Jan 09, 2012 2:51 pm

The main reason why I want to move the DHCP server off 'bridge-local' interface is because if I set the ARP setting for 'bridge-local' to 'reply-only' (as shown here), the IPv6 connectivity from the client to the router will break.



/interface print
[ranpha@MikroTik] > /interface print
Flags: D - dynamic, X - disabled, R - running, S - slave 
 #     NAME                               TYPE               MTU L2MTU  MAX-L2MTU
 0  R  ether1-gateway                     ether             1500  1600       4076
 1     ether2-master-local                ether             1500  1598       2028
 2     ether3-slave-local                 ether             1500  1598       2028
 3     ether4-slave-local                 ether             1500  1598       2028
 4     ether5-slave-local                 ether             1500  1598       2028
 5  R  wlan1                              wlan              1500  2290
 6  R  bridge-local                       bridge            1500  2290
 7  R  pppoe-dialer                    pppoe-out         1492
 8  R  ;;; Hurricane Electric IPv6 Tunnel Broker
       sit1                               sit               1280
/ip route print outputs
[ranpha@MikroTik] > /ip route print        
Flags: X - disabled, A - active, D - dynamic, C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme, 
B - blackhole, U - unreachable, P - prohibit 
 #      DST-ADDRESS        PREF-SRC        GATEWAY            DISTANCE
 0 ADS  0.0.0.0/0                          219.93.218.177            1
 1 ADC  192.168.1.2/32     192.168.1.2     ether1-gateway            0
 2 ADC  192.168.88.0/24    192.168.88.1    bridge-local              0
 3 ADC  219.93.218.177/32  115.135.19.174  pppoe-dialer           0
 
User avatar
Girith
newbie
Posts: 34
Joined: Thu Jan 05, 2012 3:21 pm
Location: Zagreb, Croatia

Re: DHCP server problem.

Mon Jan 09, 2012 3:09 pm

/interface bridge port print
/ip address print
 
ranpha
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 62
Joined: Mon Jan 09, 2012 3:16 am

Re: DHCP server problem.

Mon Jan 09, 2012 5:46 pm

/interface bridge port print
[ranpha@MikroTik] > /interface bridge port print
Flags: X - disabled, I - inactive, D - dynamic 
 #    INTERFACE              BRIDGE              PRIORITY  PATH-COST    HORIZON
 0 I  ether2-master-local    bridge-local            0x80         10       none
 1    wlan1                  bridge-local            0x80         10       none
/ip address print
[ranpha@MikroTik] > /ip address print
Flags: X - disabled, I - invalid, D - dynamic 
 #   ADDRESS            NETWORK         INTERFACE                                                                                                                       
 0   ;;; default configuration
     192.168.88.1/24    192.168.88.0    bridge-local                                                                                                                    
 1   192.168.1.2/32     192.168.1.2     ether1-gateway                                                                                                                  
 2 D 115.135.19.174/32  219.93.218.177  pppoe-dialer                                                                                        
 
User avatar
Girith
newbie
Posts: 34
Joined: Thu Jan 05, 2012 3:21 pm
Location: Zagreb, Croatia

Re: DHCP server problem.

Mon Jan 09, 2012 6:00 pm

try adding a new address or moving the current ip address (192.168.88.1) from bridge-local interface to the interface where you put the DHCP server
 
ranpha
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 62
Joined: Mon Jan 09, 2012 3:16 am

Re: DHCP server problem.

Mon Jan 09, 2012 6:08 pm

After moving the 192.168.88.1/24 address to 'wlan1' from the default 'bridge-local', I'll still get an invalid DHCP server if I made on the 'wlan1' interface.

edit: BTW, adding a new address to the wlan1 interface and then make a new DHCP server off the interface with the new set of addresses doesn't work either (still invalid DHCP server).
 
User avatar
Girith
newbie
Posts: 34
Joined: Thu Jan 05, 2012 3:21 pm
Location: Zagreb, Croatia

Re: DHCP server problem.

Tue Jan 10, 2012 11:25 am

if you are not using ether2-5 you can try deleting bridge-local and putting the IP address and DHCP Server on wlan1

anyway, why do you think moving the DHCP Server will fix issue with IPv6?
 
ranpha
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 62
Joined: Mon Jan 09, 2012 3:16 am

Re: DHCP server problem.

Wed Jan 11, 2012 3:43 am

Just tried what you have suggested (deleting the bridge and runs everything on the wlan1 interface - the DHCP server is valid and working then in that config), but as soon as I set the ARP option on the wlan1 interface to 'reply-only', my IPv6 routes on that wlan1 interface become unreachable, which is the problem in the first place.

I wonder if this is a bug in RouterOS. I think I should send and e-mail to Mikrotik support.
 
User avatar
cbrown
Trainer
Trainer
Posts: 1839
Joined: Thu Oct 14, 2010 8:57 pm
Contact:

Re: DHCP server problem.

Wed Jan 11, 2012 7:10 am

No there is not a bug. Read about ARP.
http://wiki.mikrotik.com/wiki/Manual:IP/ARP

Also, you can not add a dhcp server to an interface in a bridge. You have to add the dhcp server to the bridge or remove to interface from the bridge. If removed from the default bridge you will also have to set an ip for the interface.
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6263
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: DHCP server problem.

Wed Jan 11, 2012 2:07 pm

exactly as cbrown wrote. You have to check ip address what is master-interface and that is the interface you have to set your dhcp-server on. Or else it will be in invalid state. Same applies to switch slave ports.

Who is online

Users browsing this forum: BigCol and 21 guests