06-22-2022 01:40 AM
Configured DHCP on R3 .why I am not getting ip on downstream switches? is there any config left ?
Router(config)#do sh running-config
Building configuration...
Current configuration : 707 bytes
!
version 15.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router
!
ip dhcp excluded-address 10.0.0.2 10.0.0.100
!
ip dhcp pool Rahul
network 10.0.0.0 255.0.0.0
default-router 10.0.0.1
dns-server 10.0.0.1
!
06-22-2022 02:04 AM
Hello,
What is the IP address and mask of the interface connected to the switch? It should be 10.0.0.1 255.0.0.0 This is how the router knows how to hand out ip addresses in that range to hosts in that subnet and what interface to use. If that is configured can you provide the full show run of the router and one of the switches?
-David
06-22-2022 02:14 AM
Configured DHCP on R3 .why I am not getting ip on downstream switches? is there any config left ?
make sure you also exclude gateway IP.
ip dhcp excluded-address 10.0.0.1 10.0.0.100
If all the switches are Layer 2 ( all in VLAN 1) the end node get IP address from Router3 DHCP Server.
Make sure you have right config on Switch 3 connected port to Router 3
example config :
Switch0(config)# interface gigabitethernet 0/0
Switch0(config-if)# switchport trunk encapsulation dot1q
Switch0(config-if)# switchport mode trunk
Router3(config)# interface gigabitethernet0/0
Router3(config-if)# no ip address
Router3(config-if)# interface gigabitethernet0/0.1
Router3(config-subif)# encapsulation dot1q 1 native
Router3(config-subif)# ip address 10.0.0.1 255.0.0.0
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