DHCP Configuration

In this LAB, How can I configure different DHCP pool, for each different VLAN ?

Check links for configuration and packet tracer file.

on your layer 3 switch
en
conf t
ip dhcp pool vlan10
default-router 10.1.10.1
network 10.1.10.2 255.255.255.0

ip dhcp pool vlan20
default-router 10.1.20.1
network 10.1.20.2 255.255.255.0

ip dhcp pool vlan30
default-router 10.1.30.1
network 10.1.30.2 255.255.255.0

ip dhcp pool vlan40
default-router 10.1.40.1
network 10.1.40.2 255.255.255.0

pool name you can change as your understanding

2 Likes

Thank You,
Nitish but actually I wan to config on server. cany guid plz ?

In windows servers you have to add the number of scope, each VLAN should have it’s own DHCP scope

why network start from 2? eg 10.1.30.2

gate way ip address 10.1.30.1 already assigned so next available ip starting from 2,also we can deside the range as per scenario

Please check the L3 switch configuration.

  1. L3 switch to L2 switch enable trunk port. also L3 to server
  2. create VLAN and IP address on the l3 switch (gateway)
  3. assign IP address for vlan 1
  4. each VLAN interface add command (IP helper-address) (DHCP Server IP)
  5. assign the same VLAN number and name on server and l2 switch

PKT file for ref