Configure DHCP server on FS S2805S Series Switch
The Dynamic Host Configuration Protocol (DHCP) is extensively utilized in local area network (LAN) setups to allocate host IP addresses dynamically from a centralized server. This approach significantly reduces the administrative burden associated with manually managing IP addresses. Moreover, DHCP helps conserve the limited IP address space by eliminating the need for permanent address assignments to individual hosts. Only the connected hosts on the network consume IP addresses. The DHCP server, located on a router or switch, is responsible for assigning IP addresses from designated address pools to DHCP clients and efficiently managing them.
This article will guide you through the process of configuring the FS S2805S Series Switch as a DHCP server using the command-line interface (CLI).
Steps to configure DHCP server through CLI.
1. Login to the device using SSH / TELNET and go to enable mode.
2. Go into the config mode.
Switch# configure terminal
3. Create DHCP Server and IP pool.
Switch(config)# dhcp-server 100 192.168.1.254
Switch(config)# dhcp-server ip-pool 1
4. Define the default gateway and allocatable addresses
Switch(config)# gateway 192.168.1.254 255.255.255.0
Switch(config)# section 1 192.168.1.1 192.168.1.253
5. Define the DNS Server
Switch(config)# dns-list primary-ip 8.8.8.8
6. Apply the DHCP server to the corresponding VLAN interface and enable DHCP Relay.
Switch(config)# interface vlan-interface 100
SW1(config-if)# ip address 192.168.1.254 255.255.255.0
SW1(config-if)# dhcp-server 100
SW1(config-if)# exit
Switch(config)# dhcp-relay
Note: The IP address of VLAN 100, DHCP server and gateway should be consistent.