Differences
This shows you the differences between two versions of the page.
— |
blocks:server:advanced_server_configuration:dhcp_server [2023-03-14 10:43] (current) mattias created |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ===== DHCP Server ===== | ||
+ | |||
+ | The DHCP server configuration is found under Servers/ | ||
+ | |||
+ | {{: | ||
+ | |||
+ | Scroll down a bit and click the "Edit Network Interface" | ||
+ | |||
+ | {{: | ||
+ | |||
+ | :!: The exact name shown for your Ethernet interface (in the illustration above " | ||
+ | |||
+ | Return to the "DHCP Server" | ||
+ | |||
+ | {{: | ||
+ | |||
+ | As you may recall from the [[first_start# | ||
+ | |||
+ | Here, you also specify the range of addresses allocated to dynamic clients. You typically want a small number of addresses reserved for network devices that need a fixed IP address (such as the BLOCKS Server itself). In this example, we're allowing the DHCP server to dynamically allocate address in the 10.2.5.1 through 10.2.16.254 range, giving us loads of dynamic adresses, while all addresses below 10.2.5.1 can be used for fixed IP address, as those are off limits for the DHCP server. You can adjust those numbers as you see fit. Click the green " | ||
+ | |||
+ | ==== Client Options ==== | ||
+ | |||
+ | In addition to merely handing out dynamically assigned IP addresses to clients, a DHCP server can also inform clients of other important pieces of information. Those are called " | ||
+ | |||
+ | {{: | ||
+ | |||
+ | The following options have been specified here. Again, you may need to adjust those as appropriate if you change the server' | ||
+ | |||
+ | * **Subnet mask**. Specifies the type of subnet being used (in this case a B-class). | ||
+ | * **Domain name**. Informs clients about the default domain name, which in this case refers to the name to be given to the BLOCK Server. | ||
+ | * **Broadcast address**. Consists of the base network address with 255 in the last segment, and is used for some specialized network functions. | ||
+ | * **DNS server**. The IP address of the DNS to be used by DHCP clients. The address shown here is the address of the BLOCKS Server itself, which we'll configure to use as a DNS later in this article. Leave empty if you don't want to use a DHS server, or modify as appropriate if you prefer to use another DNS server already available to you. | ||
+ | * **Default router**. Enter the router address to be used by clients if you want them to have access to the internet or other " | ||
+ | * **Boot filename**. Set to " | ||
+ | |||
+ | Click the green " | ||
+ | |||
+ | :!: If your DHCP server is already up and running, you need to click the green "Start Server" | ||
+ | |||
+ | ==== Enabling and Starting the DHCP Server ==== | ||
+ | |||
+ | To start your DHCP server, and to make sure that it will start automatically if the server is restarted, select " | ||
+ | |||
+ | {{: | ||
+ | |||
+ | ==== Verify Operation of the DHCP Server ==== | ||
+ | |||
+ | Once the DHCP server is properly configured and started, connect another computer to the same network, and set it to use " | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | If you don't get any values in those fields, here are some points to check | ||
+ | * Check that the DHCP server is indeed running (see above). | ||
+ | * Ensure that your separate computer is connected to the same network as the server (open a terminal window and type "ping 10.2.0.10" | ||
+ | * If you just made changes to your separate computer' | ||
+ | |||
+ | :!: Macs may take 1-2 minutes to connect properly to DHCP (showing a "green light" in the settings) if no internet connection can be found, which will be the case here since we're on a small local test network. | ||
+ | |||
+ | ==== Editing DHCP Server settings ==== | ||
+ | |||
+ | If you're using the built-in DHCP server, you need to change its settings if you change the IP address of the server. | ||
+ | |||
+ | * Use Webmin. | ||
+ | * Select //DHCP server// under the Servers heading on the left hand side. | ||
+ | * Click the icon for your subnet (initially named 10.2.0.0) | ||
+ | * Change its settings to match your network. | ||
+ | |||
+ | As an example, to configure a lass C network with the base address 192.168.0.0: | ||
+ | |||
+ | * Set the " | ||
+ | * Set " | ||
+ | * Set " | ||
+ | * Click save. | ||
+ | |||
+ | {{: | ||
+ | |||
+ | * Back on the main "DHCP Server" | ||
+ | * Specify " | ||
+ | * Click Save. | ||
+ | |||
+ | {{: | ||
+ | |||
+ | Restart the DHCP server using those new configurations by clicking the "Start Server" | ||
+ | |||
+ | |||
+ | |||