



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




l l l l l l
Dynamic Host Configuration Protocol (DHCP) is a service that runs at the application layer of the TCP/IP protocol stack to dynamically assign IP addresses and to allocate TCP/IP configuration information to DHCP clients.
DHCP snooping is a security feature that acts as a firewall between untrusted hosts and trusted DHCP servers. Snooping prevents false DHCP responses and monitor clients. It can prevent man-in-the-middle attacks and authenticate host devices. DHCP Snooping classifies interfaces on the switch into two categories; trusted and untrusted. It also gives you a way to differentiate between untrusted interfaces connected to the end-user and trusted interfaces connected to the DHCP server or another switch.
Note: By default, the switch considers all interfaces as untrusted interfaces. Thus, it is important to configure the switch to specify trusted ports or interfaces as DHCP Snooping is enabled.
You can configure DHCP Snooping through the switch web-based utility or through the command line interface (CLI).
This article aims to show how to configure DHCP snooping on your switch through the CLI.
Sx300 Series SG350X Series Sx500 Series SG500X
1.4.7.06 โ Sx300, Sx500, SG500X 2.2.8.04 โ SG350X
Step 1. Connect your computer to the switch using a console cable and launch a terminal emulator application to access the switch CLI.
Note: In this example, PuTTY is used as the terminal emulator application.
Step 2. In the PuTTY Configuration window, choose Serial as the Connection type and enter the default speed for the serial line which is 115200. Then, click Open.
Step 3. In the CLI, enter the global configuration command mode by entering the following:
Note: In this example, the switch used is SG350X-48MP.
Step 4. Once you are on the global configuration mode, enable global DHCP snooping by entering the following:
Step 9. (Optional) Once on the privileged EXEC mode, check if your new settings have been saved in the running configuration file by entering the following:
The newly-configured settings should now appear:
Step 10. (Optional) To permanently save the settings, enter the following:
Step 11. Enter Y in the Overwrite file prompt to indicate Yes and to save the settings to the startup configuration file.
You should now have successfully configured DHCP snooping on your switch through the command line interface.