05-05-2022 04:24 PM
I am using packet tracer. I have a Router, Switch & 4 PC's. When I go into the PC's Ip configuration & enable DHCP I get the "DHCP failed. APIPA being used" error. What am I missing or doing wrong?
I used the following for configuration on R1: (only provided info for vlan 10 & 20)
ip dhcp excluded-address 172.31.10.1 172.31.10.10
ip dhcp pool VLAN_10
network 172.31.10.0 255.255.255.224
default-router 172.31.10.1
dns-server 209.165.201.14
interface g0/0.10
encapsulation dot1Q 10
ip address 172.31.10.1 255.255.255.224
ip dhcp excluded-address 172.31.20.1 172.31.20.10
ip dhcp pool VLAN_20
network 172.31.20.0 255.255.255.240
default-router 172.31.20.1
dns-server 209.165.201.14
interface g0/0.20
encapsulation dot1Q 20
ip address 172.31.20.1 255.255.255.240
05-05-2022 06:20 PM
S2#show interfaces trunk
Port Mode Encapsulation Status Native vlan
Fa0/1 on 802.1q trunking 1
Fa0/2 on 802.1q trunking 1
Fa0/3 on 802.1q trunking 1
Fa0/4 on 802.1q trunking 1
Port Vlans allowed on trunk
Fa0/1 1-1005
Fa0/2 1-1005
Fa0/3 1-1005
Fa0/4 1-1005
Port Vlans allowed and active in management domain
Fa0/1 1,10,20,30,40
Fa0/2 1,10,20,30,40
Fa0/3 1,10,20,30,40
Fa0/4 1,10,20,30,40
Port Vlans in spanning tree forwarding state and not pruned
Fa0/1 1,10,20,30,40
Fa0/2 1,10,20,30,40
Fa0/3 1,10,20,30,40
Fa0/4 1,10,20,30,40
05-05-2022 06:39 PM
But these port not connect to router
It connect to pc and it must be access
Only port connect to router config as trunk.
05-11-2022 02:22 PM
So, this was for CCNA V7 Lab 10.3.1.2 Packet Tracer-Skills Integration Challenge
I needed to add the vlans to S1 and after that the DHCP for the PC's worked.
05-11-2022 06:30 PM
Ok, i assume you already config it with:-
For you now and feature,
Never config port access mode without
Switchport access vlan x
If you dont enter this command then this port will be add to vlan 1 by default.
AND this command make sw automatic create vlan x.
Always when config
Port access mode config vlan for this port
Port trunk config vlan allow in trunk
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