How To Configure Cyberoam as DHCP Server How To Configure Cyberoam as DHCP server Applicable Version: 10.00 Build 309 onwards Overview Cyberoam can act as a DHCP server to control IP address allocation on the network. Cyberoam assigns a unique IP address to a host from the IP pool, releases the address as host leaves and re-joins the network. Host can have different IP address every time it connects to the network. In other words, it provides a mechanism for allocating IP address dynamically so that addresses can be re-used. Apart from Dynamic IP allocation, Cyberoam also supports Static IP allocation through the DHCP server, which might help in case of any specific server. Scenario Configure Cyberoam as a DHCP Server. The article is devided into the following two sections: Configure DHCP Server to Lease Dynamic IP address Configure DHCP Server to Lease Static IP address Configuration You must be logged on to the Web Admin Console as an administrator with Read-Write permission for relevant feature(s). Step 1: Enable DHCP service on an Interface for Dynamic Lease Go to Network > DHCP > Server and click Add to define DHCP Server. Parameters Value Description General Settings Name CyberoamDHCPServer Provide a name to identify DHCP server uniquely. Interface Port A 192.168.1.40 Select any internal interface to set it as DHCPv4 server. DHCP service can be configured on virtual sub-interface but cannot be configured on Interface alias. Lease Type Dynamic Select Lease Type. Available Options: Dynamic Static Lease IP Range 192.168.1.1 192.168.1.25 Specify range of IP Address from which DHCP server must assign to the clients and subnet mask for the IP Address range. It is also possible to configure multiple IP range for a same interface. You can provide multiple IP range for the DHCP Server. Subnet Mask /24 (255.255.255.0) Select subnet mask for the server. Domain Name cyberoam.com Specify domain name that the DHCP server will assign to the DHCP Clients. Gateway Enabled Enable to use Interface IP as Gateway.
Specify IP Address for default Gateway or click Use Interface IP as Gateway. Default Lease Time 1440 Specify default lease time and maximum lease time. Acceptable Range - 1 to 43200 minutes (30 days) Default - 1440 minutes Maximum Lease Time 2880 Specify maximum lease time. DHCP client must ask the DHCP server for new settings after the specified maximum lease time. Acceptable Range - 1 to 43200 minutes (30 days) Default - 2880 minutes Conflict Detection Enable Enable IP conflict detection to check the IP Address before leasing. If enabled the already leased IP Address will not be leased again. DNS Server Primary DNS 8.8.8.8 Specify IP Address of Primary DNS server. Secondary DNS 4.2.2.2 Specify IP Address of Secondary DNS server.
Click OK and the DHCP Server Configuration will be added successfully as shown in the image below.
Step 2: Confirm DHCP service status Go to System > Maintenance > Services and click Start against DHCP server if service is Stopped/not running. With the above configuration, Cyberoam will act as a DHCP server and lease an IP address from an address pool - 192.168.1.1 192.168.1.25 (as configured in step 1), to a host DHCP client. The IP address is leased up to the time maximum lease time configured in step 1. To see the ist of leased IP addresses, go to Network > DHCP > Lease. Configure DHCP Server to Lease Static IP address Step 1: Enable DHCP service on an Interface for Static Lease Go to Network > DHCP > Server and click Add button to add DHCP Server. Parameters General Settings Value Name DHCPServer_Static Provide a name to identify DHCP server uniquely. Interface Port A 192.168.1.40 Select any internal interface to set it as DHCPv4 server. DHCP service can be configured on virtual subinterface but cannot be configured
on Interface alias. Lease Type Static Select Lease Type. Available Options: Dynamic Static IP MAC Mapping List Host Name: John MAC Address: 00-15-C5-BF-67-C1 IP Address: 192.168.1.50 If you always want to assign specific IP Addresses to some or all clients, you can define static MAC Address to IP Address mappings. For defining, MAC-IP mapping, you should know the MAC Address of the client s network card. The MAC Address is usually specified in a hexadecimal digits separated by colons (for example, 00:08:76:16:BC:21). Specify host name, MAC Address and IP Address. You can provide multiple MAC-IP mappings for the DHCP Server. Subnet Mask /24 (255.255.255.0) Select subnet mask for the server. Domain Name cyberoam.com Specify domain name that the DHCP server will assign to the DHCP Clients. Gateway Enabled Enable to use Interface IP as Gateway. Specify IP Address for default Gateway or click Use Interface IP as Gateway. Default Lease Time 1440 Specify default lease time and maximum lease time. Maximum Lease Time DNS Server Primary DNS 8.8.8.8 Secondary DNS 4.2.2.2 Acceptable Range - 1 to 43200 minutes (30 days) Default - 1440 minutes 2880 Specify maximum lease time. DHCP client must ask the DHCP server for new settings after the specified maximum lease time.
Click OK and the DHCP Server Configuration will be added successfully as shown in the image below. To view the lease detail, click View Detail.
Step 2: Confirm DHCP service status With above configuration, Cyberoam will act as a DHCP server and lease an IP address 192.168.1.50 to the host John (as configured in step 1), to a host DHCP client. The IP address is leased up to the time maximum lease time configured in step 1. After completion of the lease time, server will assign the same IP address to the host John. Note: DHCP Server can be configured only in Gateway mode or Mixed Mode. Document version: 2.0 21 November, 2014