8

We are testing a new Provisioning Server in DOCSIS/CMTS environment and we need to setup a lab with 5 models of CPE. I'm wondering if we can configure on Cisco Routers the dhcp relay (ip helper) accord with the MAC address of CPE. The goal of this would be to redirect by default all dhcp discover to the actual Provisioning Server and the 5 CPE of lab would be redirect to the new Provisioning Server. A guess how to reach that ?

Info :
The router is a CMTS Cisco UBR7225 with NPE-G2 card.
The type of DHCP server is irrelevant, you can consider as ISC DHCPd service running on both.

  • what dhcp server are you using in production / lab? Which router are you using? – Mike Pennington Jul 5 '13 at 9:26
  • I've added the info – cgasp Jul 5 '13 at 11:27
  • I'm afraid your DHCP server is quite relevant, the options to control client to server mapping on the NPE-G2 is very limited – Mike Pennington Jul 5 '13 at 12:00
4

I don't think it's possible to do what you want to do. If it would be possible, it would be something like this:

ip dhcp pool MAC1
  relay source 10.10.0.0/24
  relay destination 192.0.2.NEW
  client-identifier 0122.2222.2222.01
...
ip dhcp pool REST
  relay source 10.10.0.0/24
  relay destination 192.0.2.OLD

But it was not accepted in my lab box:

lab(dhcp-config)#client-identifier 0122.2222.2222.01
% This command may not be used with network, origin, vrf or relay pools.

You can however configure two helper-addresses and filter the requests at the DHCP server, so that 'old' excludes replying to those 5 MAC addresses and 'new' only replies to them.

But maybe you simply need more isolated lab environment, at least separate logical interface.

You could also create interim DHCP server, which forwards requests further based on the MAC addresses, it wouldn't be very hard exercise, probably 2-3h including research for me. But would you want your production to rely on this new script, I certainly would not want it to.

| improve this answer | |
4

Multiple ip helper-address statements are supported in Cisco IOS... so, let's assume you're using ISC dhcpd (as you mentioned in your question)... multiple helper addresses forwards DHCP Discover messages to both servers at the same time; therefore, you need:

  1. a way to stop lab machines from receiving a production address; I recommend that you black hole the lab mac-addresses on the production ISC DHCPd system
  2. a way to stop production machines from receiving a lab address; I recommend that you use 100% static DHCP reservations for this subnet on your lab ISC DHCPd system...
| improve this answer | |
0

I know it is not always possible to have a spare chassis for lab testing, but i would recommend that you at least reserve one downstream and one upstream for testing purposes. If you have free connectors you can create new Bundle interface and configure it with ip-helper address of the new server. This way you can also test parsing DHCP options, source-verify, leasequery-filter, dynamic shared secret or whatever you use in combination with DHCP and TFTP servers. You don't want to put new server in production without fully testing everything the way it will actually run in production, especially in ISP environment.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.