Friday, October 1, 2021

PCs unable to obtain IP addresses from the DHCP Server

So I'm doing a simple lab on PT where 2 PCs are connected to a 3560 switch and the switch is connected to a router. I created a DHCP on the layer 3 switch but the PCs are unable to get an IP address. If I create the DHCP on the router, the PCs get an IP address. Please check the configuration below and tell me what am I missing.

Router#sh run

Building configuration...

Current configuration : 798 bytes

!

version 15.1

no service timestamps log datetime msec

no service timestamps debug datetime msec

no service password-encryption

!

hostname Router

!

!

!

!

!

!

!

!

ip cef

no ipv6 cef

!

!

!

!

license udi pid CISCO2901/K9 sn FTX15248UZ5-

!

!

!

!

!

!

!

!

!

!

!

spanning-tree mode pvst

!

!

!

!

!

!

interface GigabitEthernet0/0

no ip address

duplex auto

speed auto

!

interface GigabitEthernet0/0.200

encapsulation dot1Q 200

ip address 10.100.200.1 255.255.255.0

!

interface GigabitEthernet0/0.210

encapsulation dot1Q 210

ip address 10.100.210.1 255.255.255.0

!

interface GigabitEthernet0/1

no ip address

duplex auto

speed auto

shutdown

!

interface Vlan1

no ip address

shutdown

Switch#sh run

Building configuration...

Current configuration : 1516 bytes

!

version 12.2(37)SE1

no service timestamps log datetime msec

no service timestamps debug datetime msec

no service password-encryption

!

hostname Switch

!

!

!

!

ip dhcp pool POOL

network 10.100.200.0 255.255.255.0

default-router 10.100.200.1

ip dhcp pool POOL1

network 10.100.210.0 255.255.255.0

default-router 10.100.210.1

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

spanning-tree mode pvst

!

!

!

!

!

!

interface FastEthernet0/1

switchport access vlan 200

switchport mode access

switchport nonegotiate

!

interface FastEthernet0/2

switchport access vlan 210

switchport mode access

switchport nonegotiate

!

interface FastEthernet0/3

switchport trunk encapsulation dot1q

switchport mode trunk

!

interface FastEthernet0/4

!

interface FastEthernet0/5

!

interface FastEthernet0/6

!

interface FastEthernet0/7

!

interface FastEthernet0/8

!

interface FastEthernet0/9

!

interface FastEthernet0/10

!

interface FastEthernet0/11

!

interface FastEthernet0/12

!

interface FastEthernet0/13

!

interface FastEthernet0/14

!

interface FastEthernet0/15

!

interface FastEthernet0/16

!

interface FastEthernet0/17

!

interface FastEthernet0/18

!

interface FastEthernet0/19

!

interface FastEthernet0/20

!

interface FastEthernet0/21

!

interface FastEthernet0/22

!

interface FastEthernet0/23

!

interface FastEthernet0/24

!

interface GigabitEthernet0/1

!

interface GigabitEthernet0/2

!

interface Vlan1

no ip address

shutdown

!

ip classless

!

ip flow-export version 9

!

!

!

!

!

!

!

!

line con 0

!

line aux 0

!

line vty 0 4

login

!

!

!

!



No comments:

Post a Comment