mirror of
				https://github.com/vyos/vyos-documentation.git
				synced 2025-10-26 08:41:46 +01:00 
			
		
		
		
	dhcp-ha: correction of dhcp HA example and option (#1646)
This commit is contained in:
		
							parent
							
								
									6a7eb7beed
								
							
						
					
					
						commit
						6dd1ef8e34
					
				| @ -202,9 +202,7 @@ statements on both servers: | ||||
| 
 | ||||
| .. cfgcmd:: set service dhcp-server high-availability name <name> | ||||
| 
 | ||||
|    A generic `<name>` referencing this sync service. | ||||
| 
 | ||||
|    .. note:: `<name>` must be identical on both sides! | ||||
|    Define the name of the peer server to establish and identify the HA (High Availability) connection. | ||||
| 
 | ||||
| .. cfgcmd:: set service dhcp-server high-availability status <primary | ||||
|    | secondary> | ||||
| @ -444,15 +442,16 @@ Please see the :ref:`dhcp-dns-quick-start` configuration. | ||||
| 
 | ||||
| .. _dhcp-server:v4_example_failover: | ||||
| 
 | ||||
| Failover | ||||
| -------- | ||||
| High Availability | ||||
| ----------------- | ||||
| 
 | ||||
| Configuration of a DHCP failover pair | ||||
| Configuration of a DHCP HA pair | ||||
| 
 | ||||
| * Setup DHCP failover for network 192.0.2.0/24 | ||||
| * Setup DHCP HA for network 192.0.2.0/24 | ||||
| * Use active-active HA mode. | ||||
| * Default gateway and DNS server is at `192.0.2.254` | ||||
| * The primary DHCP server uses address `192.168.189.252` | ||||
| * The secondary DHCP server uses address `192.168.189.253` | ||||
| * The primary DHCP server named dhcp-primary uses address `192.168.189.252` | ||||
| * The secondary DHCP server named dhcp-secondary uses address `192.168.189.253` | ||||
| * DHCP range spans from `192.168.189.10` - `192.168.189.250` | ||||
| 
 | ||||
| Common configuration, valid for both primary and secondary node. | ||||
| @ -471,19 +470,21 @@ Common configuration, valid for both primary and secondary node. | ||||
| 
 | ||||
| .. code-block:: none | ||||
| 
 | ||||
|   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' | ||||
|   set service dhcp-server high-availability mode 'active-active' | ||||
|   set service dhcp-server high-availability source-address '192.168.189.252' | ||||
|   set service dhcp-server high-availability name 'dhcp-secondary' | ||||
|   set service dhcp-server high-availability remote '192.168.189.253' | ||||
|   set service dhcp-server high-availability status 'primary' | ||||
| 
 | ||||
| **Secondary** | ||||
| 
 | ||||
| .. code-block:: none | ||||
| 
 | ||||
|   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' | ||||
|   set service dhcp-server high-availability mode 'active-active' | ||||
|   set service dhcp-server high-availability source-address '192.168.189.253' | ||||
|   set service dhcp-server high-availability name 'dhcp-primary' | ||||
|   set service dhcp-server high-availability remote '192.168.189.252' | ||||
|   set service dhcp-server high-availability status 'secondary' | ||||
| 
 | ||||
| .. _dhcp-server:v4_example_raw: | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user