...
Code Block | ||
---|---|---|
| ||
/ip dhcp-relay add name=Local1-Relay interface=Local1 \ dhcp-server=192.168.0.1 local-address=192.168.1.1 disabled=no /ip dhcp-relay add name=Local2-Relay interface=Local2 \ dhcp-server=192.168.0.1 local-address=192.168.2.1 disabled=no [admin@DHCP-Relay] ip dhcp-relay> print Flags: X - disabled, I - invalid # NAME INTERFACE DHCP-SERVER LOCAL-ADDRESS 0 Local1-Relay Local1 192.168.0.1 192.168.1.1 1 Local2-Relay Local2 192.168.0.1 192.168.2.1 [admin@DHCP-Relay] ip dhcp-relay> |
DHCP Relay with VRF (
...
introduced in 7.15)
Let's take the previous setup but we'll consider that the interface to the DHCP server and interfaces to DHCP clients are added in VRF:
Code Block | ||
---|---|---|
| ||
/ip vrf add interfaces=To-DHCP-Server name=vrf_server add interfaces=Local2 name=vrf2 add interfaces=Local1 name=vrf1 |
In the DHCP-relay configuration dhcp-server-vrf should be added:
Code Block | ||
---|---|---|
| ||
/ip dhcp-relay/set dhcp-server-vrf=vrf_server numbers=0,1 |
As due Due to VRF configuration there are several routing-tables - we should add additional routes:
...