2.5  DHCP Server Configuration

Example Notes

The following methods can be used to assign IP addresses to local hosts:

  • The 192.168.1.2 static IP address will be assigned to the domain server / FTP server (its IP address must not be changed, otherwise mapping from the Internet will not work).

  • A Static IP address will be assigned to the network printer by the DHCP server (DHCP lease). Printing machines cannot have dynamic IP addresses, otherwise they would be unavailable from clients if the IP changes.

    Note: IP addresses can be assigned to printing machines either manually or by a DHCP server. If a DHCP server is used, the printing machine is configured automatically and its address is listed in the DHCP lease list. If configured manually, the printing machine will be independent of the DHCP server's availability.

  • Dynamic IP addresses will be assigned to local workstations (easier configuration).

Example of configuration of a network with assigned IP addresses

Figure 2.11. Example of configuration of a network with assigned IP addresses


Notes:

  1. The DNS domain in the LAN must be identical with the Active Directory domain (i.e. company.com).

  2. IP addresses 10.1.1.x with the mask 255.255.255.0 and the filial.company.com DNS domain will be used in the network of the branch office.

DHCP Server Configuration

Go to the Configuration → DHCP server section in Kerio Administration Console. Open the Scopes tab to create an IP scope for hosts to which addresses will be assigned dynamically (the Add → Scope option). The following parameters must be specified to define address scopes:

  • First address — select 192.168.1.10 (addresses from 192.168.1.1 to 192.168.1.9 will be reserved for servers and printing machines),

  • Last address192.168.1.254 (address with the highest number that can be used for the particular network)

  • Network mask255.255.255.0

  • Default gateway — IP address of the firewall interface that is connected to the local network (192.168.1.1).

    Note: Default gateway specifies the route via which packets from the local network will be routed to the Internet. Routing via WinRoute will enable traffic filtering, user authentication, etc.

  • DNS server — IP address of the domain server (192.168.1.2 — see chapter 2.2  Configuration of network interfaces of the Internet gateway).

DHCP server — definition of IP range for workstations

Figure 2.12. DHCP server — definition of IP range for workstations


Create a lease for the network printing machine using the Add → Reservation... option. The address you reserve need not necessarily belong to the scope described above, however, it must belong to the specified network (in this example the 192.168.1.3 address is reserved). You need to know the hardware (MAC) address of the printing machine to make the reservation.

DHCP server — reserving an IP address for a printer

Figure 2.13. DHCP server — reserving an IP address for a printer


TIP: Do not make the reservation manually unless you know the MAC address of your printing machine. Run the DHCP server and connect the machine to the network. An IP address from the formerly defined scope (see above) will be assigned to the printing machine. Mark this address in the Leases tab and use the Reserve... button to open a dialog where the appropriate MAC address will be already defined. Insert the appropriate IP address (and its description if desirable) and click on the OK button. Restart your printing machine. The appropriate IP address will be assigned to the printing machine by the DHCP server after the restart.

Notes:

  1. Do not use the DHCP server unless all desired scopes and reservations are made or unless you need to determine a client's MAC address (see above).

  2. You can also use another DHCP server to detect settings of your network equipment automatically. Set the firewall computer's internal IP address as the default gateway and DNS server in parameters for this range on the DHCP server.