The core switch has DHCP

A core switch can act as a DHCP server to assign IP addresses to clients across multiple VLANs, with proper pool, VLAN, and relay configurations.Enabling DHCP on a Core SwitchTo configure a Cisco core...

The core switch has DHCP

A core switch can act as a DHCP server to assign IP addresses to clients across multiple VLANs, with proper pool, VLAN, and relay configurations.

Enabling DHCP on a Core Switch

To configure a Cisco core switch as a DHCP server, first ensure that IP routing is enabled and the DHCP service is active:

Switch(config)# ip routingSwitch(config)# service dhcp

This allows the switch to route between VLANs and provide DHCP services to connected clients .

Configuring DHCP Pools

For each VLAN, create a DHCP pool specifying the network, default gateway, and DNS servers:

Switch(config)# ip dhcp excluded-address 192.168.10.1 192.168.10.10Switch(config)# ip dhcp pool VLAN10Switch(dhcp-config)# network 192.168.10.0 255.255.255.0Switch(dhcp-config)# default-router 192.168.10.1Switch(dhcp-config)# dns-server 8.8.8.8 8.8.4.4

Excluded addresses prevent conflicts with static IPs, such as the VLAN interface IP .

VLAN Interface Configuration

Assign an IP address to the VLAN interface (SVI) on the core switch:

Switch(config)# interface Vlan10Switch(config-if)# ip address 192.168.10.1 255.255.255.0Switch(config-if)# no shutdown

Ensure the VLAN exists and is active on the switch .

Handling Multiple VLANs

If clients are on different VLANs, DHCP requests may not reach the server due to broadcast boundaries. You can either:

  • Configure the DHCP service on the core switch for each VLAN, or
  • Use a DHCP relay agent on Layer 3 interfaces to forward requests to a central DHCP server:

Switch(config)# interface Vlan20Switch(config-if)# ip helper-address 192.168.10.1

This ensures clients in other VLANs receive IP addresses from the DHCP server .

DHCP Snooping for Security

Enable DHCP snooping to prevent rogue DHCP servers:

Switch(config)# ip dhcp snoopingSwitch(config)# ip dhcp snooping vlan 10,20Switch(config)# interface GigabitEthernet0/1Switch(config-if)# ip dhcp snooping trust

Trusted interfaces connect to legitimate DHCP servers, while untrusted interfaces are monitored to block unauthorized DHCP messages .

Verification

Check DHCP bindings and pool status:

Switch# show ip dhcp bindingSwitch# show running-config | include dhcp

This confirms which IPs are leased and ensures the DHCP configuration is active .

Best Practices

  • Exclude SVI IP addresses and static devices from DHCP pools.
  • Use spanning-tree portfast on access ports to speed up client connectivity.
  • Monitor DHCP lease usage to prevent exhaustion.
  • For IP phones, include options like Option 150 for TFTP server addresses . By following these steps, a core switch can efficiently manage DHCP for multiple VLANs while maintaining network security and reliability.

DHCP Snooping Implementation Question : r/networking

Distribution and Core switches won''t block DHCP packets unless you enable DHCP snooping on those switches. There''s no need to

Configure DHCP on a Cisco router or switch

Many administrators forget—or don''t even realize—that they can configure Dynamic Host Configuration Protocol

Configure Dynamic Host Configuration Protocol (DHCP) Relay

Objective Dynamic Host Configuration Protocol (DHCP) is a service that runs at the application layer of the

DHCP server on Switch or on Router

I have a DHCP server set up on a L3 24port switch that connects to multiple routers that different clients connect to

DHCP on guest wireless not working after core switch replacement

Issue was resolved, was as simple as the wrong cable plugged into the wrong port. You''ve got an overwhelming

Layer 2 Switch as DHCP server

Hello All, I am building a small lab utilizing Collapsed Core Design. 1 Nexus 3548 is acting as a Core Switch and there

How to configure a Cisco Catalyst 6500 switch as a DHCP server

Introduction How to configure a Cisco Catalyst 6500 switch as a DHCP server Core issue Dynamic Host Control

DHCP Snooping Configuration on Core Cisco switches

Is it good to have DHCP snooping configured on core switches or not. Just implementati DHCP snooping on access

Unable to get DHCP

Yes, both access switches have a trunk to the core switch, which is handling DHCP and routing for the LAN. I use

DHCP Conflict on switch core

Hey. I am facing issue with releasing one reserved IP from dhcp pool. I got "Address 172.***.***.*** is not reserved.

DHCP Core Switch migration | Switching

I get a dhcp discover 0.0.0.0 255.255.255.255 from a device on the migrated vlan after rebooting. All other devices

Solved: DHCP Pool:

I have two core switches and my customer required the core switch to provide dhcp. Should I configure the dhcp pool

DHCP server on core switch good or bad? : r/networking

Personally, I am a fan of DHCP on the core switch, unless you need some functionality that the switch can''t provide. The switch is

Configure DHCP Server for multiple VLANs on the Switch

This tutorial explains how to configure and run the DHCP service on a Cisco switch to support multiple VLANs.

Solved: Vlan with dhcp on 3750 core switch

I''m setting up a lab, pfSense router -> c3750 as core -> access switch 3750 as switch1. I''ve set the vlan 101 on the

Switches vlan not passing dhcp | NETGEAR Communities

You may try to test it first by connecting your PC to one of the ports of the 2nd switch and let it request an IP to your

Solved: DHCP Configuration in Core Switches

Both locations have DHCP configured in their core switches and these two locations are connected with fiber. Access

DHCP on Core Switch

Enjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on

How to Configure DHCP Server on Cisco Switches

This tutorial explains how to configure, test, and verify a DHCP server on a Cisco switch through a packet tracer

Setting up DHCP server on the router or on the switch?

You could put the DHCP scope on your router if it''s L2 adjacent to the users. If it isn''t, then you need ip-helper config in your L3

Configuring DHCP

DHCP Server The DHCP server assigns IP addresses from specified address pools on a switch or router to DHCP clients and

DHCP Server in Cisco L3 Switch

3.) If I were to connect the switch to my working network with a DHCP server on the network will the PC go for that or

DHCP Pool from Switch VS Particular DHCP Server

I would like to gather your opinions about having DHCP server versus switch DHCP POOL configuration. Currently

Switch not relaying DHCP request

Hey Folks, I have a small problem with my Core Switch in Packet Tracer. I want to test this in PT before I implement it

DHCP configuration on a Cisco switch

Prepare DHCP configuration on a Cisco switch with our Design & Config instructions. Loads of knowledge at your reach.

Core switch DHCP setup

With the core switch providing DHCP, if a closet TR switch reboots for some reason, all connected phones are going to reboot and

Fiber Protection Insights

Need Reliable Cable Protection Solutions?

Contact us for clamps, conduits, joints, and custom kits – we respond within 24 hours.