Csico DHCP static mapping

Discussion in 'Cisco' started by abc, Sep 26, 2007.

  1. abc

    abc Guest

    Hello,

    I have cisco router running as DHCP server (12.2.(46)). It leases IP
    addresses dynamically with no problem. However, when I try to configure
    static binding , it does not work!

    I tried both hardware-address and client-identification commands both of
    which failed. I see many contradictions on the net regarding this method so
    any advice would be most appreciated.

    Here is the config snippet:

    !
    ip dhcp pool 5
    host 3.3.3.33 255.255.255.0
    hardware-address ca02.13f8.001c
    default-router 3.3.3.20
    !

    Here is binding

    R1#sh ip dhcp bind
    IP address Client-ID/ Lease expiration Type
    Hardware address
    3.3.3.1 0063.6973.636f.2d63. Sep 27 2007 09:36 AM Automatic
    6130.322e.3064.6438.
    2e30.3031.632d.4574.
    312f.30
    3.3.3.33 ca02.13f8.001c Infinite Manual

    ---------------------------

    I am trying to map 3.3.3.33 to ca02.13f8.001c which is not working.

    Thanks
     
    abc, Sep 26, 2007
    #1
    1. Advertising

  2. abc

    Merv Guest

    On Sep 26, 3:39 am, "abc" <> wrote:
    > Hello,
    >
    > I have cisco router running as DHCP server (12.2.(46)). It leases IP
    > addresses dynamically with no problem. However, when I try to configure
    > static binding , it does not work!
    >
    > I tried both hardware-address and client-identification commands both of
    > which failed. I see many contradictions on the net regarding this method so
    > any advice would be most appreciated.
    >
    > Here is the config snippet:
    >
    > !
    > ip dhcp pool 5
    > host 3.3.3.33 255.255.255.0
    > hardware-address ca02.13f8.001c
    > default-router 3.3.3.20
    > !
    >
    > Here is binding
    >
    > R1#sh ip dhcp bind
    > IP address Client-ID/ Lease expiration Type
    > Hardware address
    > 3.3.3.1 0063.6973.636f.2d63. Sep 27 2007 09:36 AM Automatic
    > 6130.322e.3064.6438.
    > 2e30.3031.632d.4574.
    > 312f.30
    > 3.3.3.33 ca02.13f8.001c Infinite Manual
    >
    > ---------------------------
    >
    > I am trying to map 3.3.3.33 to ca02.13f8.001c which is not working.



    ======



    AFAIK you must aconfigure the DHCP client-identifier command for
    manual bindings:


    config t
    no ip dhcp pool 5

    ip dhcp pool 5
    host 3.3.3.33 255.255.255.0
    client-identifier 01ca.0213.f800.1c
    default-router 3.3.3.20
    client-name TEST
    end


    sh ip dhcp bind


    use the "debug ip dhcp server packet" command to verify the DHCP
    client identifier
    being send by the PC with MAC address ca02.13f8.001c

    The identifier may be:

    ca02.13f8.001c

    01ca.0213.f800.1c
     
    Merv, Sep 26, 2007
    #2
    1. Advertising

  3. abc

    abc Guest

    > AFAIK you must aconfigure the DHCP client-identifier command for
    > manual bindings:
    >
    >
    > config t
    > no ip dhcp pool 5
    >
    > ip dhcp pool 5
    > host 3.3.3.33 255.255.255.0
    > client-identifier 01ca.0213.f800.1c
    > default-router 3.3.3.20
    > client-name TEST
    > end
    >
    >
    > sh ip dhcp bind
    >
    >
    > use the "debug ip dhcp server packet" command to verify the DHCP
    > client identifier
    > being send by the PC with MAC address ca02.13f8.001c
    >
    > The identifier may be:
    >
    > ca02.13f8.001c
    >
    > 01ca.0213.f800.1c
    >
    >
    >
    >


    Tried that also, but no help! sh ip dhcp bind shows a long entry for MAC
    address (or whatever that is):

    0063.6973.636f.2d63.6130.322e.3064.6438.2e30.3031.632d.4574.312f.30

    instead of ca02.13f8.001c or 01ca.0213.f800.1c

    regards

    Ivica
     
    abc, Sep 28, 2007
    #3
  4. On Fri, 28 Sep 2007 10:01:00 +0200, abc wrote:

    >> AFAIK you must aconfigure the DHCP client-identifier command for
    >> manual bindings:

    >
    > Tried that also, but no help! sh ip dhcp bind shows a long entry for MAC
    > address (or whatever that is):
    >
    > 0063.6973.636f.2d63.6130.322e.3064.6438.2e30.3031.632d.4574.312f.30
    >
    > instead of ca02.13f8.001c or 01ca.0213.f800.1c
    >


    That's a client-id from a Cisco router. If you treat each pair of digits
    as an ASCII character it spells ".cisco-ca02.0dd8.001c-Et1/0".

    So try configuring it like this.

    ip dhcp pool 5
    host 3.3.3.33 255.255.255.0
    client-identifier 0063.6973.636f.2d63.6130.322e.3064.6438.2e30.3031.632d.4574.312f.3001ca.0213.f800.1c
    default-router 3.3.3.20
    client-name TEST
    end

    --
    Rgds,
    Martin
     
    Martin Gallagher, Sep 28, 2007
    #4
  5. abc

    Merv Guest

    On Sep 28, 7:09 am, Martin Gallagher <>
    wrote:
    > On Fri, 28 Sep 2007 10:01:00 +0200, abc wrote:
    > >> AFAIK you must aconfigure the DHCP client-identifier command for
    > >> manual bindings:

    >
    > > Tried that also, but no help! sh ip dhcp bind shows a long entry for MAC
    > > address (or whatever that is):

    >
    > > 0063.6973.636f.2d63.6130.322e.3064.6438.2e30.3031.632d.4574.312f.30

    >
    > > instead of ca02.13f8.001c or 01ca.0213.f800.1c

    >
    > That's a client-id from a Cisco router. If you treat each pair of digits
    > as an ASCII character it spells ".cisco-ca02.0dd8.001c-Et1/0".
    >
    > So try configuring it like this.
    >
    > ip dhcp pool 5
    > host 3.3.3.33 255.255.255.0
    > client-identifier 0063.6973.636f.2d63.6130.322e.3064.6438.2e30.3031.632d.4574.312f.3001ca.0213.f800.1c
    > default-router 3.3.3.20
    > client-name TEST
    > end
    >
    > --
    > Rgds,
    > Martin



    I am curious, why would you be using a Cisco router as a DHCP client
    to another Cisco router ?
     
    Merv, Sep 28, 2007
    #5
  6. abc

    abc Guest


    > That's a client-id from a Cisco router. If you treat each pair of digits
    > as an ASCII character it spells ".cisco-ca02.0dd8.001c-Et1/0".
    >
    > So try configuring it like this.
    >
    > ip dhcp pool 5
    > host 3.3.3.33 255.255.255.0
    > client-identifier
    > 0063.6973.636f.2d63.6130.322e.3064.6438.2e30.3031.632d.4574.312f.3001ca.0213.f800.1c
    > default-router 3.3.3.20
    > client-name TEST
    > end
    >
    > --
    > Rgds,
    > Martin


    Excellent answer,Martin! Thank you, this was the issue!!

    regards

    Ivica
     
    abc, Sep 28, 2007
    #6
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Nieuws Xs4all
    Replies:
    0
    Views:
    624
    Nieuws Xs4all
    May 26, 2005
  2. Nieuws Xs4all
    Replies:
    2
    Views:
    1,623
    Jan-Willem
    May 26, 2005
  3. Replies:
    1
    Views:
    718
  4. ITCOM

    Csico 1721 Setup

    ITCOM, Mar 22, 2007, in forum: Cisco
    Replies:
    0
    Views:
    355
    ITCOM
    Mar 22, 2007
  5. Mag
    Replies:
    3
    Views:
    2,030
Loading...

Share This Page