Template:Networking rutos manual dhcp: Difference between revisions
No edit summary |
No edit summary |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 94: | Line 94: | ||
[[File:Networking_rutos_manual_dhcpv4_server_v1.png|border|class=tlt-border]] | [[File:Networking_rutos_manual_dhcpv4_server_v1.png|border|class=tlt-border]] | ||
<b>Note:</b>`dnsmasq` does not lease IPv4 addresses ending with .0 and .255. | |||
The information button shows the number of dynamic and static leases: | The information button shows the number of dynamic and static leases: | ||
| Line 125: | Line 127: | ||
<tr> | <tr> | ||
<td><span style="color:red">Start IP</span></td> | <td><span style="color:red">Start IP</span></td> | ||
<td>integer [1.. | <td>integer [1..254]; default: <b>100</b></td> | ||
<td>Type an IP address to serve as the start of the IP range that DHCP will use to assign IP addresses.</td> | <td>Type an IP address to serve as the start of the IP range that DHCP will use to assign IP addresses.</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td><span style="color:red">End IP</span></td> | <td><span style="color:red">End IP</span></td> | ||
<td>integer [1.. | <td>integer [1..254]; default: <b>254</b></td> | ||
<td>Type an IP address to serve as the end of the IP range that DHCP will use to assign IP addresses.</td> | <td>Type an IP address to serve as the end of the IP range that DHCP will use to assign IP addresses.</td> | ||
</tr> | </tr> | ||
| Line 224: | Line 226: | ||
Refer to the table below for information on the <b>IPv6 Settings</b> section. | Refer to the table below for information on the <b>IPv6 Settings</b> section. | ||
[[File: | [[File:Networking_rutos_manual_dhcpv6_server_configuration_v1.png|border|class=tlt-border]] | ||
<table class="nd-mantable"> | <table class="nd-mantable"> | ||
| Line 240: | Line 242: | ||
<td>Router Advertisement Service</td> | <td>Router Advertisement Service</td> | ||
<td>Disabled | <span style="color:blue">Server mode</span> | Reley mode | <span style="color:blue">Hybrid mode</span>; default: <b>Server mode</b></td> | <td>Disabled | <span style="color:blue">Server mode</span> | Reley mode | <span style="color:blue">Hybrid mode</span>; default: <b>Server mode</b></td> | ||
<td | <td>Possible variants: | ||
<li><b>Disabled:</b> Do not advertise any devices as router</li> | <li><b>Disabled:</b> Do not advertise any devices as router</li> | ||
<li><b>Server:</b> Advertise this device as a router</li> | <li><b>Server:</b> Advertise this device as a router</li> | ||
| Line 249: | Line 251: | ||
<td>DHCPv6-Service</td> | <td>DHCPv6-Service</td> | ||
<td>Disabled | <span style="color:brown">Server mode</span> | Relay mode | <span style="color:brown">Hybrid mode</span>; default: <b>Server mode</b></td> | <td>Disabled | <span style="color:brown">Server mode</span> | Relay mode | <span style="color:brown">Hybrid mode</span>; default: <b>Server mode</b></td> | ||
<td | <td>Possible variants: | ||
<li><b>Disabled:</b> Do not automatically assign IPv6 addresses</li> | <li><b>Disabled:</b> Do not automatically assign IPv6 addresses</li> | ||
<li><b>Server:</b> This device assigns IPv6 addresses</li> | <li><b>Server:</b> This device assigns IPv6 addresses</li> | ||
| Line 257: | Line 259: | ||
<tr> | <tr> | ||
<td><span style="color:brown">DHCPv6-Mode</span></td> | <td><span style="color:brown">DHCPv6-Mode</span></td> | ||
<td> | <td>Auto | Prefer stateless | Prefer stateful; default: <b>Auto</b></td> | ||
<td> | <td>Configure how clients will get IPv6 addresses. <b>Possible variants:</b> | ||
<li><b>Prefer stateless:</b> Prefer client to use SLAAC (Stateless Address Autoconfiguration) to get an IPv6 address. This can be ignored by some devices. Disable DHCPv6-Service to enforce stateless mode.</li> | |||
<li><b>Auto:</b> The client will use its preferred way to get an IPv6 address.</li> | |||
<li><b>Prefer stateful:</b> Prefer client to use DHCPv6 to get an IPv6 address. This can be ignored by some devices without DHCPv6 support like android.</li> | |||
</td> | |||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td>NDP Proxy</td> | <td>NDP Proxy</td> | ||
<td>Disabled | Relay mode | Hybrid mode; default: <b>Disabled</b></td> | <td>Disabled | Relay mode | Hybrid mode; default: <b>Disabled</b></td> | ||
<td | <td>Possible variants: | ||
<li><b>Disabled:</b> Do not proxy any NDP packets</li> | <li><b>Disabled:</b> Do not proxy any NDP packets</li> | ||
<li><b>Relay:</b> Forward NDP packets between network devices and the parent interface</li> | <li><b>Relay:</b> Forward NDP packets between network devices and the parent interface</li> | ||
Latest revision as of 08:33, 27 November 2025
The information in this page is updated in accordance with firmware version .
Summary
The DHCP page is used to to set up DHCP settings, which are used to connect device with external networks.
This manual page provides an overview of DHCP page in {{{name}}} devices.
Static Leases
Static IP leases are used to reserve specific IP addresses for specific devices by binding them to their MAC address. This is useful when you have a stationary device connected to your network that you need to reach frequently, e.g., printer, IP phone, etc.
This page displays static IP leases currently existing on this device.
To make the Static Lease section visible, set interface protocol to Static.
The Static Lease list is empty by default. To add a new Static Lease click the 'Add' button.
Appears static lease, which should look similar to this:
| Field | Value | Description |
|---|---|---|
| MAC | mac; default: none | MAC address of a device that will connect to this network interface. Possible variants: MAC address: 01:23:45:56:78:9a, Wildcard: 01:23:45:56:*:* |
| IP | ip; default: none | The IP address that will be reserved for the specified device. |
| Hostname | string; default: none | Name of static lease. |
Additionally there is a IPv6 tab for IPv6 static leases.
| Field | Value | Description |
|---|---|---|
| DUID | DUID; default: none | DHCP unique identifier is used by DHCPv6 to identify device. Similar to MAC that is used by DHCPv4. |
| Host ID | ipv6; default: none | Used to define IPv6 address that will be statically leased. To get it from the IPv6 address remove the IPv6 prefix and all semicolons. |
| Hostname | string; default: none | Name of static lease. |
After you click 'Save & Apply' static leases will be saved.
DHCP server configuration
A DHCP (Dynamic Host Configuration Protocol) server is a service that can automatically configure the TCP/IP settings of any device that requests such a service. If you connect a device that has been configured to obtain an IP address automatically, the DHCP server will lease out an IP address from the available IP pool and the device will be able to communicate within the private network.
IPv4
To edit lan interface DHCPv4 settings click the 'Edit' button.
Note:`dnsmasq` does not lease IPv4 addresses ending with .0 and .255.
The information button shows the number of dynamic and static leases:
DHCPv4 general setup
The General Setup section is used to set up the main operating parameters of the DHCP server.
| Field | Value | Description |
|---|---|---|
| Enable | on | off; default: on | Turns the DHCPv4 server on or off. |
| DHCPv4 mode | Server | Relay*; default: Server | Specifies DHCPv4 mode
|
| Start IP | integer [1..254]; default: 100 | Type an IP address to serve as the start of the IP range that DHCP will use to assign IP addresses. |
| End IP | integer [1..254]; default: 254 | Type an IP address to serve as the end of the IP range that DHCP will use to assign IP addresses. |
| Lease time | integer [1..999999] | infinite*; default: 12integer [2..999999]**integer [120..999999]*** | A DHCP lease will expire after the amount of time specified in this field and the device that was using the lease will have to request a new one. However, if the device stays connected, its lease will be renewed after half of the specified amount of time passes (e.g., if lease time is 12 hours, then every 6 hours the device will ask the DHCP server to renew its lease).The minimal amount of time that can be specified is 2 minutes. *Infinite option DHCP address will never expire. **If selected Units is Minutes. ***If selected Units is seconds. |
| DHCP server | ip; default: none | Specifies DHCP server's IP address, which directs any requests into server. |
Advanced settings
Refer to the table below for information on the Advanced Settings section.
| Field | Value | Description |
|---|---|---|
| Dynamic DHCP | off | on; default: on | Dynamically allocate DHCP addresses for clients. If disabled, only clients having static leases will be served. |
| Force | off | on; default: off | Force DHCP on this network even if another server is detected. |
| IPv4-Netmask | netmask; default: none | Override the netmask sent to clients. Normally it is calculated from the subnet that is served. |
| Custom DHCP Options | -(interactive button) | Custom DHCP options are number and value pairs used to configure advanced DHCP functionality. It does not configure DHCP ipv6! |
| Force DHCP options | off | on; default: off | Force DHCP options to be sent even if it's not requested. |
Custom DHCP options
Custom DHCP options are number and value pairs used to configure advanced DHCP functionality. It does not configure DHCP ipv6!. The DHCP options modal is used to 'Add', 'Delete', 'Save' multiple options.
| Field | Value | Description |
|---|---|---|
| Add | -(interactive button) | To add custom DHCP options. |
| Option code | Custom | Time offset (2) | Router (3) | DNS (6) | Domain name (15) | NTP server (42) | +Add new; default: Time offset (2) | Standartized DHCP option code. |
| Option value | integer; default: none | Value that will be set for selected option. |
| Do not send | off | on; default: off | Force this value to not be sent. |
IPv6
To edit lan interface DHCPv6 settings click the 'Edit' button.
DHCP Server: IPv6 Settings
Refer to the table below for information on the IPv6 Settings section.
| Field | Value | Description |
|---|---|---|
| Enable | off | on: on | Turns the DHCPv6 server on or off. |
| Router Advertisement Service | Disabled | Server mode | Reley mode | Hybrid mode; default: Server mode | Possible variants:
|
| DHCPv6-Service | Disabled | Server mode | Relay mode | Hybrid mode; default: Server mode | Possible variants:
|
| DHCPv6-Mode | Auto | Prefer stateless | Prefer stateful; default: Auto | Configure how clients will get IPv6 addresses. Possible variants:
|
| NDP Proxy | Disabled | Relay mode | Hybrid mode; default: Disabled | Possible variants:
|
| Always announce default router | off | on; default: off | Announce as default router even if no public prefix is available. |
| Announced DNS server | strin; default: none | Supplements DHCP-assigned DNS server entries with ones specified in this field. |
| Announced DNS domains | string; default: none | DNS domain handed out to DHCP clients. |
* When an interface is set to act as a DHCP Relay, it redirects all received DHCP request messages to another specified DHCP server:
Note: devices with EG060K-EA modem module support DHCP Relay over mobile connection.
[[Category:{{{name}}} Network section]]











