Community discussions

MikroTik App
SionFE
刚刚加入了
Topic Author
Posts: 20
加入: 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 bySionFEon Tue Jun 08, 2021 5:59 pm, edited 1 time in total.
Top
jonah1810
常客
常客
Posts: 91
加入: 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.
Top
用户头像
webor
常客
常客
Posts: 97
加入: 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.
Top
用户头像
bpwl
Forum Guru
Forum Guru
Posts: 2779
加入: Mon Apr 08, 2019 1:16 am

Re: DHCP Relay configuration

Tue Jun 08, 2021 1:39 am

Top
SionFE
刚刚加入了
Topic Author
Posts: 20
加入: 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.
Top
用户头像
bpwl
Forum Guru
Forum Guru
Posts: 2779
加入: 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.
Top
SionFE
刚刚加入了
Topic Author
Posts: 20
加入: 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.
Top
用户头像
bpwl
Forum Guru
Forum Guru
Posts: 2779
加入: 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.
Top
SionFE
刚刚加入了
Topic Author
Posts: 20
加入: 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.
Top

Who is online

Users browsing this forum:Ahrefs [Bot],tangentand 6 guests

Baidu
map