I have 2 4500 core switches and access switches.I also have 10 vlans.How can i enable dhcp on the core switch so that it assigns ip address to each vlan ?(each vlan has a different class C address space)
If a port belonging to vlan 2 initiates dhcp request on the access switch how can the core switch know the address space of the host connected to the port belongs to?
You'll have your hosts assigned by port to vlan 2, and the port that connects to the core will have a trunk that allows vlan 2 over the trunk. The switch will see vlan 2 tagged in the frame and will assign based off of that. The switch is smart enough to know that the dhcp pool you created and the network that's under that will be supported under that particular vlan based off of the ip address that's assigned to your SVI.