Thanks all for the explanation :) let me also start the workbooks :) just finished the written part :).
On Thu, Oct 13, 2011 at 5:26 AM, Adam Booth <[email protected]> wrote: > Hi Laurent, > > I think your confusion is that the appropriate debug here is "debug ip dhcp > server packet" instead of "debug ip dhcp server event" > > Here's an example on how I would do it. > > R1 initial config > hostname R1 > ip dhcp pool R2 > network 10.1.12.0 255.255.255.0 > interface FastEthernet0/0 > ip address 10.1.12.1 255.255.255.0 > > R2 initial config > hostname R1 > interface FastEthernet0/0 > ip address dhcp > > The pool on R1 is initially non-specific so we can verify base DHCP is > operating and to easily obtain the client id > > on R1 we enable debug ip dhcp server packet and look at the DHCP > conversation > > R1#deb ip dhcp server pac > R1# > *Mar 1 00:05:03.367: DHCPD: DHCPDISCOVER received from client > 0063.6973.636f.2d63.3230.312e.3035.3262.2e30.3030.302d.4661.302f.30 on > interface FastEthernet0/0. > *Mar 1 00:05:03.371: DHCPD: Allocate an address without class information > (10.1.12.0) > *Mar 1 00:05:05.375: DHCPD: Sending DHCPOFFER to client > 0063.6973.636f.2d63.3230.312e.3035.3262.2e30.3030.302d.4661.302f.30 > (10.1.12.2). > *Mar 1 00:05:05.379: DHCPD: broadcasting BOOTREPLY to client > c201.052b.0000. > *Mar 1 00:05:05.403: DHCPD: DHCPREQUEST received from client > 0063.6973.636f.2d63.3230.312e.3035.3262.2e30.3030.302d.4661.302f.30. > *Mar 1 00:05:05.407: DHCPD: No default domain to append - abort update > *Mar 1 00:05:05.407: DHCPD: Sending DHCPACK to client > 0063.6973.636f.2d63.3230.312e.3035.3262.2e30.3030.302d.4661.302f.30 > (10.1.12.2). > *Mar 1 00:05:05.411: DHCPD: broadcasting BOOTREPLY to client > c201.052b.0000. > R1#un all > All possible debugging has been turned off > > Now we can see the quite long dhcp client identifier and can now modify the > pool on R1 to be more specific by copy and pasting it in > > R1#conf t > Enter configuration commands, one per line. End with CNTL/Z. > R1(config)#ip dhcp pool R2 > R1(dhcp-config)#no network 10.1.12.0 /24 > R1(dhcp-config)#host 10.1.12.2 /24 > R1(dhcp-config)#client-identifier > 0063.6973.636f.2d63.3230.312e.3035.3262.2e30.3030.302d.4661.302f.30 > R1(dhcp-config)#end > R1#deb ip dhcp server pac > > Then we can bounce R2's Fa0/0 (shut/no shut) and see if it obtains the > proper IP is allocated (you may see a DHCP Release occur but that's just R2 > being a good citizen and not something we really care about right now) > > *Mar 1 00:13:09.259: DHCPD: DHCPDISCOVER received from client > 0063.6973.636f.2d63.3230.312e.3035.3262.2e30.3030.302d.4661.302f.30 on > interface FastEthernet0/0. > *Mar 1 00:13:09.263: DHCPD: Sending DHCPOFFER to client > 0063.6973.636f.2d63.3230.312e.3035.3262.2e30.3030.302d.4661.302f.30 > (10.1.12.2). > *Mar 1 00:13:09.263: DHCPD: broadcasting BOOTREPLY to client > c201.052b.0000. > *Mar 1 00:13:09.515: DHCPD: DHCPREQUEST received from client > 0063.6973.636f.2d63.3230.312e.3035.3262.2e30.3030.302d.4661.302f.30. > *Mar 1 00:13:09.519: DHCPD: No default domain to append - abort update > *Mar 1 00:13:09.519: DHCPD: Sending DHCPACK to client > 0063.6973.636f.2d63.3230.312e.3035.3262.2e30.3030.302d.4661.302f.30 > (10.1.12.2). > *Mar 1 00:13:09.523: DHCPD: broadcasting BOOTREPLY to client > c201.052b.0000. > > R1#sh ip dhcp binding > Bindings from all pools not associated with VRF: > IP address Client-ID/ Lease expiration Type > Hardware address/ > User name > 10.1.12.2 0063.6973.636f.2d63. Infinite Manual > 3230.312e.3035.3262. > 2e30.3030.302d.4661. > 302f.30 > > > Regarding why there is a prepending 01 in front of the MAC address. If you > read the comments in the IOS hints article > http://blog.ioshints.info/2007/09/assigning-server-ip-addresses-with-dhcp.htmlit > mentions it due to the recommendation in the DHCP RFC. > > Cheers, > Adam > > > On Thu, Oct 13, 2011 at 6:39 AM, Laurent Loingeville > <[email protected]>wrote: > >> Hi all, >> First of all thanks to all of you for your answer. It is very nice to see >> a lot of people can help us such a way! >> Thanks to you, I made it work :) I put the "ip dhcp clien client-id fa0/0 >> "in the interface subcommand of the client and put "client-id >> 01"macaddressoftheclientinterface" in th eserver side >> >> Nevertheles i got two questions? Why do we need to prefix with 01 th emac >> address of the client interface in the client-id command of the server?And >> then, why a "debug ip dhcp server event" in the server side didn't gave me >> the client-id to put ? >> >> Here is what i got from the debug command.So no useful to find the clinet >> id: >> *Mar 1 00:11:40.811: DHCPD: Sending notification of DISCOVER:*Mar 1 >> 00:11:40.811: DHCPD: htype 1 chaddr c207.1490.0000*Mar 1 00:11:40.815: >> DHCPD: remote id 020a000096640c0200000000*Mar 1 00:11:40.815: DHCPD: >> circuit id 00000000*Mar 1 00:11:40.819: DHCPD: Seeing if there is an >> internally specified pool class:*Mar 1 00:11:40.819: DHCPD: htype 1 >> chaddr c207.1490.0000*Mar 1 00:11:40.823: DHCPD: remote id >> 020a000096640c0200000000*Mar 1 00:11:40.823: DHCPD: circuit id >> 00000000*Mar 1 00:11:40.823: DHCPD: there is no address pool for >> 150.100.12.2.R2(dhcp-config)#*Mar 1 00:11:43.663: DHCPD: Sending >> notification of DISCOVER:*Mar 1 00:11:43.663: DHCPD: htype 1 chaddr >> c207.1490.0000*Mar 1 00:11:43.667: DHCPD: remote id >> 020a000096640c0200000000*Mar 1 00:11:43.667: DHCPD: circuit id >> 00000000*Mar 1 00:11:43.671: DHCPD: Seeing if there is an internally >> specified pool class:*Mar 1 00:11:43.671: DHCPD: htype 1 >> chaddr c207.1490.0000*Mar 1 00:11:43.675: DHCPD: remote id >> 020a000096640c0200000000*Mar 1 00:11:43.675: DHCPD: circuit id >> 00000000*Mar 1 00:11:43.675: DHCPD: there is no address pool for >> 150.100.12.2. >> >> >> Regards, >> --- En date de : Mer 12.10.11, Marko Milivojevic <[email protected]> a >> écrit : >> >> De: Marko Milivojevic <[email protected]> >> Objet: Re: [OSL | CCIE_RS] Manual DHCP not working >> À: "arulgobinath emmanuel" <[email protected]> >> Cc: "Laurent Loingeville" <[email protected]>, " >> [email protected]" <[email protected]> >> Date: Mercredi 12 octobre 2011, 18h25 >> >> That's exactly what I wanted you to see... By default, Cisco clients >> don't use a client-id derived from a Mac address, rather something a >> bit more involved, as Ivan pointed out in his article. It would be be >> so easy to lose points in the lab if you are not aware of this. >> >> -- >> Marko Milivojevic - CCIE #18427 >> Senior Technical Instructor - IPexpert >> >> FREE CCIE training: http://bit.ly/vLecture >> >> Mailto: [email protected] >> Telephone: +1.810.326.1444 >> Web: http://www.ipexpert.com/ >> >> On Wed, Oct 12, 2011 at 09:02, arulgobinath emmanuel <[email protected]> >> wrote: >> > mm .. >> > i think client id is the right way to go :). its easy to capture the >> packet >> > from gns3 and check the value. >> > >> > also the ip dhcp client client-id <int> is needed. otherwise we will >> end up >> > following as the client id :) in my case >> > >> 00:63:69:73:63:6f:2d:63:61:30:31:2e:30:38:64:30:2e:30:30:31:63:2d:46:61:31:2f:30 >> > , >> > Ref: http://blog.ioshints.info/2007/08/default-dhcp-client-id.html >> > >> > >> > ip dhcp pool test >> > host 192.168.1.1 255.255.255.0 >> > client-identifier 01ca.0108.d000.1c >> > >> > >> > interface FastEthernet1/0 >> > ip dhcp client client-id FastEthernet1/0 >> > ip address dhcp >> > duplex auto >> > speed auto >> > >> > FastEthernet1/0 192.168.1.1 YES DHCP up >> > >> > regards, >> > gobinath. >> > >> > On Wed, Oct 12, 2011 at 9:23 PM, Marko Milivojevic <[email protected] >> > >> > wrote: >> >> >> >> Have you tried the debug I asked you to do? Try it... See what >> >> client-id is coming from the router. >> >> >> >> (I can give you the answer, but then you will not be able to >> >> troubleshoot a similar issue come the lab day) >> >> >> >> -- >> >> Marko Milivojevic - CCIE #18427 (SP R&S) >> >> Senior Technical Instructor - IPexpert >> >> >> >> On Wed, Oct 12, 2011 at 00:20, Laurent Loingeville <[email protected] >> > >> >> wrote: >> >> > Hi, >> >> > Prefix the client-id with 01 soesn't work...:-( I am really >> desesperate >> >> > with that functionnality.. >> >> > >> >> > >> >> > R1 (client)-------------> R2(dhcp server 150.100.12.2 /24) >> >> > Here is the config from the server: >> >> > interface FastEthernet0/0ip address 150.100.12.2 255.255.255.0speed >> >> > 100full-duplex >> >> > ip dhcp pool TESThost 150.100.12.1 255.255.255.0client-identifier >> >> > c207.0ad0.0000default-router 150.100.12.2 >> >> > >> >> > >> >> > From the client: >> >> > int fa0/0ip add dhcp >> >> > >> >> > >> >> > >> >> > The messages from the server are: >> >> > *Mar 1 00:08:19.707: DHCPD: Sending notification of DISCOVER*Mar 1 >> >> > 00:08:19.711: DHCPD: htype 1 chaddr c207.106c.0000*Mar 1 >> 00:08:19.711: >> >> > DHCPD: remote id 020a000096640c0200000000*Mar 1 00:08:19.715: >> DHCPD: >> >> > circuit id 00000000*Mar 1 00:08:19.715: DHCPD: Seeing if there is an >> >> > internally specified pool class:*Mar 1 00:08:19.719: DHCPD: htype >> 1 >> >> > chaddr c207.106c.0000*Mar 1 00:08:19.719: DHCPD: remote id >> >> > 020a000096640c0200000000*Mar 1 00:08:19.723: DHCPD: circuit id >> >> > 00000000*Mar 1 00:08:19.723: DHCPD: there is no address pool for >> >> > 150.100.12.2.R2(dhcp-config)# >> >> > --- En date de : Mar 11.10.11, arulgobinath emmanuel >> >> > <[email protected]> a écrit : >> >> > >> >> > De: arulgobinath emmanuel <[email protected]> >> >> > Objet: Re: [OSL | CCIE_RS] Manual DHCP not working >> >> > À: "Laurent Loingeville" <[email protected]> >> >> > Cc: "[email protected]" <[email protected]> >> >> > Date: Mardi 11 octobre 2011, 16h08 >> >> > >> >> > HI, >> >> > . in this situation you have to use the hardware address parameter. >> >> > according to your debug msg it showing the mac-address as the client >> id. >> >> > if you are using the client id you have to prepend 01. >> >> > >> >> > >> http://blog.ioshints.info/2007/09/assigning-server-ip-addresses-with-dhcp.html >> >> > >> >> > >> >> > In the real world environment IOS static mapping will be a difficult >> >> > task wins 7 send client id, linux flavor send mac address :) >> >> > >> >> > Best Regards, >> >> > Gobinath. >> >> > >> >> > >> >> > On Tue, Oct 11, 2011 at 2:49 PM, Laurent Loingeville >> >> > <[email protected]> wrote: >> >> > >> >> > Hi, >> >> > >> >> > I tried to test manual DHCP binding with the most basic link but it >> is >> >> > not working. >> >> > >> >> > R1 (client)-------------> R2(dhcp server 150.100.12.2 /24) >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > Here is the config from the server: >> >> > >> >> > interface FastEthernet0/0 ip address 150.100.12.2 255.255.255.0 speed >> >> > 100 full-duplexend >> >> > >> >> > ip dhcp pool TEST host 150.100.12.1 255.255.255.0 >> client-identifier >> >> > c207.0ad0.0000 default-router 150.100.12.2 >> >> > >> >> > >> >> > >> >> > From the client: >> >> > >> >> > int fa0/0ip add dhcp >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > Here is th e debug log i got on the server: >> >> > >> >> > *Mar 1 00:43:59.475: DHCPD: Sending notification of DISCOVER:*Mar 1 >> >> > 00:43:59.479: DHCPD: htype 1 chaddr c207.0ad0.0000*Mar 1 >> 00:43:59.479: >> >> > DHCPD: remote id 020a000096640c0200000000*Mar 1 00:43:59.479: >> DHCPD: >> >> > circuit id 00000000*Mar 1 00:43:59.483: DHCPD: Seeing if there is an >> >> > internally specified pool class:*Mar 1 00:43:59.483: DHCPD: htype >> 1 >> >> > chaddr c207.0ad0.0000*Mar 1 00:43:59.487: DHCPD: remote id >> >> > 020a000096640c0200000000*Mar 1 00:43:59.487: DHCPD: circuit id >> >> > 00000000*Mar 1 00:43:59.491: DHCPD: there is no address pool for >> >> > 150.100.12.2.R2(config)# >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > I tried with hardware address instead of client-id but nothing.Tried >> >> > clinet-id with 020a000096640c0200000000 but still nothing.I don't >> know why i >> >> > get the message "no address pool" >> >> > >> >> > >> >> > >> >> > Best regards >> >> > >> >> > >> >> > >> >> > _______________________________________________ >> >> > >> >> > For more information regarding industry leading CCIE Lab training, >> >> > please visit www.ipexpert.com >> >> > >> >> > >> >> > >> >> > Are you a CCNP or CCIE and looking for a job? Check out >> >> > www.PlatinumPlacement.com >> >> > >> >> > >> >> > >> >> > _______________________________________________ >> >> > For more information regarding industry leading CCIE Lab training, >> >> > please visit www.ipexpert.com >> >> > >> >> > Are you a CCNP or CCIE and looking for a job? Check out >> >> > www.PlatinumPlacement.com >> >> > >> > >> > >> _______________________________________________ >> For more information regarding industry leading CCIE Lab training, please >> visit www.ipexpert.com >> >> Are you a CCNP or CCIE and looking for a job? Check out >> www.PlatinumPlacement.com >> > > _______________________________________________ For more information regarding industry leading CCIE Lab training, please visit www.ipexpert.com Are you a CCNP or CCIE and looking for a job? Check out www.PlatinumPlacement.com
