2024-06-03
This commit is contained in:
		
							
								
								
									
										61
									
								
								_-Review/kea.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										61
									
								
								_-Review/kea.md
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,61 @@ | ||||
| --- | ||||
| type: "note" | ||||
| created: "2024-04-09T00:24:33.543Z" | ||||
| updated: "2024-04-09T00:24:37.118Z" | ||||
| --- | ||||
|  | ||||
| # kea | ||||
|  | ||||
| ```bash | ||||
| # https://www.techtutorials.tv/sections/linux/how-to-install-and-configure-kea-dhcp-server/ | ||||
| echo > /etc/kea/kea-dhcp4.conf && nano /etc/kea/kea-dhcp4.conf | ||||
| ``` | ||||
|  | ||||
| ```json | ||||
| { | ||||
|   "Dhcp4": { | ||||
|     "interfaces-config": { | ||||
|       "interfaces": [ | ||||
|         "eth0" | ||||
|       ] | ||||
|     }, | ||||
|     "lease-database": { | ||||
|       "type": "memfile", | ||||
|       "persist": true, | ||||
|       "name": "/var/lib/kea/kea-leases4.csv", | ||||
|       "lfc-interval": 3600 | ||||
|     }, | ||||
|     "renew-timer": 15840, | ||||
|     "rebind-timer": 27720, | ||||
|     "valid-lifetime": 31680, | ||||
|     "option-data": [ | ||||
|       { | ||||
|         "name": "domain-name-servers", | ||||
|         "data": "8.8.8.8, 1.1.1.1" | ||||
|       }, | ||||
|       { | ||||
|         "name": "domain-search", | ||||
|         "data": "192.168.42.1" | ||||
|       } | ||||
|     ], | ||||
|     "subnet4": [ | ||||
|       { | ||||
|         "subnet": "192.168.42.0/25", | ||||
|         "pools": [ | ||||
|           { | ||||
|             "pool": "192.168.42.19 - 192.168.42.82" | ||||
|           } | ||||
|         ], | ||||
|         "option-data": [ | ||||
|           { | ||||
|             "name": "routers", | ||||
|             "data": "192.168.42.1" | ||||
|           } | ||||
|         ] | ||||
|         // Add reservations here | ||||
|       } | ||||
|       // Add subnets here | ||||
|     ] | ||||
|   } | ||||
| } | ||||
| ``` | ||||
		Reference in New Issue
	
	Block a user