I am currently building a network and would like my two switches connected to my router to automatically assign ip addresses through DHCP pools to my PC's and devices. I have 4 separate VLans being VLan 10 20 30 and 99. I believe I have set up pools correctly on my router but when I implement it, no device receives the pool'd ip and I get an "DHCP Failed APIPA is being used" My switches have the same configs because I'm just using them for redundancy purposes, I have no other protocols running currently as this is one of the earlier steps I am stuck on, all I have done is create and named the VLANS and created the pools.
This is my routers dhcp config
ip dhcp pool VOIP
network 192.168.100.0 255.255.255.0
default-router 192.168.10.254
ip dhcp pool Instructor
network 192.168.20.0 255.255.255.0
default-router 192.168.20.254
ip dhcp pool Student
network 192.168.30.0 255.255.255.0
default-router 192.168.30.254
ip dhcp pool Management
network 192.168.99.0 255.255.255.0
default-router 192.168.99.254
interface GigabitEthernet0/0
description Link to S1
no ip address
duplex auto
speed auto
!
interface GigabitEthernet0/0.10
encapsulation dot1Q 10
ip address 192.168.10.254 255.255.255.0
!
interface GigabitEthernet0/0.20
encapsulation dot1Q 20
ip address 192.168.20.254 255.255.255.0
!
interface GigabitEthernet0/0.30
encapsulation dot1Q 30
ip address 192.168.30.254 255.255.255.0
!
interface GigabitEthernet0/0.99
encapsulation dot1Q 99
ip address 192.168.99.254 255.255.255.0
I had the second switch configured originally in this too, but after the error I deleted the configs for g0/1 and decided to fix g0/0 first
This is my Switch 1
1 default active
10 VOIP active Fa0/21
20 Instructor active Gig0/2
30 Student active Fa0/1, Fa0/2, Fa0/3, Fa0/4
Fa0/5, Fa0/6, Fa0/7, Fa0/8
Fa0/9, Fa0/10, Fa0/11, Fa0/12
Fa0/13, Fa0/14, Fa0/15, Fa0/16
Fa0/17, Fa0/18, Fa0/19, Fa0/20
99 Management active Fa0/22, Gig0/1
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
This is my Switch 2
1 default active
10 VOIP active Fa0/21
20 Instructor active Gig0/2
30 Student active Fa0/1, Fa0/2, Fa0/3, Fa0/4
Fa0/5, Fa0/6, Fa0/7, Fa0/8
Fa0/9, Fa0/10, Fa0/11, Fa0/12
Fa0/13, Fa0/14, Fa0/15, Fa0/16
Fa0/17, Fa0/18, Fa0/19, Fa0/20
99 Management active Fa0/22, Gig0/1
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
This is the topology of the router and two switches
{}
).