cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3314
Views
1
Helpful
14
Replies

Dhcp failed . Apipa is being used

mraza6601
Level 1
Level 1

Hey Everyone, I am creating a banking networking topology. I have 4 floors and 12 departments in my network, which are connected by routers. I am getting the above-mentioned error while accessing the dhcp on the pc on the left six departments of network, However I am getting the correct IP address while accessing the right side of network topology.
Please have a look at the attached file. Thanks

14 Replies 14

Hi

 Your configuration seems to be all good. The error I have found was one interface from the Layer3 switch connected in the wrong interface on the Router

 As you can see on your original file, the Layer3 is not forming OSPF neighbordship with the router thus not receiving any OSPF routes from the network. It was basically isolated from the network.

When I fix the interface on the Router side, it start receiving routes and DHCP worked.

 

FlavioMiranda_0-1686744838824.png

You can check on the attached file

Hi, Thanks For Helping Out. You are right about the layer 3 switch being connected to the wrong interface. I downloaded your attached file with the correct interface connection. However, the error still persists on the left side of the topology.
Attaching two screenshots for reference.

Hi

   This is some software delay. The OSPF on the Layer3 switch probably did not came up yet.

Run this command on the Layer3 switch:

 

show ip ospf nei

 

Neighbor ID Pri State Dead Time Address Interface

10.10.10.33 1 FULL/BDR 00:00:35 10.10.10.2 GigabitEthernet1/0/1

layer-1-Sw#

 

You need to see this output (FULL/BDR)

 

Can you check please?

 

Hi , I ran the above-mentioned command on my L3 switch and this is the output I Got .

Neighbor ID Pri State Dead Time Address Interface

10.10.10.45 1 FULL/BDR 00:00:33 10.10.10.2 GigabitEthernet1/0/1

Its similar to the one you have mentioned, but in the first address's last octet it is .45

But if you run show ip route ospf

Do you have any route?

 Can you ping from L3 switch to router interface?

Yes , I can ping from the L3 switch and the output of the first command is attached.

Pretty good. You should be able to get IP address, the routing is fine.

 Try to add a static IP address on one PC and try to ping the DHCP server.  For test purpose. 

I can get IP address and ping the DHCP server just fine

FlavioMiranda_0-1686793694742.png

 

M02@rt37
VIP
VIP

@mraza6601,

FLOOR-1-ROUTER, the IP on the gig interfaces are wrong (there is a lag). Please check. 

Also, look the mask on your DHCP server: /24 ? no /26 ?

 

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

Hi, You are right about the gig interfaces. I corrected them however the error still persists. The Mask However is /26.

Ok @mraza6601,

What about ospf adjencies now on L3 switch on the first floor topology ? 

If it is not OK, please do #debug ip ospf events

and share the output.

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

The "sh ip ospf events" command is not working. I have attached its output below

Screenshot (2509).png

@mraza6601 

#debug ip ospf events

I correct it, sorry.

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

I ran your command on two of my switches Floor 1 and Floor 3. The output is very different on both switches, can you please share why is that. Note that I am getting dhcp successfully on Floor 1 but not on Floor 3.
Attaching the screenshots and the updated file below.