2020-03-06 15:53:22 +00:00
< div class = " tab-pane active " id = " server-settings " >
< h4 class = " mt-3 " > DHCP server settings </ h4 >
< div class = " row " >
2024-10-24 07:06:13 +00:00
< div class = " mb-3 col-md-6 " >
2020-03-06 15:53:22 +00:00
< label for = " code " > Interface </ label >
2020-11-21 13:52:20 +00:00
< ? php SelectorOptions ( 'interface' , $interfaces , $ap_iface , 'cbxdhcpiface' , 'loadInterfaceDHCPSelect' , $DHCPDisabled ); ?>
2020-03-06 15:53:22 +00:00
</ div >
</ div >
2020-11-15 10:51:51 +00:00
2020-11-26 17:16:54 +00:00
< h5 class = " mt-1 " >< ? php echo _ ( " Adapter IP Address Settings " ); ?> </h5>
< div class = " row " >
2024-10-24 07:06:13 +00:00
< div class = " mb-3 col-md-6 " >
2024-10-25 06:13:14 +00:00
< div class = " btn-group " role = " group " data - bs - toggle = " buttons " >
2020-11-27 16:26:25 +00:00
< label class = " btn btn-light active " checked onclick = " setDHCPToggles(false) " >
< input type = " radio " name = " adapter-ip " id = " chkdhcp " autocomplete = " off " > DHCP
2020-11-26 17:16:54 +00:00
</ label >
2020-11-27 16:26:25 +00:00
< label class = " btn btn-light " onclick = " setDHCPToggles(true) " >
< input type = " radio " name = " adapter-ip " id = " chkstatic " autocomplete = " off " > Static IP
2020-11-26 17:16:54 +00:00
</ label >
</ div >
</ div >
</ div >
< div class = " row " >
2024-10-24 07:06:13 +00:00
< div class = " mb-3 col-md-6 " >
< div class = " form-check form-switch " >
< input class = " form-check-input " id = " chkfallback " type = " checkbox " name = " Fallback " value = " 1 " aria - describedby = " fallback-description " >
< label class = " form-check-label " for = " chkfallback " >< ? php echo _ ( " Enable fallback to static option " ) ?> </label>
2020-11-26 17:16:54 +00:00
</ div >
< p class = " mb-0 " id = " fallback-description " >
< small >< ? php echo _ ( " Enable this option to configure a static profile and fall back to it when DHCP lease fails. " ) ?> </small>
</ p >
</ div >
</ div >
< h5 class = " mt-1 " > Static IP options </ h5 >
< div class = " row " >
2024-10-24 07:06:13 +00:00
< div class = " mb-3 col-md-6 " required >
2020-11-26 17:16:54 +00:00
< label for = " code " >< ? php echo _ ( " IP Address " ); ?> </label>
2023-11-09 22:48:39 +00:00
< input type = " text " class = " form-control ip_address " id = " txtipaddress " name = " StaticIP " maxlength = " 15 " />
2023-11-09 15:32:24 +00:00
< div class = " invalid-feedback " >
< ? php echo _ ( " Please provide a valid IP Address. " ); ?>
</ div >
2020-11-26 17:16:54 +00:00
</ div >
</ div >
2020-11-30 12:10:44 +00:00
< div class = " row " >
2024-10-24 07:06:13 +00:00
< div class = " mb-3 col-md-6 " >
2020-11-30 12:10:44 +00:00
< label for = " code " >< ? php echo _ ( " Subnet Mask " ); ?> </label>
2023-11-09 22:48:39 +00:00
< input type = " text " class = " form-control ip_address " id = " txtsubnetmask " name = " SubnetMask " maxlength = " 15 " />
2023-11-09 15:32:24 +00:00
< div class = " invalid-feedback " >
< ? php echo _ ( " Please provide a valid Subnet mask. " ); ?>
</ div >
2020-11-30 12:10:44 +00:00
</ div >
</ div >
2020-11-26 17:16:54 +00:00
< div class = " row " >
2024-10-24 07:06:13 +00:00
< div class = " mb-3 col-md-6 " >
2020-11-26 17:16:54 +00:00
< label for = " code " >< ? php echo _ ( " Default gateway " ); ?> </label>
2023-11-09 22:48:39 +00:00
< input type = " text " class = " form-control ip_address " id = " txtgateway " name = " DefaultGateway " maxlength = " 15 " />
2023-11-09 15:32:24 +00:00
< div class = " invalid-feedback " >
< ? php echo _ ( " Please provide a valid Default gateway. " ); ?>
</ div >
2020-11-26 17:16:54 +00:00
</ div >
</ div >
2021-04-02 23:43:42 +00:00
< div class = " row " >
2024-10-24 07:06:13 +00:00
< div class = " mb-3 col-md-6 " >
< div class = " form-check form-switch " >
< input class = " form-check-input " id = " default-route " type = " checkbox " name = " DefaultRoute " value = " 1 " aria - describedby = " default-route-description " >
< label class = " form-check-label " for = " default-route " >< ? php echo _ ( " Install a default route for this interface " ) ?> </label>
2021-04-02 23:43:42 +00:00
</ div >
< p class = " mb-0 " id = " default-route-description " >
< small >< ? php echo _ ( " This toggles the <code>gateway</code>/<code>nogateway</code> option for this interface in the DHCPCD configuration. " ) ?> </small>
</ p >
</ div >
</ div >
2023-05-19 11:18:25 +00:00
< div class = " row " >
2024-10-24 07:06:13 +00:00
< div class = " mb-3 col-md-6 " >
< div class = " form-check form-switch " >
< input class = " form-check-input " id = " nohook-wpa-supplicant " type = " checkbox " name = " NoHookWPASupplicant " value = " 1 " aria - describedby = " hook-wpa-supplicant-description " >
< label class = " form-check-label " for = " nohook-wpa-supplicant " >< ? php echo _ ( " Disable wpa_supplicant dhcp hook for this interface " ) ?> </label>
2024-10-25 08:19:19 +00:00
< i class = " fas fa-question-circle text-muted " data - bs - toggle = " tooltip " data - bs - placement = " auto " title = " <?php echo _( " If you manage wireless connections with wpa_supplicant itself , the hook may create unwanted connection events . This option disables the hook . " ); ?> " ></ i >
2023-05-19 11:18:25 +00:00
</ div >
< p class = " mb-0 " id = " hook-wpa-supplicant-description " >
< small >< ? php echo _ ( " This toggles the <code>nohook wpa_supplicant</code> option for this interface in the DHCPCD configuration. " ) ?> </small>
</ p >
</ div >
</ div >
2020-11-26 17:16:54 +00:00
< h5 class = " mt-1 " > DHCP options </ h5 >
2020-11-15 10:51:51 +00:00
< div class = " row " >
2024-10-24 07:06:13 +00:00
< div class = " mb-3 col-md-6 " >
2020-11-15 10:51:51 +00:00
< div class = " input-group " >
2024-10-24 07:06:13 +00:00
< div class = " form-check form-switch " >
< input class = " form-check-input " id = " dhcp-iface " type = " checkbox " name = " dhcp-iface " value = " 1 " aria - describedby = " dhcp-iface-description " >
< label class = " form-check-label " for = " dhcp-iface " >< ? php echo _ ( " Enable DHCP for this interface " ) ?> </label>
2020-11-15 10:51:51 +00:00
</ div >
2020-11-19 12:36:02 +00:00
< p class = " mb-0 " id = " dhcp-iface-description " >
2020-11-26 17:16:54 +00:00
< small >< ? php echo _ ( " Enable this option if you want RaspAP to assign IP addresses to clients on the selected interface. A static IP address is required for this option. " ) ?> </small>
2020-11-15 10:51:51 +00:00
</ p >
</ div >
</ div >
</ div >
2020-11-26 17:16:54 +00:00
2020-03-06 15:53:22 +00:00
< div class = " row " >
2024-10-24 07:06:13 +00:00
< div class = " mb-3 col-md-6 " >
2020-03-06 15:53:22 +00:00
< label for = " code " >< ? php echo _ ( " Starting IP Address " ); ?> </label>
2023-11-09 22:48:39 +00:00
< input type = " text " class = " form-control ip_address " id = " txtrangestart " name = " RangeStart " maxlength = " 15 " />
2023-11-09 15:32:24 +00:00
< div class = " invalid-feedback " >
< ? php echo _ ( " Please provide a valid Starting IP Address. " ); ?>
</ div >
2020-03-06 15:53:22 +00:00
</ div >
</ div >
< div class = " row " >
2024-10-24 07:06:13 +00:00
< div class = " mb-3 col-md-6 " >
2020-03-06 15:53:22 +00:00
< label for = " code " >< ? php echo _ ( " Ending IP Address " ); ?> </label>
2023-11-09 22:48:39 +00:00
< input type = " text " class = " form-control ip_address " id = " txtrangeend " name = " RangeEnd " maxlength = " 15 " />
2023-11-09 15:32:24 +00:00
< div class = " invalid-feedback " >
< ? php echo _ ( " Please provide a valid Ending IP Address. " ); ?>
</ div >
2020-03-06 15:53:22 +00:00
</ div >
</ div >
< div class = " row " >
2024-10-24 07:06:13 +00:00
< div class = " mb-3 col-xs-3 col-sm-3 " >
2020-03-06 15:53:22 +00:00
< label for = " code " >< ? php echo _ ( " Lease Time " ); ?> </label>
2020-11-26 17:16:54 +00:00
< input type = " text " class = " form-control " id = " txtrangeleasetime " name = " RangeLeaseTime " />
2023-11-09 15:32:24 +00:00
< div class = " invalid-feedback " >
< ? php echo _ ( " Please provide a valid Lease Time. " ); ?>
</ div >
2020-03-06 15:53:22 +00:00
</ div >
< div class = " col-xs-3 col-sm-3 " >
< label for = " code " >< ? php echo _ ( " Interval " ); ?> </label>
2024-10-24 07:06:13 +00:00
< select id = " cbxrangeleasetimeunits " name = " RangeLeaseTimeUnits " class = " form-select " >
2020-11-16 18:20:39 +00:00
< option value = " m " >< ? php echo _ ( " Minute(s) " ); ?> </option>
< option value = " h " >< ? php echo _ ( " Hour(s) " ); ?> </option>
< option value = " d " >< ? php echo _ ( " Day(s) " ); ?> </option>
2023-01-17 17:10:13 +00:00
< option value = " i " >< ? php echo _ ( " Infinite " ); ?> </option>
2020-03-06 15:53:22 +00:00
</ select >
2023-11-09 15:32:24 +00:00
< div class = " invalid-feedback " >
< ? php echo _ ( " Please provide a valid Interval. " ); ?>
</ div >
2020-03-06 15:53:22 +00:00
</ div >
</ div >
< div class = " row " >
2024-10-24 07:06:13 +00:00
< div class = " mb-3 col-md-6 " >
2020-03-06 15:53:22 +00:00
< label for = " code " >< ? php echo _ ( " DNS Server " ); ?> 1</label>
2020-11-26 17:16:54 +00:00
< input type = " text " class = " form-control " id = " txtdns1 " name = " DNS1 " />
2020-03-06 15:53:22 +00:00
</ div >
</ div >
< div class = " row " >
2024-10-24 07:06:13 +00:00
< div class = " mb-3 col-md-6 " >
2020-03-06 15:53:22 +00:00
< label for = " code " >< ? php echo _ ( " DNS Server " ); ?> 2</label>
2020-11-26 17:16:54 +00:00
< input type = " text " class = " form-control " id = " txtdns2 " name = " DNS2 " />
</ div >
</ div >
< div class = " row " >
2024-10-24 07:06:13 +00:00
< div class = " mb-3 col-md-6 " >
2020-11-26 17:16:54 +00:00
< label for = " <metric " >< ? php echo _ ( " Metric " ) ?> </label>
< input type = " text " class = " form-control " id = " txtmetric " name = " Metric " >
2020-03-06 15:53:22 +00:00
</ div >
</ div >
</ div ><!-- /. tab - pane -->