Network admins juggling resources often face the question: what happens when you need DHCP services but lack a dedicated server? Enter the Cisco Catalyst 3750 series switch. While primarily known for its robust switching capabilities, the 3750 packs a useful trick up its sleeve – the ability to function as a basic DHCP server. This feature provides a crucial stopgap solution, allowing you to dynamically assign IP addresses within a defined range directly from the switch itself. It’s particularly handy for smaller setups, temporary networks, or during migrations where deploying a full-fledged DHCP server isn’t immediately practical. However, it’s vital to understand this is a temporarymeasure. Relying on the switch long-term for DHCP duties consumes valuable CPU cycles and memory – resources better spent on its core switching functions. Migrating DHCP services to a dedicated server, even a lightweight one, should be the ultimate goal to preserve the 3750’s performance and longevity. This guide walks you through the precise steps to configure a DHCP pool on a Cisco 3750 switch via its Command Line Interface (CLI), getting your network up and running with dynamic addressing when you need it most. Remember, this setup buys you time, not a permanent solution.

Getting Connected: Accessing the Cisco 3750 CLI
Before diving into configuration, you need a direct line to the switch’s brain – its CLI. Forget fancy network management tools for this initial setup; the good old serial console connection remains the most reliable method, especially for out-of-band management when the network itself isn’t operational yet.
- Hook Up the Console Cable: Grab your Cisco serial console cable (often blue). Plug the 9-pin D-sub connector firmly into an available serial port (COM port) on your management computer. If your modern laptop lacks a serial port, you’ll need a reliable USB-to-Serial adapter. Connect the other end (typically RJ-45) securely into the port clearly labeled “Console” on the back of your Cisco 3750 switch. Power on the switch if it isn’t already.
- Fire Up Your Terminal Emulator: On your computer, launch your preferred terminal emulation software. PuTTY is a widely used, free option. Open PuTTY, and in the configuration window, the critical step is selecting the connection type. Click on the “Serial” radio button located in the “Connection type” section (usually bottom left). This tells PuTTY you’re not connecting via SSH or Telnet, but directly over the serial line.
- Configure Serial Settings: Now, specify whichserial port you’re using. Look in your computer’s Device Manager (Windows) or system information to identify the correct COM port assigned to your serial connection or USB adapter (e.g., COM1, COM3, USB Serial Port (COM4)). Enter this exact port name into the “Serial line” field within PuTTY. Next, click on the “Serial” category under “Connection” in the left-hand pane. Here, ensure the speed (baud rate) is set to 9600, Data bits to 8, Stop bits to 1, Parity to None, and crucially, set Flow control to None. Double-check these settings; mismatches here are a common cause of connection failure. Finally, click the “Open” button to initiate the session.
- Establish the Console Session: A blank, black terminal window should appear. If nothing shows up, press the Enter key once or twice. You should be greeted by the switch’s command prompt, likely something like
Switch>or just>. This means you’re connected to the User EXEC mode.
Gaining Privileges and Entering Configuration Mode
User EXEC mode offers limited capabilities. To make configuration changes, you need elevated privileges.
- Enter Enable Mode: At the
Switch>prompt, typeenableand press Enter. The prompt will likely change toSwitch#, indicating you’re now in Privileged EXEC mode. If your switch has an enable password configured (and it should for security!), you’ll be prompted for it. Type the password carefully (it won’t display as you type) and press Enter again. If correct, you’ll see theSwitch#prompt. - Access Global Configuration: Configuration changes happen in Global Configuration mode. From the
Switch#prompt, typeconfigure terminal(often abbreviated asconf t) and press Enter. Your prompt will change toSwitch(config)#, signaling you’re now in the mode where you can alter the switch’s running configuration.
Configuring the DHCP Service and Pool
Now we reach the core task: enabling the DHCP service and defining the pool of addresses it will manage.
- Enable the DHCP Server Function: First, ensure the DHCP service is active. At the
Switch(config)#prompt, typeservice dhcpand press Enter. This command globally enables the DHCP server functionality on the switch. You should see no immediate output if successful, just the prompt ready for the next command. - Create the DHCP Pool: It’s time to define the specific pool of IP addresses the switch will hand out. Type
ip dhcp poolfollowed by a name you choose for this pool. For example,ip dhcp pool MAIN_NETorip dhcp pool TEMP_DHCP. Choose a name that makes sense for your network segment. Press Enter after typing the pool name. The prompt will change toSwitch(dhcp-config)#, indicating you are now within the configuration context for this specific DHCP pool.
Defining Pool Parameters: Network, Gateway, DNS, Lease
Within the DHCP pool configuration mode, you specify all the essential details clients need to function on the network.
- Set the Network Address and Subnet Mask: This is fundamental. The
networkcommand tells the DHCP server which range of IP addresses it can assign and defines the subnet. Typenetworkfollowed by the network address and subnet mask in CIDR notation (e.g.,network 192.168.10.0 /24) or using the traditional subnet mask (e.g.,network 192.168.10.0 255.255.255.0). Replace192.168.10.0 /24with your actualnetwork address and appropriate subnet mask. Press Enter. - Specify the Default Gateway (Router): Clients need to know where to send traffic destined for outside their local subnet. Type
default-routerfollowed by the IP address of the gateway router for this subnet. For instance,default-router 192.168.10.1. Use the correct IP address for yournetwork’s gateway. Press Enter. - Configure the DNS Domain Name: To enable clients to resolve hostnames within your domain, set the DNS suffix. Type
domain-namefollowed by your organization’s domain (e.g.,domain-name yourcompany.local). Replaceyourcompany.localwith your actual domain name. Press Enter. - Set the DNS Server Address: Clients need the IP address of a DNS server to resolve internet hostnames. Type
dns-serverfollowed by the IP address of your primary DNS server (e.g.,dns-server 192.168.10.5). If you have secondary DNS servers, you can list them separated by spaces on the same line (e.g.,dns-server 192.168.10.5 192.168.10.6). Press Enter. - Define the Lease Duration: The lease time determines how long a client can hold onto an assigned IP address before it must renew it. Type
leasefollowed by the number of days, hours, and minutes. For a simple 7-day lease, typelease 7. You can be more granular, likelease 0 12 0for 12 hours. Press Enter.
Finalizing and Saving the Configuration
You’ve entered all the necessary DHCP pool commands. Now it’s time to exit the configuration modes and ensure your changes survive a reboot.
- Exit DHCP Pool and Global Config Modes: First, type
endand press Enter. This exits the DHCP pool configuration mode (Switch(dhcp-config)#) and Privileged EXEC mode (Switch#) simultaneously, returning you directly to the Privileged EXEC prompt (Switch#). Alternatively, you can pressCtrl+Zfor the same effect. - Save the Running Configuration: The changes you made are currently active in the “running-config” (RAM). To make them permanent, you need to copy this configuration to the “startup-config” (NVRAM). Type
copy running-config startup-config(often abbreviated ascopy run start) and press Enter. The switch will ask for confirmation:Destination filename [startup-config]?. Simply press Enter to accept the default filename. You should see a message likeBuilding configuration... [OK], confirming the save. Your DHCP configuration is now persistent.
Verification (Optional but Recommended)
It’s good practice to verify your setup. From Privileged EXEC mode (Switch#), you can use commands like:
show running-config | section dhcp: Displays all DHCP-related configuration lines.show ip dhcp pool: Shows details about the configured DHCP pool(s), including usage statistics once clients start leasing addresses.show ip dhcp binding: Lists the current IP address to MAC address bindings (leases) handed out by the DHCP server.
So, circling back to our initial questions: Can the Cisco 3750 Handle DHCP? Absolutely, yes. Its integrated DHCP server functionality provides a valuable, readily available solution for scenarios demanding immediate dynamic IP address assignment without a dedicated server present. The step-by-step CLI process outlined above is straightforward for network professionals familiar with Cisco’s IOS command structure. Is a Temporary Setup Feasible Without a Dedicated Server? Undoubtedly, it is feasible and often the most practical short-term fix. It gets networks operational quickly, simplifies initial deployments for small branches or labs, and serves as a reliable fallback during server maintenance or failure. However, the critical caveat remains: this is explicitly a temporaryor transitionalstrategy. Running DHCP directly on the 3750 consumes processing power and memory that are finite resources. For optimal switch performance, stability, and scalability – especially in environments with more than a handful of clients or complex network demands – migrating DHCP services to a purpose-built server (Windows Server, Linux with ISC DHCPd, or a dedicated appliance) is not just recommended, it’s essential. Think of the 3750’s DHCP as a capable understudy, ready to step in when needed, but not designed for the starring role long-term. Planning that migration to a dedicated DHCP platform should be a priority once the immediate need is addressed. For further Cisco configuration nuances or advanced networking topics, resources are available at telecomate.com.
Leave a comment