How to force DHCP client router to renew its lease?

Discussion in 'Cisco' started by JohnH., Feb 4, 2006.

  1. JohnH.

    JohnH. Guest

    Hi,

    I have a Cisco 2514 acting as an Internet gateway in a CCNA study lab
    setup. I have a Comcast cable modem connect to e1. The 2514 is
    configured as a DHCP client to get its IP addressing info from Comcast.
    This all works fine.

    Occasionally when I change configurations in the lab I want to force
    the 2514 to renew its DHCP lease info from Comcast. The only way I
    have been able to do this is to power cycle the cable modem. Then
    "shutdown", "no shutdown" interface e1. Simply shutting down
    the interface and bringing it back up does not cause the router to get
    a fresh IP address on e1 unless I power cycle the modem first.

    Is there a better way to do this? It seems to that there would be a
    direct unambiguous command to renew the DHCP client, something akin to
    "ipconfig /renew" in windows. But, I'm new to this and may not
    be thinking in the correct context.

    Thanks,
    John
     
    JohnH., Feb 4, 2006
    #1
    1. Advertising

  2. "JohnH." <> wrote in message
    news:...

    > Is there a better way to do this? It seems to that there would be a
    > direct unambiguous command to renew the DHCP client, something akin to
    > "ipconfig /renew" in windows. But, I'm new to this and may not
    > be thinking in the correct context.Not sure about 2500's, but other CIsco

    IOS router, you can go into conf-t mode under the interface and simply
    re-issue the "ip address dhcp command"
    This will then, as it is in running config, get excecuted at once.

    Try it, and give a yell, if its ok or not.

    HTH
    Martin Bilgrav
     
    Martin Bilgrav, Feb 4, 2006
    #2
    1. Advertising

  3. JohnH.

    JohnH. Guest

    Thanks, that did it. i copied the "ip address DHCP..." command into
    the clipboard, entered "no ip address." I then pasted the ip address
    dhcp command back from the clipboard hit enter and a new IP address was
    recieved from the ISP right away.
     
    JohnH., Feb 6, 2006
    #3
  4. no need to say "no ip address" first, just simply re-issue the "ip address
    dhcp"

    HTH
    Martin

    "JohnH." <> wrote in message
    news:...
    > Thanks, that did it. i copied the "ip address DHCP..." command into
    > the clipboard, entered "no ip address." I then pasted the ip address
    > dhcp command back from the clipboard hit enter and a new IP address was
    > recieved from the ISP right away.
    >
     
    Martin Bilgrav, Feb 7, 2006
    #4
  5. JohnH.

    JohnH. Guest

    Thanks for the tip!
     
    JohnH., Feb 8, 2006
    #5
    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. Replies:
    0
    Views:
    1,219
  2. Replies:
    0
    Views:
    1,524
  3. Replies:
    0
    Views:
    1,849
  4. Replies:
    2
    Views:
    958
    Bert Hyman
    Dec 31, 2008
  5. rsjimmy
    Replies:
    3
    Views:
    2,708
    rsjimmy
    Jan 8, 2009
Loading...

Share This Page