Options

How do I get DHCP to work?

Raymond MasonRaymond Mason Member Posts: 74 ■■□□□□□□□□
Hello, I have been trying to practice on DHCP but packet tracer doesn't seem to want to do it. I tried to put in the exact commands in a router but they aren't recognized. icon_sad.gif

Can you guys help guide me through this?

Comments

  • Options
    DCDDCD Member Posts: 473 ■■■■□□□□□□
    Which version of PT are you using and which device? And show the commands you are using.
  • Options
    Ltat42aLtat42a Member Posts: 587 ■■■□□□□□□□
    DHCP works good in PT, what kind of trouble are you having?
  • Options
    shaun5263shaun5263 Member Posts: 120 ■■■□□□□□□□
    Hello, I have been trying to practice on DHCP but packet tracer doesn't seem to want to do it. I tried to put in the exact commands in a router but they aren't recognized. icon_sad.gif

    Can you guys help guide me through this?

    I also use packet tracer and it seems to be working for me. Can you share your config with us and describe your setup?
  • Options
    R2dTOOR2dTOO Member Posts: 13 ■□□□□□□□□□
    Hello, I have been trying to practice on DHCP but packet tracer doesn't seem to want to do it. I tried to put in the exact commands in a router but they aren't recognized. icon_sad.gif

    Can you guys help guide me through this?
    First, exclude the IPs that you don't want handed out:
    router(config)#ip dhcp excluded-address [Start IP] [End IP]
    

    Create the DHCP Pool:
    router(config)#ip dhcp pool WORD
    

    Tell the router the DHCP Scope:
    router(dhcp-config)#network [Network] [Subnet Mask]
    

    And the DNS Server(s):
    router(dhcp-config)#dns-server [DNS 1] [DNS 2]
    

    Finally, the Default Router:
    router(dhcp-config)#default-router [Router IP]
    

    This should work without any issues.
Sign In or Register to comment.