DHCP protocol
U
SER
G
UIDE
325
DHCP
AND
VRRP
You can tie the state of the DHCP service to the one of the VRRP and make so that the DHCP
answers to the client requests only when the router is in a VRRP Master state.
You can obtain this specifying the
N
parameter, as following:
set dhcp-server <pool> rely-on-vrrp N
by which you establish that the received requests are satisfied only if the VRRP with id
N
is in
Master state.
This function is useful in redundant scenarios to avoid that more than one process answer to the
same client.
DHCP-RELAY
A
GENT SERVICE
You can configure the service using:
set dhcp-relay <name> in-interface <interface>
with this command you specify the local interface, i.e. the one from which the client request come.
You can specify a list of interfaces, separated by a comma. For Example:
set dhcp-relay rel1 in-interface eth1.10,eth1.20
The output interface, which reaches the remote server, can be specified using:
set dhcp-relay <name> out-interface <interface>
To set the IP address of the remote DHCP server the command is:
set dhcp-relay <name> server <ipaddress>
If the command is not present, the requests received from clients will be sent as broadcast
messages.
To specify the IP address by which requests should be sent to the remote server, you can:
set dhcp-relay <name> source <ipaddress>
If the latter is not present, it is used the address associated with the interface output.