Is it possible to use a Cisco 2950 switch as a DHCP relay?

Is it possible to use a Cisco 2950 switch as a DHCP relay?

Is it possible to use a Cisco 2950 switch as a DHCP relay? If so, how can I? I've configured a C172x router but the switch seems different.

    Requires Free Membership to View

    By submitting your registration information to SearchNetworking.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchNetworking.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

You can do it. You need enhanced image on your switch for it to offer DHCP functionality. Use the following commands (available with Cisco 2950 documentation) for configuring the same:

Commands for DHCP functionality

configure terminal To enter global configuration mode.
ip dhcp snooping To enable DHCP snooping globally.
ip dhcp snooping vlan vlan-id [vlan-id] To enable DHCP snooping on a VLAN or range of VLANs. You can specify a single VLAN identified by VLAN ID.
ip dhcp snooping information option To enable the switch to insert and remove DHCP relay information (option-82 field) in forwarded DHCP request messages to the DHCP server. This is enabled by default.
interface [interface-id] To enter interface configuration mode, and specify the interface to be configured.
ip dhcp snooping trust This is an optional command. It configures the interface as trusted or un-trusted. The default is un-trusted.
ip dhcp snooping limit rate [rate] This is an optional command. It configures the number of DHCP packets per second than an interface can receive. The range you can specify for [rate] is 1 to 4294967294. The default is no rate limit configured.

[ ] expects arguments to be given like VLAN-ID or rate limit. The first five commands should be enough to configure DHCP relay. The other two give the functionality more granularities.

This was first published in October 2006

Join the conversationComment

Share
Comments

    Results

    Contribute to the conversation

    All fields are required. Comments will appear at the bottom of the article.