1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to bind an IP to a MAC address?

Discussion in 'General Cisco Certifications' started by albertc30, Jan 17, 2010.

  1. albertc30

    albertc30 Kilobyte Poster

    423
    1
    37
    Hello everybody.
    Having a nice day?
    Well, I can say that I am having one, well, sort of with this Cisco stuff going round my head.
    Anyways, I want to assign my wife's laptop with the same IP address every time she connects to our network.
    I know I could make it static on her machine but then, when she takes out to friends she would have to change the settings to accept an IP from DHCP.
    I have been looking around in Cisco's website and it seems I have to do a dhcp pool. In this pool if I have the network statement I can't use binding.
    Any help on this would be as usual greatly appreciated.
    Cheers
     
    Certifications: CCNA
    WIP: 220-701 - A+
  2. dmarsh

    dmarsh Terabyte Poster

    3,782
    302
    184
    I'm not a Cisco guy but see here :-

    http://www.cisco.com/en/US/docs/ios/12_2/ip/configuration/guide/1cfdhcp.html

    Under configuring manual bindings...
     
    Certifications: CITP, BSc, HND, SCJP, SCJD, SCWCD, SCBCD, SCEA, N+, Sec+, Proj+, Server+, Linux+, MCTS, MCPD, MCSA, MCITP, CCDH
  3. albertc30

    albertc30 Kilobyte Poster

    423
    1
    37
    LOL...
    Been there, done that but the lapop was still not getting the IP that I had in the binding pool hence why my post.
    Maybe I have done something wrong.
    I'll keep trying and I'll post my conf latter today.
    Thanks
     
    Certifications: CCNA
    WIP: 220-701 - A+
  4. albertc30

    albertc30 Kilobyte Poster

    423
    1
    37
    Hello.
    This is what I got:

    CR1721#sh ip dhcp binding
    Bindings from all pools not associated with VRF:
    IP address Client-ID/ Lease expiration Type
    Hardware address/
    User name
    192.168.28.236 0100.22fb.70d6.46 Infinite Manual
    CR1721#
    Jan 11 19:11:12.322: DHCPD: DHCPREQUEST received from client 0100.22fb.70d6.46.
    Jan 11 19:11:16.702: DHCPD: DHCPREQUEST received from client 0100.22fb.70d6.46.
    Jan 11 19:11:23.814: DHCPD: DHCPREQUEST received from client 0100.22fb.70d6.46.
    Jan 11 19:11:39.602: DHCPD: DHCPREQUEST received from client 0100.22fb.70d6.46.
    Jan 11 19:11:44.610: DHCPD: DHCPREQUEST received from client 0100.22fb.70d6.46.
    Jan 11 19:11:52.362: DHCPD: DHCPREQUEST received from client 0100.22fb.70d6.46.
    Jan 11 19:14:22.762: DHCPD: Sending DHCPACK to client 0100.22fb.70d6.46 (192.168.28.234).
    Jan 11 19:14:22.762: DHCPD: unicasting BOOTREPLY to client 0022.fb70.d646 (192.168.28.234).
    Jan 11 19:14:35.306: DHCPD: checking for expired leases.


    The laptop was offered IP 192.168.28.234, not the .236 as peer instructed on the binding.
    Amazingly when I do a sh ip dhcp binding, it shows only this;

    CR1721#sh ip dhcp binding
    Bindings from all pools not associated with VRF:
    IP address Client-ID/ Lease expiration Type
    Hardware address/
    User name
    192.168.28.236 0100.22fb.70d6.46 Infinite Manual
    CR1721#

    If it offered the .234, why isn't it showing here?

    My config is as shows:

    ip dhcp pool RAPC
    host 192.168.28.236 255.255.255.248
    hardware-address 0100.22fb.70d6.46 ieee802 (it is the correct hardware mac address)
    client-name RAPC(it's the laptops name)

    What am I doing wrong guys and girls?
     
    Last edited: Jan 17, 2010
    Certifications: CCNA
    WIP: 220-701 - A+
  5. albertc30

    albertc30 Kilobyte Poster

    423
    1
    37
    Come on you guys? Anybody?

    Why isn't my Cisco router giving the reserved IP address which bind to the machine's MAC?
    Why is the pc still getting an IP from the other pool and not using the IP from the binding pool?
    I'm lost you guys.
    I have googled it and straight into ciscos website but still it is not working.
    As ussual, any help well appreciated.
     
    Certifications: CCNA
    WIP: 220-701 - A+
  6. Nelix
    Honorary Member

    Nelix Gigabyte Poster

    1,412
    3
    82
    Whats the Make and Model of the router?

    Are you wireless or Wired?
     
    Certifications: A+, 70-210, 70-290, 70-291
    WIP: 70-294
  7. Bluerinse
    Honorary Member

    Bluerinse Exabyte Poster

    8,871
    167
    256
    It may be just me but your example of a MAC address doesn't follow Cisco or the usual critera :rolleyes:

    http://en.wikipedia.org/wiki/MAC_address
     
    Certifications: C&G Electronics - MCSA (W2K) MCSE (W2K)
  8. albertc30

    albertc30 Kilobyte Poster

    423
    1
    37
    Hello mate.
    It's a modular 1721 with an ISDN and a 4 port switch.
    The laptop can be booth wireless or physical but I am staying with just the physical for know.
    Cheers.
     
    Certifications: CCNA
    WIP: 220-701 - A+
  9. albertc30

    albertc30 Kilobyte Poster

    423
    1
    37
    You do have a point but, this is what I have on the router;

    CR1721#sh ip dhcp bin
    Bindings from all pools not associated with VRF:
    IP address Client-ID/ Lease expiration Type
    Hardware address/
    User name
    192.168.28.233 0100.22fb.70d6.46 Jan 13 2010 06:36 AM Automatic
    192.168.28.236 0100.22fb.70d6.46 Infinite Manual
    CR1721#

    Now, the .233 is on my laptop as I have just checked it.
    The laptops NIC MAC however reads 00-22-FB-70-D6-46.

    Instead of typing it to the router I just copied and paste it onto the binding pool.
    Maybe this is where all went wrong?
     
    Certifications: CCNA
    WIP: 220-701 - A+
  10. Spice_Weasel

    Spice_Weasel Kilobyte Poster

    254
    45
    45
    I would suggest removing the hardware address line from your config and replacing it with a client identifier, e.g.:

    ip dhcp pool RAPC
    host 192.168.28.236 255.255.255.248
    client-identifier 0100.22fb.70d6.46

    BTW, the identifier has the "01" prepended onto the mac address to indicate that it's type is ethernet.

    Spice_Weasel
     
    Certifications: CCNA, CCNP, CCIP, JNCIA-ER, JNCIS-ER,MCP
    WIP: CCIE
  11. albertc30

    albertc30 Kilobyte Poster

    423
    1
    37
    ... and Spice_Weasel is my saviour.:D
    Where have you been man!!!
    It is done, it's working.
    Thank GOD.
    Well, as I can't be too long without a headache I must be in pursuit of another one once again.

    One more question to all of you. For me to mess around with all this network here at home, I haven't got much yet but, the question is would you guys advice me to get a server as well? What can I have for the NOS? Windows 2003 or 2008 server? I know nothing of booth, last time I done Windows server was a NT server being migrated to a 2000 server and that was like 8 years ago at a school.

    All your thoughts and opinions are, as you know, more than welcome.

    Why was Ciscos website pointing me to do the

    ip dhcp pool NAME
    host 192.168.28.236 255.255.255.248
    hardware-address 0100.22fb.70d6.46 ieee802
    client-name NAME
    ?

    Thanks everybody.
     
    Certifications: CCNA
    WIP: 220-701 - A+
  12. Spice_Weasel

    Spice_Weasel Kilobyte Poster

    254
    45
    45
    Glad to be of help!

    Hardware-address is used for bootp clients, client-identifier for dhcp clients.

    Spice_Weasel
     
    Certifications: CCNA, CCNP, CCIP, JNCIA-ER, JNCIS-ER,MCP
    WIP: CCIE

Share This Page

Loading...