cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1563
Views
0
Helpful
1
Replies

DHCP IP assignment using Client-Id

amondragon_mx
Level 1
Level 1

Hi,

I am trying to assign and fixed ip address from pool to one client using the client-id ascii option.

however DHCP server seems to ignore this and assign one ip available from the pool.

dhcp.png

My configuration looks like:

Client

interface GigabitEthernet0/1

description to Server

ip dhcp client client-id ascii MyClient

ip dhcp client class-id MyClass

ip dhcp client hostname MyClient1

ip address dhcp

end

____________________________________________

Server

ip dhcp use subscriber-id client-id

!

ip dhcp pool NET2

network 10.0.2.0 255.255.255.0

default-router 10.0.2.1

   address 10.0.2.10 client-id 4d79.436c.6965.6e74

 

interface GigabitEthernet0/1

description to Client

switchport access vlan 2

switchport mode access

 

interface Vlan2

ip address 10.0.2.1 255.255.255.0

end

____________________________________________

 

4d79.436c.6965.6e74 is the HEX representation for MyClient

 

When if request the IP using "no shutdown" command on client side I don´t see  4d79.436c.6965.6e74 be the client-id

 

Server

 

*Jul 13 15:49:36.534: DHCPD: Sending notification of DISCOVER:

*Jul 13 15:49:36.534:   DHCPD: htype 1 chaddr fa16.3e39.34e2

*Jul 13 15:49:36.534:   DHCPD: interface = Vlan2

*Jul 13 15:49:36.535:   DHCPD: class id 4d79436c617373

*Jul 13 15:49:36.535:   DHCPD: out_vlan_id 0

*Jul 13 15:49:36.535: DHCPD: Sending notification of DISCOVER:

*Jul 13 15:49:36.535:   DHCPD: htype 1 chaddr fa16.3e39.34e2

*Jul 13 15:49:36.535:   DHCPD: interface = Vlan2

*Jul 13 15:49:36.536:   DHCPD: class id 4d79436c617373

*Jul 13 15:49:36.536:   DHCPD: out_vlan_id 0

*Jul 13 15:49:38.538: DHCPD: Allocated binding EB22D44

*Jul 13 15:49:38.539: DHCPD: Adding binding to radix tree (10.0.2.2)

*Jul 13 15:49:38.541: DHCPD: Adding binding to hash tree EB22D44

*Jul 13 15:49:38.542: DHCPD:dhcpd_binding_add_to_mac_hash: index- 56 add binding EB22D44

*Jul 13 15:49:38.543: DHCPD: assigned IP address 10.0.2.2 to client 0056.6c32. (7 0)

*Jul 13 15:49:38.544: DHCPD: DHCPOFFER notify setup address 10.0.2.2 mask 255.255.255.0

*Jul 13 15:49:38.546: DHCPD: child  pool: 10.0.2.0 / 255.255.255.0 (NET2)

*Jul 13 15:49:38.547: DHCPD: pool NET2 has no parent.

*Jul 13 15:49:38.548: DHCPD: child  pool: 10.0.2.0 / 255.255.255.0 (NET2)

*Jul 13 15:49:38.549: DHCPD: pool NET2 has no parent.

*Jul 13 15:49:38.550: DHCPD: child  pool: 10.0.2.0 / 255.255.255.0 (NET2)

*Jul 13 15:49:38.551: DHCPD: pool NET2 has no parent.

*Jul 13 15:49:38.569: DHCPD: Sending notification of ASSIGNMENT:

*Jul 13 15:49:38.570:  DHCPD: address 10.0.2.2 mask 255.255.255.0

*Jul 13 15:49:38.571:   DHCPD: htype 1 chaddr fa16.3e39.34e2

*Jul 13 15:49:38.571:   DHCPD: lease time remaining (secs) = 86400

*Jul 13 15:49:38.572:   DHCPD: interface = Vlan2

*Jul 13 15:49:38.573:   DHCPD: out_vlan_id 0

*Jul 13 15:49:38.573: DHCPD: child  pool: 10.0.2.0 / 255.255.255.0 (NET2)

*Jul 13 15:49:38.574: DHCPD: pool NET2 has no parent.

*Jul 13 15:49:38.575: DHCPD: child  pool: 10.0.2.0 / 255.255.255.0 (NET2)

*Jul 13 15:49:38.576: DHCPD: pool NET2 has no parent.

*Jul 13 15:49:38.577: DHCPD: child  pool: 10.0.2.0 / 255.255.255.0 (NET2)

*Jul 13 15:49:38.577: DHCPD: pool NET2 has no parent.

 

someone knows what is missing?

1 Reply 1

Krash Mole
Level 1
Level 1

Hi,

I think , client and server need to be on the same vlan or have a route to communicate each other.

If server is on Vlan 2, what about client?

Review Cisco Networking products for a $25 gift card