troubleshooting Question

need help with cisco router and dhcp

Avatar of valdezf
valdezfFlag for United States of America asked on
RoutersDHCPNetwork Architecture
13 Comments1 Solution1504 ViewsLast Modified:
Hey,

I've been configuring my new Cisco 871w Integrated Services router on my home network, but I haven't been able to get DHCP working on the LAN ports. This is what I have done

Router(config)# ip dhcp excluded-address 192.168.2.1 192.168.2.10
Router(config)# ip dhcp pool home
Router(config-dhcp)#network 192.168.2.0 255.255.255.0
Router(config-dhcp)#dns-server 192.168.2.1 4.2.2.2
Router(config-dhcp)#default-router 192.168.2.1

on all interfaces fa0 - fa3
#switchport mode access
#switchport access vlan 1


I have enabled service dhcp

I can ping vlan 1 192.168.2.1
I can ping my default route 192.168.1.1 (home router)
I can ping www.cisco.com 

I have wr erase twice to do everything all over again, but I have not been successful

this is my config

R1#sh run
Building configuration...

Current configuration : 3552 bytes
!
version 12.4
no service pad
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
!
hostname R1
!
!
ip subnet-zero
ip cef
no ip dhcp use vrf connected
ip dhcp excluded-address 192.168.2.1 192.168.2.10
!
ip dhcp pool home
   import all
   network 192.168.2.0 255.255.255.0
   dns-server 192.168.1.1 4.2.2.2
   default-router 192.168.2.1
   lease 5
!
!
ip domain name XXXX
ip name-server 192.168.1.1
ip name-server 4.2.2.2
ip name-server 8.8.8.8
ip ssh version 2
!

!
!
!
interface FastEthernet0
!
interface FastEthernet1
!
interface FastEthernet2
!
interface FastEthernet3
!
interface FastEthernet4
 ip address 192.168.1.2 255.255.255.0
 ip nat outside
 ip virtual-reassembly
 duplex auto
 speed auto
!
interface Dot11Radio0
 no ip address
 shutdown
 speed basic-1.0 basic-2.0 basic-5.5 6.0 9.0 basic-11.0 12.0 18.0 24.0 36.0 48.0 54.0
 station-role root
!
interface Vlan1
 ip address 192.168.2.1 255.255.255.0
 ip nat inside
 ip virtual-reassembly
!
ip default-gateway 192.168.1.1
ip classless
ip route 0.0.0.0 0.0.0.0 192.168.1.1
!
!
access-list 101 permit udp any any eq domain
access-list 101 permit udp any eq domain any
!

---------------------------------------------------------------------------------------------------------------------------------------

VLAN Name                             Status    Ports
---- -------------------------------- --------- -------------------------------
1    default                          active    Fa0, Fa1, Fa2, Fa3
1002 fddi-default                     active
1003 token-ring-default               active
1004 fddinet-default                  active
1005 trnet-default                    active


I followed this instructions from the Cisco website, for my IOS version "flash:c870-advsecurityk9-mz.124-4.T3.bin"

http://www.cisco.com/en/US/docs/ios-xml/ios/ipaddr_dhcp/configuration/12-4t/dhcp-12-4t-book.html

 
I can have DHCP working on GNS3 and Packet Tracer with no problems...I'm not sure what's wrong.

thanks in advance!!
ASKER CERTIFIED SOLUTION
Don Johnston
Instructor
Join our community to see this answer!
Unlock 1 Answer and 13 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 13 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros