Lab3:3DHCPPacketTracer - echadbourne/NET-330 GitHub Wiki
3-2 Setup
In order to set up the FastEthernet0/3 port with an IP address I needed to configure it as a routable port, because I was getting an error when I tried to assign it an IP address (as shown below)
To fix this, I went into the interface and used no switchport
to declare the interface a routable port and not a simple switchport. I could then assign the IP address like I needed to
I also made sure to enable the VLAN 1 interface by going into the interface (int vlan 1
) and turning it on (no shut
)
DHCP in Packet Tracer
To set up DHCP in packet tracer you will need to put a server onto the workspace, and in the "services" tab go to DHCP. In there, add all of you addresses according to the subnet table, making sure to change everything to the proper router, subnet mask, beginning IP address, and putting the number of hosts close to that of the host # in the subnet table. This is what mine looked like when I was done ("serverPool" is the default and became the management subnet)
I was not really able to effectively change the settings on the serverPool, and I actually could not get DHCP to work for serverPool like it was supposed to. All of the other pools worked fine though. No matter what way I connected a computer to the switch (directly, through another switch, etc) the default vlan and server pool would not work
To assign a helper address I made note of the IP address of the dhcp server (10.10.10.2) and in the config for each vlan (int vlan #
) set the helper ip to that ip: ip helper-address 10.10.10.2
After that I went into each of the settings for each host and set them to receive DHCP addresses. They all recieved them with no issue, aside from the management server as previously stated.