Configure DHCP server on FS S2805S Series Switch

  • 791 views
  • 2023-06-12

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.

S2805

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.

Support AceITCert.com by buying stuff you need!

0 Comments

In order to participate in the comments you need to be logged-in.
You can sign-up or login (it's free).