mirror of
https://github.com/vyos/vyos-documentation.git
synced 2025-12-16 10:32:02 +01:00
Update dhcp-relay.rst (#729)
* Update dhcp-relay.rst Include info that all participating interfaces must be defined; https://forum.vyos.io/t/dhcp-relay-uplink-interface/8542 * Update dhcp-relay.rst Fix lines too long.
This commit is contained in:
parent
a6d5adfc57
commit
a98cb8bec9
@ -8,7 +8,8 @@ If you want your router to forward DHCP requests to an external DHCP server
|
||||
you can configure the system to act as a DHCP relay agent. The DHCP relay
|
||||
agent works with IPv4 and IPv6 addresses.
|
||||
|
||||
All interfaces used for the DHCP relay must be configured.
|
||||
All interfaces used for the DHCP relay must be configured. This includes the
|
||||
uplink to the DHCP server.
|
||||
|
||||
**********
|
||||
IPv4 relay
|
||||
@ -19,7 +20,8 @@ Configuration
|
||||
|
||||
.. cfgcmd:: set service dhcp-relay interface <interface>
|
||||
|
||||
Enable the DHCP relay service on the given interface.
|
||||
Interfaces that participate in the DHCP relay process, including the uplink
|
||||
to the DHCP server.
|
||||
|
||||
.. cfgcmd:: set service dhcp-relay server <server>
|
||||
|
||||
@ -67,9 +69,9 @@ Example
|
||||
=======
|
||||
|
||||
* Listen for DHCP requests on interface ``eth1``.
|
||||
* DHCP server is located at IPv4 address 10.0.1.4.
|
||||
* DHCP server is located at IPv4 address 10.0.1.4 on ``eth2``.
|
||||
* Router receives DHCP client requests on ``eth1`` and relays them to the server
|
||||
at 10.0.1.4.
|
||||
at 10.0.1.4 on ``eth2``.
|
||||
|
||||
.. figure:: /_static/images/service_dhcp-relay01.png
|
||||
:scale: 80 %
|
||||
@ -83,6 +85,7 @@ The generated configuration will look like:
|
||||
|
||||
show service dhcp-relay
|
||||
interface eth1
|
||||
interface eth2
|
||||
server 10.0.1.4
|
||||
relay-options {
|
||||
relay-agents-packets discard
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user