Community discussions

MikroTik App
 
SionFE
just joined
Topic Author
Posts: 20
Joined: Fri Apr 30, 2021 4:22 pm
Location: Russia, Moscow

DHCP Relay configuration

Sat Jun 05, 2021 11:39 pm

Hello,
I am trying to configure DHCP Relay. I have RB4011 (DHCP Server) and cap ac (DHCP Relay). Right now I can get local IP address from RB4011 through cap ac, however I cannot get access to Internet from my devices, unless I set a masquerade rule on cap ac (masquerade rule on RB4011 is set and if I connect my device directly to RB4011, I get access to Internet without issues). But is it how it should be? Also, I cannot connect using WinBox and any other method to RB4011, when I am connected to cap ac, however I can get access to other devices connected to RB4011 directly. To configure RB4011 I have to connect to it directly. How to solve this?
You do not have the required permissions to view the files attached to this post.
Last edited by SionFE on Tue Jun 08, 2021 5:59 pm, edited 1 time in total.
 
jonah1810
Frequent Visitor
Frequent Visitor
Posts: 98
Joined: Tue Jul 30, 2019 10:19 pm

Re: DHCP Relay configuration

Tue Jun 08, 2021 12:25 am

Export your config! both of the router and the access point so can somebody can help you.
 
User avatar
webor
Frequent Visitor
Frequent Visitor
Posts: 97
Joined: Sat Dec 20, 2008 2:33 am
Location: Croatia, Europe

Re: DHCP Relay configuration

Tue Jun 08, 2021 12:57 am

It might be that you have not configured the bridge/ip addresses correctly between the main router and the ap.
 
User avatar
bpwl
Forum Guru
Forum Guru
Posts: 2983
Joined: Mon Apr 08, 2019 1:16 am

Re: DHCP Relay configuration

Tue Jun 08, 2021 1:39 am

 
SionFE
just joined
Topic Author
Posts: 20
Joined: Fri Apr 30, 2021 4:22 pm
Location: Russia, Moscow

Re: DHCP Relay configuration

Tue Jun 08, 2021 5:57 pm

Export your config! both of the router and the access point so can somebody can help you.
Config files attached.
 
User avatar
bpwl
Forum Guru
Forum Guru
Posts: 2983
Joined: Mon Apr 08, 2019 1:16 am

Re: DHCP Relay configuration  [SOLVED]

Tue Jun 08, 2021 9:46 pm

Changing relay to switched network. Fixed IP and DHCP-client, both = lazy implementation (route and DNS will come with DHCP lease.)

Clean up RB4011.

Switch port setting, what for ??? Use either SWITCH or BRIDGE, not both.

No DHCP relay needed
.
Bridge MAIN and Ether10 will not route between each other as they use the same subnet. Maybe just add ether10 to bridge (and remove ether10 settings). Or use non-overlapping specific netmask (/25?) for 2 routed subnets, with IP address on MAIN and ether10 in their respective subnet. These addresses are the 2 gateways for the respective DHCP leases.

192.168.1.2 referring to "relay" AP is not a gateway (anymore) in the switched-relay2 setup.
You do not have the required permissions to view the files attached to this post.
 
SionFE
just joined
Topic Author
Posts: 20
Joined: Fri Apr 30, 2021 4:22 pm
Location: Russia, Moscow

Re: DHCP Relay configuration

Wed Jun 09, 2021 11:35 pm

Changing relay to switched network. Fixed IP and DHCP-client, both = lazy implementation (route and DNS will come with DHCP lease.)
Thank you. Everything is working fine now. However, I can't understand, when DHCP Relay should be used.
 
User avatar
bpwl
Forum Guru
Forum Guru
Posts: 2983
Joined: Mon Apr 08, 2019 1:16 am

Re: DHCP Relay configuration

Thu Jun 10, 2021 12:38 am

DHCP relay is when the DHCP server itself is not reachable by the client, is on another (routed) network.
Klembord-2.jpg
Here DHCP server and clients are all on the same (bridged/switched) L2 network.
You do not have the required permissions to view the files attached to this post.
 
SionFE
just joined
Topic Author
Posts: 20
Joined: Fri Apr 30, 2021 4:22 pm
Location: Russia, Moscow

Re: DHCP Relay configuration

Thu Jun 10, 2021 1:01 am

Thank you for your answer.

Who is online

Users browsing this forum: anav, cdblue, mtkvvv and 42 guests