Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Community Member

configuring DHCP on only one VLAN on 4500 switch

I have created a DHCP pool on our 4500 switch. I only want our VLAN 6 to use the pool, and no other vlans.

How do I configure so that only VLAN 6 gets the addresses?

3 REPLIES

Re: configuring DHCP on only one VLAN on 4500 switch

Do not set IP helper command on rest of the vlans.

The ip helper-address interface subcommand tells the router to forward UDP broadcasts, including BootP, received on this interface.

Regards,

~JG

Do rate helpful posts

Community Member

Re: configuring DHCP on only one VLAN on 4500 switch

Actually this worked without having to configure ip helper address. The switch must be smart enough to only pull from pools that correspond to the ip configured on that interface.

Example: Interface VLAN 6 address is 192.168.6.1. Ip dhcp pool /network 192.168.6.0 /24 with some exclusions. Ports assigned to VLAN 6 started pulling from the beginning of the pool.

Hall of Fame Super Gold

Re: configuring DHCP on only one VLAN on 4500 switch

Kevin

You are correct that the switch is smart about the DHCP pools. If you configure a single DHCP pool then when the switch receives a DHCP request from a client, then the switch looks at the layer 3 interface on which the request was received. If the subnet of the receiving interface matches to the DHCP pool then the switch will assign an address from the pool to the client. And if the subnet of the receiving interface does not match the DHCP pool then the switch does not assign an address.

HTH

Rick

199
Views
9
Helpful
3
Replies
CreatePlease to create content