dhcprelay

can i set up a dhcp relay to do this

server(dhcp)—mikrotik(a)—mikrotik(b)—wireless(c)—wilreless(d)—mikrotik(e)—client
23.0.0.1/24
i have a ospr outing if i set up dhcp-client on client side and a dhcprelay on mikrotik(e) i get the requests bit no resons from server

mut i set up a relay on all devices or an i just set it up on the one?

I think that DHCP relay is working over one hop only.
DHCP server → DHCP relay → DHCP client.

It is not possible to make n x DHCP relay over multiple networks.

No, that’s possible. DHCP relays simply turn the broadcasts into unicasts so they can travel as many hops as you want. You only need to configure the relay on the router closest to the client.

but the end one dont get any requests for dhcp

Then it’s probably misconfigured. Post the configuration from both ends.

yep, have you set ‘Relay Address’ to 255.255.255.255 on DHCP Server?

how would i do that isnt it just the address of the dhcp server example 10.0.0.1 with dhcp pool of 10.0.0.0/8

http://wiki.mikrotik.com/wiki/Manual:IP/DHCP_Relay

The example is quite exhaustive, and works.

did that but nothing will it work with /8

Yes. Please post your configuration.

client
/ip dhcp-client
add add-default-route=yes default-route-distance=0 disabled=no interface=
wlan1 use-peer-dns=yes use-peer-ntp=yes
dhcp relay
/ip dhcp-relay
add delay-threshold=none dhcp-server=23.0.0.1 disabled=no interface=wlan3
local-address=0.0.0.0 name=relay1

That isn’t what the example I posted specifies. You need a DHCP server and a DHCP relay, not a client and a relay. There is no DHCP server in what you posted, so nothing is going to hand out DHCP leases.

SORRY HERE


/ip dhcp-server
add address-pool=dhcp_pool1 authoritative=after-2sec-delay bootp-support=
static disabled=no interface=7 lease-time=3d name=dhcp1
add address-pool=dhcp_pool3 authoritative=after-2sec-delay bootp-support=
static disabled=no interface=Local lease-time=3d name=dhcp2
/ip dhcp-server config
set store-leases-disk=5m
/ip dhcp-server lease
add address=192.168.84.227 comment=“” disabled=no mac-address=
00:14:D1:70:4E:91 server=dhcp1
add address=192.168.84.108 client-id=1:0:80:92:8:9c:76 comment=“” disabled=
no mac-address=00:80:92:08:9C:76 server=dhcp1
/ip dhcp-server network
add address=10.0.0.0/8 comment=“” gateway=10.10.10.1
add address=192.168.84.0/24 comment=“” gateway=192.168.84.1


SO I WANT CLIENT TO GET ADDRESS FROM DHCP

RANG 10.0.0.0/8

You don’t have the relay=relayIP option set in that server configuration as the wiki outlines.

Please erase all your configuration and follow the wiki guide I posted, replacing ONLY the IP address space used as well as the interface names. Leave everything else (including the object names) the same and check if it works.

exactly. if relay=0.0.0.0, your DHCP server won’t process relayed requests

ok i found my problem thanks


now next question
is it possable to do this with out bridge
Dhcp-relay.png

If you’re trying to attach the same IP space to two interfaces on the same router then you might be able to use VRFs (which will require a lot of reading), or you can bridge the interfaces and run DHCP on the bridge.

i dont want to do it on copper i want to do it on wireless and i dont want to use wds setup thats why i asked ill read up more and see what i want to do thanks for the help

then use EoIP tunnel and bridge it with your ethernets

p.s. MPLS? =)

explan to help understand


example


dhcp-server-------------rb433uah(1) (cable) rb433uah(2)
rb 433uah(2)

has 3 wireless ports 3 ap

ap1 ap2 ap3

using Eoip wont i have to bridge ap1 ap2 ap3