cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2393
Views
5
Helpful
16
Replies

C1841 DHCP not working but same config worked at Packet tracer

!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption

IOS : IPBASE-M 124.15T12


!
hostname FIN

!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$.kn2$MdOTV7sAQTm.sbLu36HP0.
enable password admin
!
no aaa new-model
no ip routing
no ip cef
!
!
no ip dhcp use vrf connected
!
ip dhcp pool FIN
   network 192.168.5.0 255.255.255.0
   default-router 192.168.5.1
   dns-server 8.8.8.8
!
!
ip address-pool dhcp-pool
multilink bundle-name authenticated
!
!
archive
 log config
  hidekeys
!
!
!
!
!
interface FastEthernet0/0
 no ip address
 no ip route-cache
 shutdown
 duplex auto
 speed auto
!
interface FastEthernet0/1
 ip address 192.168.5.2 255.255.255.0
 no ip route-cache
 speed auto
 half-duplex
 no mop enabled
!
ip forward-protocol nd
!
!
ip http server
!
!
!
control-plane
!
!
line con 0
line aux 0
line vty 0 4
 password admin
 login
!
scheduler allocate 20000 1000
end
 

2 Accepted Solutions

Accepted Solutions

You are excluding the entire address space !!! Exclude just the 5.2 address...

View solution in original post

That means:

 

--> no ip dhcp excluded-address 192.168.5.1 192.168.5.254

--> ip dhcp excluded-address 192.168.5.2

View solution in original post

16 Replies 16

Hello,

 

make the changes marked in bold:

 

version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
IOS : IPBASE-M 124.15T12
!
hostname FIN

!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$.kn2$MdOTV7sAQTm.sbLu36HP0.
enable password admin
!
no aaa new-model
--> ip routing
no ip cef
!
no ip dhcp use vrf connected
ip dhcp excluded-address 192.168.5.1
!
ip dhcp pool FIN
network 192.168.5.0 255.255.255.0
default-router 192.168.5.1
dns-server 8.8.8.8
!
ip address-pool dhcp-pool
multilink bundle-name authenticated
!
archive
log config
hidekeys
!
interface FastEthernet0/0
no ip address
no ip route-cache
shutdown
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 192.168.5.1 255.255.255.0
no ip route-cache
speed auto
half-duplex
no mop enabled
!
ip forward-protocol nd
!
ip http server
!
control-plane
!
line con 0
line aux 0
line vty 0 4
password admin
login
!
scheduler allocate 20000 1000
end

Thank you Georg Pauwen!

Still the issue not solved 

ip routing is not working.

 

 

Post the full running config again, with the changes you have made...

 

1841#conf t

1841(config)#ip routing

 

is not working ?

I made the change.

But dhcp not pooling ip to pc. 

When i try to 1841#confi t # ip routing

ip routing is not working .

 

 

 

!


version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname FIN
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$.kn2$MdOTV7sAQTm.sbLu36HP0.
enable password admin
!
no aaa new-model
ip cef
!
!
no ip dhcp use vrf connected
ip dhcp excluded-address 192.168.5.1
!
ip dhcp pool FIN
   network 192.168.5.0 255.255.255.0
   default-router 192.168.5.1
   dns-server 8.8.8.8
!
!
ip address-pool local
multilink bundle-name authenticated
!
!
archive
 log config
  hidekeys
!
!
!
!
!
interface FastEthernet0/0
 no ip address
 shutdown
 duplex auto
 speed auto
!
interface FastEthernet0/1
 ip address 192.168.5.1 255.255.255.0
 duplex auto
 speed auto
 no mop enabled
!
ip forward-protocol nd
ip route profile
!
!
ip http server
!
!
!
control-plane
!
!
line con 0
line aux 0
line vty 0 4
 password admin
 login
!
scheduler allocate 20000 1000
end
 

How is your PC connected to the router ? Is there a switch in between ?

No just direct connected to the pc on  port fa0/1 

Since you are using an older IOS version, make sure 'service dhcp' is enabled:

 

1841(config)#service dhcp

Since we are used just for static ip it was worked normally. We need dhcp.
service dhcp is enabled

Would you post the output of show interface?

 

What type of cable are you using to connect the PC to the router? If the PC is directly connected to router it should be a cross over cable and not a straight through cable.

 

HTH

 

Rick

HTH

Rick

We using cross over cable.
See show inter?

show run
DHCP_OK#show running-config
Building configuration...

Current configuration : 896 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname DHCP_OK
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$.kn2$MdOTV7sAQTm.sbLu36HP0.
enable password admin
!
no aaa new-model
ip cef
!
!
ip dhcp use vrf connected
ip dhcp excluded-address 192.168.5.1 192.168.5.254
!
--More--  ip dhcp pool JACK
--More--   network 192.168.5.0 255.255.255.0
--More--   default-router 192.168.5.2
--More--   dns-server 8.8.8.8
--More--  !
--More--  !
--More--  multilink bundle-name authenticated
--More--  !
--More--  !
--More--  archive
--More--   log config
--More--   hidekeys
--More--  !
--More--  !
--More--  !
--More--  !
--More--  !
--More--  interface FastEthernet0/0
--More--   no ip address
--More--   shutdown
--More--   duplex auto
--More--   speed auto
--More--  !
--More--  interface FastEthernet0/1
--More--   ip address 192.168.5.2 255.255.255.0
--More--   speed 100
--More--   full-duplex
--More--   no mop enabled
--More--  !
--More--  ip forward-protocol nd
--More--  !
--More--  !
--More--  ip http server
--More--  !
--More--  !
--More--  !
--More--  control-plane
--More--  !
--More--  !
--More--  line con 0
--More--  line aux 0
--More--  line vty 0 4
--More--   password admin
--More--   login
--More--  !
--More--  scheduler allocate 20000 1000
--More--  end
--More--  
DHCP_OK#
DHCP_OK#show interfaces fas 0/1
FastEthernet0/1 is up, line protocol is up
Hardware is Gt96k FE, address is fcfb.fbbd.65ef (bia fcfb.fbbd.65ef)
Internet address is 192.168.5.2/24
MTU 1500 bytes, BW 100000 Kbit/sec, DLY 100 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Full-duplex, 100Mb/s, 100BaseTX/FX
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:00:18, output 00:00:02, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
578 packets input, 78115 bytes
Received 382 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 watchdog
0 input packets with dribble condition detected
282 packets output, 28726 bytes, 0 underruns
0 output errors, 0 collisions, 13 interface resets
--More--   0 unknown protocol drops
--More--   0 babbles, 0 late collision, 0 deferred
--More--   0 lost carrier, 0 no carrier
--More--   0 output buffer failures, 0 output buffers swapped out

You are excluding the entire address space !!! Exclude just the 5.2 address...

That means:

 

--> no ip dhcp excluded-address 192.168.5.1 192.168.5.254

--> ip dhcp excluded-address 192.168.5.2

Good catch by Georg. +5

 

It is good that the interface shows as up/up. I hope that fixing the DHCP excluded addresses will result in the PC receiving an IP address and working. If not then please post the output of show arp.

 

HTH

 

Rick

HTH

Rick

Thank you Its worked.