Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
dhcp_server [15 July 2025 / 18:31:16] kadekdhcp_server [10 October 2025 / 12:59:59] (current) kadek
Line 14: Line 14:
   sudo nano /etc/default/isc-dhcp-server   sudo nano /etc/default/isc-dhcp-server
  
-  * For example, if your DHCP interface is enp0s8, update the line as follows:+  * For example, if your DHCP interface is tap_vpn, update the line as follows: 
 + 
 +  INTERFACESv4="tap_vpn"
  
-  INTERFACESv4="enp0s8" 
-    
    * Configure the DHCP setting by editing the config file:    * Configure the DHCP setting by editing the config file:
  
Line 38: Line 38:
   default-lease-time 600;   default-lease-time 600;
   max-lease-time 7200;   max-lease-time 7200;
 +
 +  * Assign IP address to the device before started the DHCP service (this is mandatory):
 +
 +  sudo ip addr add 192.168.30.1/24 dev tap_vpn
  
   * Start the service:   * Start the service:
Line 51: Line 55:
   sudo systemctl status isc-dhcp-server   sudo systemctl status isc-dhcp-server
  
-====== Troubleshooting Common Issues ======+==== Troubleshooting Common Issues ====
  
   * Check the DHCP server logs for any error messages:   * Check the DHCP server logs for any error messages: