Using the information below, we will
VLAN ID: 152
VLAN Name: AGENCY-DHCP
VLAN IP: 10.10.152.1/24
The remaining steps will show you how to add the DHCP scope to the switch. The name “AGENCY-DHCP” is purely for the context of this tutorial. Please use something that pertains to your use case.
Next, we must create an address pool for IP addresses to be assigned to clients.
Next, we need to assign the low & high addresses to the DHCP scope for assignment. Again, here the names “AT-range-01” are just a suggestion based on the name of the scope, AGENCY-DHCP.
Finally, we need to set the default gateway of the DHCP scope, set the refresh time, and add the name servers to the scope.
NOTE: 86400 seconds is 24 hours
UPDATE: Use 604800 seconds (7 days) to avoid DHCP issues.
NOTE: 22.214.171.124 & 126.96.36.199 are Googles public DNS and are required for web traffic to flow correctly. If you are using this as a core switch, make sure to have a DNS server of some sort.
NOTES: When setting up the DHCP scope for phones, you need to use the Option 150 setting and specify the phone TFTP servers. The syntax of the command looks like this… (this is the setup for our current phone system). Again the names are irrelevant. Also, 10.10.48.5/6 is just an example, you will need to point to your own PBX.
set access address-assignment pool LEGACY-VOICE family inet dhcp-attributes option 150 array ip-address 10.10.48.5
set access address-assignment pool LEGACY-VOICE family inet dhcp-attributes option 150 array ip-address 10.10.48.6