How do I get DHCP to work?

Raymond MasonRaymond Mason Posts: 74Member ■■□□□□□□□□
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

  • DCDDCD Posts: 449Member
    Which version of PT are you using and which device? And show the commands you are using.
  • Ltat42aLtat42a Posts: 585Member ■■■□□□□□□□
    DHCP works good in PT, what kind of trouble are you having?
  • shaun5263shaun5263 Posts: 117Member ■■□□□□□□□□
    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?
  • R2dTOOR2dTOO Posts: 13Member ■□□□□□□□□□
    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.