cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
5313
Views
0
Helpful
4
Replies

DHCP Server on Cisco Catalyst 3560 ????

begad.nashaat
Level 1
Level 1

Dears,

 

Is it possible to configure DHCP server on Cisco Catalyst 3560 switch ????

 

Appreciate your feedback.

 

Best Regards,

Begad Ahmed

4 Replies 4

Peter Paluch
Cisco Employee
Cisco Employee

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

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

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

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?

Review Cisco Networking for a $25 gift card