02-17-2015 10:47 AM - edited 03-07-2019 10:42 PM
Dears,
Is it possible to configure DHCP server on Cisco Catalyst 3560 switch ????
Appreciate your feedback.
Best Regards,
Begad Ahmed
02-17-2015 11:21 AM
Hi,
Yes, absolutely, you can have a Cat3560 run a DHCP server.
I assume that you want to assign IP addresses to clients in VLANs that are created on the switch. In that case, you have to make sure that the switch has an IP connectivity to those VLANs. To accomplish this, you must create an interface Vlan for each VLAN where the clients are located, and configure it with an appropriate IP address. You would then configure the DHCP pools as usual.
Best regards,
Peter
02-17-2015 12:22 PM
Thanks Peter for your concern !
Can you please share with me sample configuration of the switch to let the it act as DHCP server and distrbute IP addresses from below subnets for the clients that are members in vlans 2,3 :
Vlan 2 -> 10.0.20.0/24
Vlan 3 -> 10.0.30.0/24
Best Regards,
Begad Ahmed
02-17-2015 12:30 PM
Hi,
The configuration would be similar to this:
interface Vlan2 ip address 10.0.20.254 255.255.255.0 ! interface Vlan3 ip address 10.0.30.254 255.255.255.0 ! ip dhcp excluded-address 10.0.20.254 ip dhcp excluded-address 10.0.30.254 ! ip dhcp pool V2 network 10.0.20.0 255.255.255.0 default-router 10.0.20.254 dns-server 8.8.8.8 lease 0 1 ! ip dhcp pool V3 network 10.0.30.0 255.255.255.0 default-router 10.0.30.254 dns-server 8.8.8.8 lease 0 1
This example assumes that the switch itself is the default gateway for these VLANs. If a different router is present in these VLANs that should be used as a default gateway, please be sure to use its corresponding IP addresses in the default-router commands in the DHCP pools. Also, if you have your own company or ISP DNS server, use it instead of the Google 8.8.8.8 open DNS server. IP addresses will be leased for 1 hour; within this time, clients will automatically renew their leases.
Best regards,
Peter
08-12-2019 11:49 PM
Hi Sir..
It was helpful your post but i would like to know if i should Switch Access the outbound interfaces to the created Vlans?
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide