#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2008
    Location
    CA
    Posts
    258
    Rep Power
    56

    Packet Tracer and DHCP Configuration


    I'm trying to teach myself how to set up and configure a LAN using packet tracer, but I am running into a problem. The server I designated for DHCP isn't assigning IP addresses. I attached two pictures below. The first is the Switch table so you can see there are no ips being assigned. The second is the server's configuration. Can someone explain what the problem is?

    Thank you.
    Attached Images
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Regular (2000 - 2499 posts)

    Join Date
    May 2004
    Location
    surfing the interwebz
    Posts
    2,410
    Rep Power
    2005
    Do you have a way to view the traffic going across? Can you see if your DHCP server is sending out DHCP offer messages or getting DHCP discover messages?
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2008
    Location
    CA
    Posts
    258
    Rep Power
    56
    Originally Posted by seack79
    Do you have a way to view the traffic going across? Can you see if your DHCP server is sending out DHCP offer messages or getting DHCP discover messages?
    There might be a way to do that, but I haven't figured it out yet. Does the configuration look okay on the server image?
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Regular (2000 - 2499 posts)

    Join Date
    May 2004
    Location
    surfing the interwebz
    Posts
    2,410
    Rep Power
    2005
    You do have the DHCP service started and the address pool I think is setup right. Do you have to specify a range of IP addresses to lease out or does the device automatically assume a 10.x.x.x/24 network?

    If so, it looks like all the devices are connected via the switch just fine. If you can, run wireshark on the DHCP server and see what packets are coming into it.
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2009
    Location
    Oregon
    Posts
    99
    Rep Power
    337
    Originally Posted by CallowAdmin
    I'm trying to teach myself how to set up and configure a LAN using packet tracer, but I am running into a problem. The server I designated for DHCP isn't assigning IP addresses. I attached two pictures below. The first is the Switch table so you can see there are no ips being assigned. The second is the server's configuration. Can someone explain what the problem is?

    Thank you.
    Have you looked at either of the PCs you have connected to the switch? I can put pretty much the same configuration you have in Packet Tracer 5.1, tell the PCs to automatically receive an IP from DHCP, and they will show an IP assigned while the switch still shows <not set>.

    This makes me wonder if it is either a bug in Packet Tracer of it that table were supposed to be for the switch DHCP features. The latter is a big hard to test since the "IOS" available for the switches in Packet Tracer only includes a select number of commands.
  10. #6
  11. Automagically Delicious
    Devshed Regular (2000 - 2499 posts)

    Join Date
    May 2004
    Location
    127.0.0.2 - I live next door.
    Posts
    2,202
    Rep Power
    2737
    HAHAHAH, had to look at this one a few times to realize what's going on...

    The switch ports will NOT have an IP address on them because they ARE LAYER 2 PORTS. Layer 2 is MAC address only, meaning you should take a look at the ARP table.

    Some Cisco switches (including the 3560 you have listed there) can support advanced IOS images where you can basically give an interface an IP address and turn on "Layer 3" switching a.k.a. "Routing". Since this is not the case, all of your interfaces will have an IP address of <not set>.

    However, you will want to put an IP address on VLAN 1 since it is your management VLAN (by default) and will allow you to remote into the switch to manage it.
    Last edited by AdamPI; April 29th, 2009 at 10:09 AM.
    Adam TT
  12. #7
  13. No Profile Picture
    network dude
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Dec 2003
    Posts
    1,698
    Rep Power
    114
    The switch needs no configuration since all ports are in vlan1. However you are looking at the switchports to determine if DHCP is working and the switchports and vlans are not set to get DHCP addresses so will not have anything. Check the PC's and see if they got an address not the switch.
  14. #8
  15. No Profile Picture
    Contributing User
    Devshed Regular (2000 - 2499 posts)

    Join Date
    May 2004
    Location
    surfing the interwebz
    Posts
    2,410
    Rep Power
    2005
    You have got to be kidding me, you never checked the PCs themselves?

    Just fooling with you...
  16. #9
  17. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2008
    Location
    CA
    Posts
    258
    Rep Power
    56
    I definitely checked the PCs. When I request an IP it says "DHCP request failed"

    :/
  18. #10
  19. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2008
    Location
    CA
    Posts
    258
    Rep Power
    56
    So I manually set the IP and subnet on the server, and now it is assigning IPs. The thing is, the range is different than what I assigned. I said to begin with 10.148.5.1 and it is using 10.0.0.1

    Why would this happen?
  20. #11
  21. No Profile Picture
    Contributing User
    Devshed Regular (2000 - 2499 posts)

    Join Date
    May 2004
    Location
    surfing the interwebz
    Posts
    2,410
    Rep Power
    2005
    This will happen (I think) if you don't have the proper subnet mask specified. You're using a class A IP address. If you don't specify a 24-bit mask (i.e., 255.255.255.0) it may default to an 8-bit mask since it's class A.

    If you can, see if you can specify 10.x.x.x/24 or a subnet mask of 255.255.255.0
  22. #12
  23. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2008
    Location
    CA
    Posts
    258
    Rep Power
    56
    Originally Posted by seack79
    This will happen (I think) if you don't have the proper subnet mask specified. You're using a class A IP address. If you don't specify a 24-bit mask (i.e., 255.255.255.0) it may default to an 8-bit mask since it's class A.

    If you can, see if you can specify 10.x.x.x/24 or a subnet mask of 255.255.255.0
    That makes sense, actually. And now it works.
  24. #13
  25. No Profile Picture
    Contributing User
    Devshed Regular (2000 - 2499 posts)

    Join Date
    May 2004
    Location
    surfing the interwebz
    Posts
    2,410
    Rep Power
    2005
    Eh, I get lucky every once in a while. Glad it's working.

IMN logo majestic logo threadwatch logo seochat tools logo