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

Port-based and MAC-based DHCP (Cisco 2960 & 3560)

I  want to implement port-based and MAC-based in these two switches: 2960  & 3560 (both of them have this IOS version: 12.2(55)SE1. And I  haven't found a way to implement both of them at the same time. This is  what I got:

configuration #1:

________________________________________________________________

ip dhcp use subscriber-id client-id

ip dhcp subscriber-id interface-name

ip dhcp excluded-address 192.168.0.0 192.168.0.2

ip dhcp excluded-address 192.168.0.251 192.168.0.255

!

ip dhcp pool Test_Pool

   network 192.168.0.0 255.255.255.0

   default-router 192.168.0.2

   option 150 ip 192.168.0.1

   lease 7

   address 192.168.0.4 client-id "Fa0/3" ascii

   address 192.168.0.250 client-id "Fa0/4" ascii

   address 192.168.0.7 hardware-address 12ae.1daf.5860

____________________________________________________________

With configuration #1, I can use port-based, but not MAC based.

If I remove the first two lines and change the last line for this one:

address 192.168.0.7 client-id 0112.ae1d.af58.60

Then, the computer with that MAC address got the correct IP, but then the port-based doesn't work.

configuration #2

_________________________________________________________

ip dhcp excluded-address 192.168.0.0 192.168.0.2

ip dhcp excluded-address 192.168.0.251 192.168.0.255

!

ip dhcp pool Test_Pool

   network 192.168.0.0 255.255.255.0

   default-router 192.168.0.2

   option 150 ip 192.168.0.1

   lease 7

   address 192.168.0.4 client-id "Fa0/3" ascii

   address 192.168.0.250 client-id "Fa0/4" ascii

   address 192.168.0.7 client-id 0112.ae1d.af58.60

interface FastEthernet0/3

   ip dhcp server use subscriber-id client-id

interface FastEthernet0/4

   ip dhcp server use subscriber-id client-id

___________________________________________________________-


Please, if you guys know what to do let me know. I've tried a lot of things, and nothing is working. I used this link from Cisco as a reference, and still not working. :

http://www.cisco.com/en/US/docs/ios-xml/ios/ipaddr_dhcp/configuration/12-2sy/dhcp-prt-bsd-aa.pdf

338
Views
0
Helpful
0
Replies
CreatePlease login to create content