• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 563
  • Last Modified:

Configure DHCP in Cisco Switch

I have the topology below, and need to know on which switches should I configure DHCP.
I am assuming it is going to be on Mswitch0 and Mswitch1.

I have 3 Vlans, 10,20,30. For instance if I activate DHCP pool for vlan 10,20 and deactivate pool for vlan 30 on Mswitch0 then on Mswitch1, I will activate pool for vlan 30 and deactivate pool for vlan 10,20...

I think this can be done by just configuring all 3 pools in each Switch, then commenting the commands  for the pools I want to deactivate.....there might be a better way that I am not aware of.......

I also think that I might need to configure a Routing Protocol, since I have 3 vlans...I wonder on which switches should I do that ?

Thanks

sw
0
jskfan
Asked:
jskfan
  • 6
  • 6
7 Solutions
 
Predrag JovicNetwork EngineerCommented:
Routing protocol you set on router.  :)  
Routing (router) - L3 devices :) not switches (except L3 switches with routing enabled)
Any L3 device is OK for setting DHCP for network.
But if you set DHCP on router not directly connected to your network you will have to use ip helper-address function.
0
 
jskfanAuthor Commented:
Correct..
I will configure DHCP on MultiLayer switches Mswithc0 and Mswitch1.(They are L3 Switches)
but how do I split the DHCP scopes between both ?

 I also should configure Routing protocol (I believe I will have to) since I have different vlans
0
 
jskfanAuthor Commented:
However I wonder if I need to configure DHCP on the Distribution Switches or on the backbone switches ?
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
Predrag JovicNetwork EngineerCommented:
Your Cisco2960-24TT in distribution layer are L2 switches and don't have DHCP server feature - so you can't do DHCP on distribution layer.
0
 
jskfanAuthor Commented:
I have configured DHCP on the Multilayer Switches... PCs are getting IP address now...

However I put on each Multilayer switch all 3 Pools for vlans 10,20,30...I wonder if it is OK ?

I also found out that Access Switch, ACswitch2 is the Root Bridge, I wonder if it does not matter or I will have to change it ??
0
 
Predrag JovicNetwork EngineerCommented:
Multilayer switch all 3 Pools for vlans 10,20,30. It is OK.

You should change root bridge to be core switch, and secondary root bridge should be other core switch.

Wise would be to create one multilayer switch root bridge for one VLAN (VLAN 10), and other multilayer switch should be root bridge for other two VLAN's (VLAN 20 and 30) or you can do that with distribution switches, depending on your design.

I think at this point in time it is more efficient for you (read easier) :) to do that on distribution layer, so you don't have to assign individual values to  STP port cost for better efficiency.
0
 
jskfanAuthor Commented:
Access switch  ACswitch2 became the Root Bridge for all Vlans automatically, I have not done anything to make it the Root Bridge.
If I understand your suggestion, it will be more efficient  to change that and make one of the Distribution switch the Root Bridge for one Vlan and the other Distribution switch the Root Bridge for other 2 Vlans.........correct ?
0
 
Predrag JovicNetwork EngineerCommented:
Correct, and you can make the other distribution switch secondary root bridge (for VLAN's that switch is not root bridge), so if one of distribution switch fail the other will automatically become root bridge for all VLAN's.
0
 
Natty GregIn Theory (IT)Commented:
You guys are doing great no other comment necessary other than I would use the router for dhcp founction, since they are better capable of doing what you need.
0
 
Predrag JovicNetwork EngineerCommented:
Since author is obviously learning basic network concepts, I don't think it's relevant at this point (but I may be wrong).
:)
0
 
jskfanAuthor Commented:
Well...Regarding Routing Protocol...I have not used any... All I used was the IP Routing command on both Multilayer switches, to allow communication between Vlans.
So far, all my PCs are getting correct IP addresses and Default Gateway, I also can ping from on PC on one Vlan another PC on another VLAN...
I do not see the reason why I should use Routing Protocol ??
0
 
Predrag JovicNetwork EngineerCommented:
While your networks are connected directly to  L3 device you have no need for routing protocol.
You will need routing protocol (or static routing) if you add  network to router 0 or router 1.
0
 
jskfanAuthor Commented:
Thanks
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

  • 6
  • 6
Tackle projects and never again get stuck behind a technical roadblock.
Join Now