Site Tools


dhcp_reservation

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_reservation [2021/05/06 17:24] pedrodhcp_reservation [2023/06/23 16:12] (current) – [IPT] -update broken Device List link hogwild
Line 1: Line 1:
-====== DHCP Reservation (prev. Static DHCP/ARP/IPT) ======+====== DHCP Reservation ====== 
 + 
 +The DHCP Reservation menu contains settings to configure DHCP Reservations, Static ARP bindings and enabling/disabling of IP Traffic monitoring for clients with the above mappings.
  
-The Static DHCP/ARP/IPT menu contains settings to configure Static DHCP and Static ARP address assignments. It's divided into sections, including Static DHCP Reservations, Static ARP cache settings and enabling/disabling of IP Traffic monitoring for Static DHCP/Static ARP mapped clients. 
  
 ===== DHCP Reservation ===== ===== DHCP Reservation =====
  
-Since FreshTomato version 2020.8, what was previously called Static DHCP is now called DHCP Reservation. Please see the last paragraph in this section for further clarification and differentiation of terminology.+Since FreshTomato version 2020.8, what was previously called Static DHCP is now called DHCP Reservation. Please see "Inconsistent Terminology" in this section for further clarification and differentiation of terminology.
  
 DHCP Reservation is a simple way to ensure that FreshTomato offers certain client devices the same IP address each time they request a lease. Simply enter the MAC address for a client device (which you can find on the Device List), into the **MAC Address** field, enter the **IP Address** (and optionally, **Hostname**) you want to assign to this device into those respective fields and click Save. NOTE that you don't need to check the **Bound to** button. Only check the **Bound to** button if you want to enable Static ARP binding. FreshTomato then offers that IP address (and hostname) to the MAC address you specified every time it offers a lease. This means that, in general, the client device will always get that IP address //whenever it requests one//. That last part, “whenever it requests one” is the key part here. See the explanation of the term Hostname later on this page. DHCP Reservation is a simple way to ensure that FreshTomato offers certain client devices the same IP address each time they request a lease. Simply enter the MAC address for a client device (which you can find on the Device List), into the **MAC Address** field, enter the **IP Address** (and optionally, **Hostname**) you want to assign to this device into those respective fields and click Save. NOTE that you don't need to check the **Bound to** button. Only check the **Bound to** button if you want to enable Static ARP binding. FreshTomato then offers that IP address (and hostname) to the MAC address you specified every time it offers a lease. This means that, in general, the client device will always get that IP address //whenever it requests one//. That last part, “whenever it requests one” is the key part here. See the explanation of the term Hostname later on this page.
 +
 === Configuring Static DHCP === === Configuring Static DHCP ===
  
 When assigning Static DHCP leases, you should use an IP address within FreshTomato's main subnet, but outside the normal DHCP pool scope (assignment range). This avoids potential IP address conflicts. For example, if you have the DHCP server set to assign addresses in the range of 10.0.1.1 - 10.0.1.100, then choosing Static DHCP assignments of 10.0.1.101 - 10.0.1.254 might work well. When assigning Static DHCP leases, you should use an IP address within FreshTomato's main subnet, but outside the normal DHCP pool scope (assignment range). This avoids potential IP address conflicts. For example, if you have the DHCP server set to assign addresses in the range of 10.0.1.1 - 10.0.1.100, then choosing Static DHCP assignments of 10.0.1.101 - 10.0.1.254 might work well.
  
-If you want to assign multiple hostnames to the same IP address (for example, you want the the server 10.0.1.3 to be known as both “galaxy” and “mail”, you must separate them in the hostname field with a space. A space isn't a valid DHCP Hostname character, so you must use a hyphen for a single, multi-word hostname like “My-PC”. If a client device has multiple network interfaces (for example, Ethernet and Wi-Fi) with different MAC addresses, there's no way to assign the same hostname to both devices. You will get a “Duplicate name” error.+If you want to assign multiple hostnames to the same IP address (for example, you want the the server 10.0.1.3 to be known as both “galaxy” and “mail”, you must separate them in the hostname field with a space. A space isn't a valid DHCP Hostname character, so you must use a hyphen for a single, multi-word hostname like “My-PC”. If a client device has multiple network interfaces (for example, Ethernet and Wi-Fi) with different MAC addresses, it might not have the hostname properly assigned to both devices. You could get a “Duplicate name” error.[(ref_1)]
  
 If FreshTomato can't find a match for the device's Hostname (first priority) or [[https://en.wikipedia.org/wiki/MAC_address|MAC address]] (second priority), the server may fall back to either Dynamic or Automatic allocation. For an explanation of the term //Hostname//, see later on this page. If FreshTomato can't find a match for the device's Hostname (first priority) or [[https://en.wikipedia.org/wiki/MAC_address|MAC address]] (second priority), the server may fall back to either Dynamic or Automatic allocation. For an explanation of the term //Hostname//, see later on this page.
Line 23: Line 25:
  
 Even if everything else were working properly, only DHCP lease //offers// are made static. The router's IP→MAC neighbour cache (aka ARP cache) is still filled in dynamically using ARP broadcasts. That means that unless we add something else, FreshTomato is relying on client devices to be honest about their MAC addresses. The source of ARP mapping information is assumed to be “honest” and accurate, even though that source is often the network clients themselves. In these circumstances, there's not much stopping unathorized or malicious clients from pretending to be a different MAC address (ARP spoofing). ARP spoofing could even include spoofing the router or gateway's MAC address. All this could have serious consequences. This is where Static ARP becomes useful. Even if everything else were working properly, only DHCP lease //offers// are made static. The router's IP→MAC neighbour cache (aka ARP cache) is still filled in dynamically using ARP broadcasts. That means that unless we add something else, FreshTomato is relying on client devices to be honest about their MAC addresses. The source of ARP mapping information is assumed to be “honest” and accurate, even though that source is often the network clients themselves. In these circumstances, there's not much stopping unathorized or malicious clients from pretending to be a different MAC address (ARP spoofing). ARP spoofing could even include spoofing the router or gateway's MAC address. All this could have serious consequences. This is where Static ARP becomes useful.
 +
 === Inconsistent Terminology === === Inconsistent Terminology ===
  
 Technically, FreshTomato's Static DHCP function is a form of //DHCP Reservation// or //DHCP Manual Allocation//. Confusion sometimes occurs because of imprecise or inconsistent terminology. First, it is sometimes confused with //Static IP//. It is not that. Static IP is the setting of an IP address manually from the client device itself. By contrast, Static DHCP involves configuring an assigned IP address for the client device within (FreshTomato's) DHCP server (for when client devices request a DHCP lease). Technically, FreshTomato's Static DHCP function is a form of //DHCP Reservation// or //DHCP Manual Allocation//. Confusion sometimes occurs because of imprecise or inconsistent terminology. First, it is sometimes confused with //Static IP//. It is not that. Static IP is the setting of an IP address manually from the client device itself. By contrast, Static DHCP involves configuring an assigned IP address for the client device within (FreshTomato's) DHCP server (for when client devices request a DHCP lease).
  
-Second, Static DHCP is also given different names by different hardware vendors. This feature is called //static DHCP assignment// in DD-WRT, //fixed-address// in the Linux dhcp daemon (dhcpd) documentation, //Address Reservation// by Netgear, //DHCP Reservation// or //Static DHCP// by Cisco and Linksys and //IP address reservation// or //MAC/IP address binding// by other router vendors. Hence, one should be precise here, to reduce confusion.+Second, Static DHCP is also given different names by different hardware vendors. To make things more confusing, this feature is called //static DHCP assignment// in DD-WRT, //fixed-address// in the Linux dhcp daemon (dhcpd) documentation, //Address Reservation// by Netgear, //DHCP Reservation// or //Static DHCP// by Cisco and Linksys and //IP address reservation// or //MAC/IP address binding// by other router vendors. Hence, one should be precise here, to reduce confusion. 
 + 
 +---- 
 + 
 +~~REFNOTES~~ 
 + 
 +[(ref_1)] 
 + 
 +FreshTomato will use input for 2 MAC addresses per IP/hostname, if the advice here is followed: 
 + 
 +[[https://www.linksysinfo.org/index.php?threads/official-freshtomato-org-website.75333/post-322397]] 
 + 
 ===== Static ARP ===== ===== Static ARP =====
  
Line 69: Line 84:
 ===== IPT ===== ===== IPT =====
  
-IPT stands for IP Traffic Monitoring. Every client device not marked as 'Disconnected' on the Status/[[:device_list|Device List]] menu will be on the IP Traffic Monitoring list. Enabling this checkbox puts client devices on the IP Traffic Monitoring list even if they are inactive or disconnected.+IPT stands for IP Traffic Monitoring. Every client device not marked as 'Disconnected' on the //Status///[[status-devices|Device List]] menu will be on the IP Traffic Monitoring list. Enabling this checkbox puts client devices on the IP Traffic Monitoring list even if they are inactive or disconnected.
  
  
dhcp_reservation.1620318243.txt.gz · Last modified: 2021/05/06 17:24 by pedro