03-11-2021 09:28 AM
Hello, my router is acting as a dhcp. However i notice that i cannot get my pc's are not getting an ip address these are my configurations. I am not sure what am doing wrong. I also, inculded a screenshot of the network topology.
Router 0
ip dhcp pool vlan5
network 192.168.35.0 255.255.255.224
default-router 192.168.35.1
ip dhcp pool vlan10
network 192.168.35.32 255.255.255.224
default-router 192.168.35.33
ip dhcp pool vlan15
network 192.168.35.64 255.255.255.224
default-router 192.168.35.65
ip dhcp excluded-address 192.168.85.1
ip dhcp excluded-address 192.168.35.33
ip dhcp excluded-address 192.168.35.65
ip dhcp excluded-address 192.168.35.97
interface gigabitEthernet 0/0.1
encapsulation dot1Q 5
ip address 192.16.35.1 255.255.255.224
interface gigabitEthernet 0/0.2
encapsulation dot1Q 10
ip address 192.16.35.33 255.255.255.224
interface gigabitEthernet 0/0.3
encapsulation dot1Q 15
ip address 192.16.35.65 255.255.255.224
interface gigabitEthernet 0/0.4
encapsulation dot1Q 20
ip address 192.16.35.97 255.255.255.224
Building A1
interface GigabitEthernet0/1
switchport mode trunk
!
interface GigabitEthernet1/1
switchport mode trunk
!
interface GigabitEthernet2/1
switchport mode trunk
!
Building A2
interface GigabitEthernet0/1
switchport mode trunk
!
int Gig0/1
switchport access
switchport mode trunk
int fa0/1
switchport access vlan 5
int fa0/2
switchport access vlan 10
int fa0/3
switchport access vlan 15
Building A3
interface GigabitEthernet0/1
switchport mode trunk
!
int Gig0/1
switchport access
switchport mode trunk
int fa0/1
switchport access vlan 20
int fa0/2
switchport access vlan 10
int fa0/3
switchport access vlan 15
03-11-2021 10:56 AM
i am not a user of packet tracer.
high level -
do you have VLAN created in all the switches? by default cisco use default VLAN1 as native VLAN.
so make sure one of the VLAN setups is native VLAN.
suggestions :
- create another VLAN for the management of the switch
- create a SVI for the management VLAN with a static IP
- subinterface on the router for the management VLAN
- set the default-gateway of the switch with a static IP (IP of the router subinterface)
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide