07-29-2015 11:19 AM
I keep getting this error on my DHCP request on my packet tracer. DHCP Failed APIPA is being used.
here is my configuration for my router and the core switch where I put the IP helper
ROUTER
ip dhcp excluded-address 10.0.70.252 10.0.70.254
ip dhcp excluded-address 10.0.80.252 10.0.80.254
ip dhcp excluded-address 10.0.100.252 10.0.100.254
ip dhcp excluded-address 10.0.50.252 10.0.50.254
ip dhcp excluded-address 10.0.70.253
ip dhcp excluded-address 10.0.80.253
ip dhcp excluded-address 10.0.100.253
ip dhcp excluded-address 10.0.50.253
!
ip dhcp pool Staff
network 10.0.70.0 255.255.255.0
default-router 10.0.70.254
dns-server 8.8.8.8
ip dhcp pool Voice
network 10.0.100.0 255.255.255.0
default-router 10.0.100.254
option 150 ip 172.16.100.1
dns-server 8.8.8.8
ip dhcp pool Admin
network 10.0.80.0 255.255.255.0
default-router 10.0.80.254
dns-server 8.8.8.8
ip dhcp pool Guest
network 10.0.50.0 255.255.255.0
default-router 10.0.50.254
dns-server 8.8.8.8
!
!
!
ip cef
no ipv6 cef
ip domain-name ABC
interface Loopback0
ip address 172.16.100.1 255.255.255.0
!
interface Loopback1
ip address 10.11.11.1 255.255.255.0
!
interface Loopback2
ip address 10.12.12.1 255.255.255.0
!
interface Loopback3
ip address 10.13.13.1 255.255.255.0
!
interface Loopback4
ip address 10.14.14.1 255.255.255.0
!
interface Loopback5
ip address 10.15.15.1 255.255.255.0
!
interface Loopback6
ip address 10.16.16.1 255.255.255.0
!
interface FastEthernet0/0
description Linke to DLSW1
ip address 172.16.20.2 255.255.255.252
duplex auto
speed auto
!
interface FastEthernet0/1
description Link to DLSW2
ip address 172.16.20.6 255.255.255.252
duplex auto
speed auto
!
router eigrp 10
network 10.0.50.0 0.0.0.255
network 10.0.70.0 0.0.0.255
network 10.0.80.0 0.0.0.255
network 10.0.100.0 0.0.0.255
network 172.16.20.0 0.0.0.3
network 172.16.20.4 0.0.0.3
network 172.16.100.0 0.0.0.255
network 10.0.10.0 0.0.0.255
network 172.16.8.0 0.0.0.3
no auto-summary
!
ip classless
!
ip flow-export version 9
!
line con 0
!
line aux 0
!
line vty 0 4
password 7 0822455D0A16
login
transport input ssh
SWITCH
spanning-tree mode rapid-pvst
spanning-tree portfast default
spanning-tree vlan 10,50,70 priority 24576
spanning-tree vlan 80,90,100 priority 28672
!
interface Port-channel 2
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface Port-channel 4
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface FastEthernet0/1
switchport access vlan 300
switchport mode access
shutdown
!
interface FastEthernet0/2
switchport access vlan 300
switchport mode access
shutdown
!
interface FastEthernet0/3
switchport access vlan 300
switchport mode access
shutdown
!
interface FastEthernet0/4
switchport access vlan 300
switchport mode access
shutdown
!
interface FastEthernet0/5
switchport access vlan 300
switchport mode access
shutdown
!
interface FastEthernet0/6
switchport access vlan 300
switchport mode access
shutdown
!
interface FastEthernet0/7
switchport access vlan 300
switchport mode access
shutdown
!
interface FastEthernet0/8
switchport access vlan 300
switchport mode access
shutdown
!
interface FastEthernet0/9
switchport access vlan 300
switchport mode access
shutdown
!
interface FastEthernet0/10
switchport access vlan 300
switchport mode access
shutdown
!
interface FastEthernet0/11
switchport access vlan 300
switchport mode access
shutdown
!
interface FastEthernet0/12
switchport access vlan 300
switchport mode access
shutdown
!
interface FastEthernet0/13
switchport access vlan 300
switchport mode access
shutdown
!
interface FastEthernet0/14
switchport access vlan 300
switchport mode access
shutdown
!
interface FastEthernet0/15
switchport access vlan 300
switchport mode access
shutdown
!
interface FastEthernet0/16
switchport access vlan 300
switchport mode access
shutdown
!
interface FastEthernet0/17
switchport access vlan 300
switchport mode access
shutdown
!
interface FastEthernet0/18
switchport mode access
spanning-tree portfast
!
interface FastEthernet0/19
channel-group 2 mode desirable
switchport trunk allowed vlan 10,70,80,100
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface FastEthernet0/20
channel-group 2 mode desirable
switchport trunk allowed vlan 10,70,80,100
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface FastEthernet0/21
channel-group 4 mode desirable
switchport trunk allowed vlan 10,50,70,100
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface FastEthernet0/22
channel-group 4 mode desirable
switchport trunk allowed vlan 10,50,70,100
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface FastEthernet0/23
no switchport
ip address 172.16.20.9 255.255.255.252
duplex auto
speed auto
!
interface FastEthernet0/24
no switchport
ip address 172.16.20.1 255.255.255.252
duplex auto
speed auto
!
interface GigabitEthernet0/1
!
interface GigabitEthernet0/2
switchport trunk encapsulation dot1q
switchport mode trunk
spanning-tree guard root
!
interface Vlan1
no ip address
shutdown
!
interface Vlan10
ip address 10.0.10.254 255.255.255.0
!
interface Vlan50
ip address 10.0.50.252 255.255.255.0
ip helper-address 10.14.14.1
standby version 2
standby 50 ip 10.0.50.254
standby 50 priority 150
standby 50 preempt
!
interface Vlan70
ip address 10.0.70.252 255.255.255.0
ip helper-address 10.15.15.1
standby version 2
standby 70 ip 10.0.70.254
standby 70 priority 150
standby 70 preempt
!
interface Vlan80
ip address 10.0.80.252 255.255.255.0
ip helper-address 10.16.16.1
standby version 2
standby 80 ip 10.0.80.254
standby 80 preempt
!
interface Vlan90
ip address 10.0.90.252 255.255.255.0
standby version 2
standby 90 ip 10.0.90.254
standby 90 preempt
!
interface Vlan100
ip address 10.0.100.252 255.255.255.0
ip helper-address 172.16.100.1
standby version 2
standby 100 ip 10.0.100.254
standby 100 preempt
!
router eigrp 10
network 10.0.50.0 0.0.0.255
network 10.0.70.0 0.0.0.255
network 10.0.80.0 0.0.0.255
network 10.0.100.0 0.0.0.255
network 172.16.20.0 0.0.0.3
network 172.16.20.4 0.0.0.3
network 172.16.100.0 0.0.0.255
network 10.0.10.0 0.0.0.255
network 172.16.8.0 0.0.0.3
no auto-summary
!
ip classless
ip route 0.0.0.0 0.0.0.0 172.16.20.6
ip route 0.0.0.0 0.0.0.0 172.16.20.2
!
ip flow-export version 9
!
snmp-server community AbComp@ny RO
!
line con 0
!
line aux 0
!
line vty 0 4
password 7 0822455D0A16
login
transport input ssh
!
!
end
07-30-2015 03:38 AM
Hi you have told your switch vlans to use the ip helper -address to get to the place where they can get their address but you have not advertised any of these loopbacks on the router so how does the switch know how to reach the helper addresses to get the dhcp ? If the switch cannot reach these in loop backs the helper is no good, just something i see without testing it may help
08-01-2015 12:50 PM
thanks... It worked. I just advertised my loopbacks and the computers started getting DHCP
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