cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
19776
Views
0
Helpful
6
Replies

DHCP Failed. APIPA is being used

HussainKhamis
Level 1
Level 1

Hi Everyone, I have a project for my university to design a VLAN but unfortunately I got in pc Configuration: DHCP failed APIPA is being used.

Can anyone help me, please?

I attached the Project in Packet tracer if someone wants to check 

 

 

1 Accepted Solution

Accepted Solutions

Hello,

 

there were a few IP addressing mistakes, that is why I was asking which instructions you are following.

 

Either way, here is what I changed:

 

--> the IP address of the DHCP server. It was the same as the router interface.
--> the default gateways of all server were set to the wrong IP address
--> the DHCP pools were misconfigured
--> added subinterfaces and descriptions for all Vlans
--> added trunk between Switch1 and the router
--> added IP helper addresses to the Vlan subinterfaces
--> added a management Vlan to the switches
--> changed the DNS server address in the DHCP pools to the correct address
--> added wireless modules to the laptops so they can connect to the access points

 

Attached the revised file, saved in Packet Tracer version 8.1.1, make sure you have that version installed, otherwise you cannot open the project.

View solution in original post

6 Replies 6

Hi

 Find attached a working file. I fixed the problem  for "ComputerEngineering" so that you can follow the example.

What was wrong:

- You need to create the vlan in all switches. For example switch1 must have the vlan 210 on it. And all others vlans

- the router needs to have a subinterface on it  corresponding the vlan 210 and the command "ip helper address " pointing to DHCP Server. You need to do this for all vlans you have.

-The DHCP server was configured with IP address in one network and gateway in another network. I fixed it.

 

Hope that help.

 

 

I tried but i got the same error. If you don't mind can you fix all switches ? or can you explain more to maybe i understand more too and solve by myself. 

 

Because i must submit it today at 12:00 at GMT + 3:00

What you need to do is simple. 

For switches:

The VLANs need to be created on switches.

uplinks between switch must be trunk

uplink between switch and router must be trunk

For router:

Create subinterface for vlans


interface FastEthernet0/1.100
encapsulation dot1Q 210
ip address 192.168.90.1 255.255.255.0
ip helper-address 192.168.2.2
!

 

You need to do this for the others vlans as well. 

 


interface FastEthernet0/1.101
encapsulation dot1Q 200
ip address 192.168.XX.1 255.255.255.0
ip helper-address 192.168.2.2
!


interface FastEthernet0/1.102
encapsulation dot1Q 249
ip address 192.168.XX.1 255.255.255.0
ip helper-address 192.168.2.2
!

The DHCP server need to be on the network 192.168.2.X with gateway 192.168.2.1.

 

 

 

 

 

 

Hello,

 

what instructions are you following ? Which DHCP pool belongs to which Vlan ?

I didnt get what you mean but, i provide the photos so you can look into them

Hello,

 

there were a few IP addressing mistakes, that is why I was asking which instructions you are following.

 

Either way, here is what I changed:

 

--> the IP address of the DHCP server. It was the same as the router interface.
--> the default gateways of all server were set to the wrong IP address
--> the DHCP pools were misconfigured
--> added subinterfaces and descriptions for all Vlans
--> added trunk between Switch1 and the router
--> added IP helper addresses to the Vlan subinterfaces
--> added a management Vlan to the switches
--> changed the DNS server address in the DHCP pools to the correct address
--> added wireless modules to the laptops so they can connect to the access points

 

Attached the revised file, saved in Packet Tracer version 8.1.1, make sure you have that version installed, otherwise you cannot open the project.