From 95b0771ca0f13ea8175bfc7b3ab6797719e03113 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sun, 19 Sep 2021 11:27:45 +0200 Subject: dhcp: T3672: allow only one DHCP failover pool --- docs/configuration/service/dhcp-server.rst | 34 ++++++++++++++++-------------- 1 file changed, 18 insertions(+), 16 deletions(-) (limited to 'docs/configuration/service') diff --git a/docs/configuration/service/dhcp-server.rst b/docs/configuration/service/dhcp-server.rst index c3fcd698..45423415 100644 --- a/docs/configuration/service/dhcp-server.rst +++ b/docs/configuration/service/dhcp-server.rst @@ -136,32 +136,33 @@ Individual Client Subnet DHCP server will attempt to reclaim an abandoned IP address regardless of the value of abandon-lease-time. +.. cfgcmd:: set service dhcp-server shared-network-name subnet + enable-failover + + Enable DHCP failover configuration for this address pool. + Failover -------- VyOS provides support for DHCP failover. DHCP failover must be configured explicitly by the following statements. -.. cfgcmd:: set service dhcp-server shared-network-name subnet - failover local-address
+.. cfgcmd:: set service dhcp-server failover source-address
Local IP `
` used when communicating to the failover peer. -.. cfgcmd:: set service dhcp-server shared-network-name subnet - failover peer-address
+.. cfgcmd:: set service dhcp-server failover remote
Remote peer IP `
` of the second DHCP server in this failover cluster. -.. cfgcmd:: set service dhcp-server shared-network-name subnet - failover name +.. cfgcmd:: set service dhcp-server failover name A generic `` referencing this sync service. .. note:: `` must be identical on both sides! -.. cfgcmd:: set service dhcp-server shared-network-name subnet - failover status +.. cfgcmd:: set service dhcp-server failover status The primary and secondary statements determines whether the server is primary or secondary. @@ -391,25 +392,26 @@ Common configuration, valid for both primary and secondary node. set service dhcp-server shared-network-name NET-VYOS subnet 192.0.2.0/24 domain-name 'vyos.net' set service dhcp-server shared-network-name NET-VYOS subnet 192.0.2.0/24 range 0 start '192.0.2.10' set service dhcp-server shared-network-name NET-VYOS subnet 192.0.2.0/24 range 0 stop '192.0.2.250' + set service dhcp-server shared-network-name NET-VYOS subnet 192.0.2.0/24 enable-failover **Primary** .. code-block:: none - set service dhcp-server shared-network-name NET-VYOS subnet 192.0.2.0/24 failover local-address '192.168.189.252' - set service dhcp-server shared-network-name NET-VYOS subnet 192.0.2.0/24 failover name 'NET-VYOS' - set service dhcp-server shared-network-name NET-VYOS subnet 192.0.2.0/24 failover peer-address '192.168.189.253' - set service dhcp-server shared-network-name NET-VYOS subnet 192.0.2.0/24 failover status 'primary' + set service dhcp-server failover source-address '192.168.189.252' + set service dhcp-server failover name 'NET-VYOS' + set service dhcp-server failover remote '192.168.189.253' + set service dhcp-server failover status 'primary' **Secondary** .. code-block:: none - set service dhcp-server shared-network-name NET-VYOS subnet 192.0.2.0/24 failover local-address '192.168.189.253' - set service dhcp-server shared-network-name NET-VYOS subnet 192.0.2.0/24 failover name 'NET-VYOS' - set service dhcp-server shared-network-name NET-VYOS subnet 192.0.2.0/24 failover peer-address '192.168.189.252' - set service dhcp-server shared-network-name NET-VYOS subnet 192.0.2.0/24 failover status 'secondary' + set service dhcp-server failover source-address '192.168.189.253' + set service dhcp-server failover name 'NET-VYOS' + set service dhcp-server failover remote '192.168.189.252' + set service dhcp-server failover status 'secondary' .. _dhcp-server:v4_example_raw: -- cgit v1.2.3