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

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Can one disable DHCP on one port of 3750?

3750 in routing mode acting as dhcp servr. Two vlans: client and staff. dhcp pool is set up relevant to client vlan. Only one port in staff vlan which is connected to a 2960, all of whose ports are in staff vlan. Off this 2960 is a w2k3 dhcp server. Obviously, I do not want any dhcp traffic from 3750 to staff switch. How do I disable/prevent dhcp on the 3750 staff port? The 2960 has a management interface in the staff vlan. The 3750 also has a management interface in the staff vlan. All other ports are in trunking mode since the neighbor switches have management interfaces in the staff vlan.

1 ACCEPTED SOLUTION

Accepted Solutions
Hall of Fame Super Silver

Re: Can one disable DHCP on one port of 3750?

Murray

You configure DHCP for a specific VLAN when you configure the network address in the DHCP pool. When the 3750 receives a DHCP request it looks at the address of the VLAN interface on which it received the request and looks for a network address in a pool that matches the interface address. So in your config network 172.17.0.0 255.255.128.0 matches VLAN 2 and will offer IP addresses to clients in that VLAN. Since there is no network address in any pool on the 3750 that matches 10.10.x.x then it will not offer DHCP on VLAN 1.

HTH

Rick

5 REPLIES
Hall of Fame Super Silver

Re: Can one disable DHCP on one port of 3750?

Murray

I am not sure that I have fully understood your explanation of the environment and your requirements. But it seems to boil down to the 3750 has 2 VLANs. You want the 3750 to provide DHCP on one VLAN and not provide DHCP on the other VLAN. It seems to me to have a simple solution: configure a DHCP pool for the VLAN you want it to serve and do not configure a DHCP pool for the other VLAN. If it does not have a pool configured for the other VLAN then it will not act as a DHCP server on that VLAN.

If I have misunderstood and the requirement is different then perhaps you can clarify for me.

HTH

Rick

New Member

Re: Can one disable DHCP on one port of 3750?

Rick, thank you, that is correct. Here is a code snippet.

ip dhcp pool Clients

network 172.17.0.0 255.255.128.0

default-router 172.17.1.10

dns-server 202.194.28.230 198.161.156.1

However, how do I configure dhcp for a specific vlan, vlan 2?

More code:

interface Vlan1 (mgmt int & staff vlan)

ip address 10.10.1.10 255.255.0.0

!

interface Vlan2 (client vlan needing dhcp)

ip address 172.17.1.10 255.255.128.0

As previously mentioned all ports are in trunk mode except the staff port which is in the staff vlan (vlan 1).

Regards,

Hall of Fame Super Silver

Re: Can one disable DHCP on one port of 3750?

Murray

You configure DHCP for a specific VLAN when you configure the network address in the DHCP pool. When the 3750 receives a DHCP request it looks at the address of the VLAN interface on which it received the request and looks for a network address in a pool that matches the interface address. So in your config network 172.17.0.0 255.255.128.0 matches VLAN 2 and will offer IP addresses to clients in that VLAN. Since there is no network address in any pool on the 3750 that matches 10.10.x.x then it will not offer DHCP on VLAN 1.

HTH

Rick

Hall of Fame Super Silver

Re: Can one disable DHCP on one port of 3750?

Murray

Thank you for using the rating system to indicate that an answer did solve your issue (and thanks for the rating). It makes the forum much more useful when people can read a question and can know that an answer was provided which resolved the question. I encourage you to continue your participation in the forum.

HTH

Rick

New Member

Re: Can one disable DHCP on one port of 3750?

This was the first time that I used a forum. I was aware of the forums' existence but never before considered a forum as an option for problem solving. I am happy to now have the the various forums as an option for solving future challenges.

Your help is greatly appreciated.

Regards,

Murray

2232
Views
0
Helpful
5
Replies
CreatePlease to create content