cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1274
Views
25
Helpful
7
Replies

Port Based Address Allocation DHCP not Assigning Addresses

CarsonEdwards
Level 1
Level 1

I am setting up a new out of band switch with port based address allocation to help with an automation project. 

I thought I had everything correct, but the dhcp server (the switch) is not assigning addresses. 

My config is pretty short, but very repetitive.

 

I have included a .txt file to shorten up this post.

 

THANK YOU THANK YOU. 

1 Accepted Solution

Accepted Solutions

amikat
Level 7
Level 7

Hi,

In my view the interface short name is case sensitive. Can you please try to adjust your pool configuration accordingly, eg.:

address 10.10.10.1 client-id "Gi1/1" ascii

and see if that makes any difference.

Best regards,

Antonin

View solution in original post

7 Replies 7

amikat
Level 7
Level 7

Hi,

In my view the interface short name is case sensitive. Can you please try to adjust your pool configuration accordingly, eg.:

address 10.10.10.1 client-id "Gi1/1" ascii

and see if that makes any difference.

Best regards,

Antonin

Hello

At first glance remove the following from the access- ports

ip dhcp server use subscriber-id client-id

Also the access-ports are currently assigned to vlan 1 but you don’t have any L3 address for that vlan and the only l3 address you do have isn’t the same as the dhcp scope!

dhcp -10.10.10.0/26
vlan 666 - 172.30.1.0/24

access-port
int x/x
switchport host
swithport access vlan x


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

CarsonEdwards
Level 1
Level 1

DHCP is now assigning IPs, but it is assigning random IPs

I followed these instructions http://packetpros.com/per-port-ip-address-assignment/

 

I tried using a capital Gi1/1 but the configuration changes it back to gi1/1

 

THANK YOU!

Hello
conf t
no ip dhcp pool pool1

ip dhcp pool pool1
network 10.10.10.0 255.255.255.192
address 10.10.10.1 client-id "GigabitEthernet1/1" ascii
address 10.10.10.2 client-id "GigabitEthernet1/2" ascii
etc...


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

I will give this ago shortly.

Hi,

Thanks for the reply. I have checked the configuration in my lab and my box keeps the commands as configured, ie. maintaining the case sensitivity. What you are experiencing may be an indication of a bug, so you may consider to upgrade.

I have always used the short interface name, not the full name in this case.

Best regards,

Antonin

CarsonEdwards
Level 1
Level 1

THANK YOU folks,

address 10.10.10.1 client-id "Gi1/1" worked!

I guess starting over with a no ip dhcp pool pool1, helped me get the syntax right.

 

Thanks again!

 

 

Review Cisco Networking for a $25 gift card