cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1303
Views
1
Helpful
17
Replies

Enabled DHCP in my router to get IP's but unable to get IP's.

thirumg3
Level 1
Level 1

PFA for your reference 

in SW

interface FastEthernet0/1

switchport trunk allowed vlan 1,10,20

switchport mode trunk

!

interface FastEthernet0/2

switchport access vlan 10

switchport mode trunk

!

interface FastEthernet0/3

switchport access vlan 20

switchport mode trunk

!

interface Vlan1

no ip address

shutdown

!

!

!

!

line con 0

!

line vty 0 4

login

line vty 5 15

ROUTER

p dhcp excluded-address 10.1.10.1 10.1.10.99

ip dhcp excluded-address 10.1.20.1 10.1.20.99

!

ip dhcp pool VLAN10

network 10.1.10.0 255.255.255.0

default-router 10.1.10.1

dns-server 10.1.10.1

ip dhcp pool VLAN20

network 10.1.20.0 255.255.255.0

default-router 10.1.20.1

dns-server 10.1.20.1

 

17 Replies 17

Hello @thirumg3 

 

Please do [show interface status] on your switch and please share the output

Also do [show interface trunk] ont that switch.

Thanks.

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

. you must assign ip address to the Vlan not to the interface

I Think your configuration is not fully configured , You must connect  switch interface FastEthernet0/1 to router interface(inside interface) and  remove switchport mode trunk form all interface except f0/1 

Review Cisco Networking for a $25 gift card