cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1928
Views
5
Helpful
18
Replies

DHCP won't load

Cisco__guy
Level 1
Level 1

Hello guys,

i just configured one Router and activated the DHCP, somehow when i connect device to this router it doesn't recieve IP from the router

its comes with 192.16.0.0 and Gat 255.255.0.0

please find the below is my DHCP settings from the config file

no ip dhcp use vrf connected

ip dhcp excluded-address 10.129.1.113

!

ip dhcp pool aPool

  network 10.129.1.112 255.255.255.240

  default-router 10.129.1.113

  dns-server 10.64.20.59 10.64.20.60

thank you for helping me fix this problem

1 Accepted Solution

Accepted Solutions

Hi Peter,

Can do a copy and paste for this particular line in order to prevent typo error?

Sent from Cisco Technical Support iPhone App

View solution in original post

18 Replies 18

p.mcgowan
Level 3
Level 3

please post config from port where device is connected and layer 3 vlan interface

hello Mcgwan,

i just reset the router and trying to upload my confi, but my current config are wihtout DHCP,

can you direct me to the correct DHCP config script?

thank you

if you can post your connfig I can look to see what is wrong

johnlloyd_13
Level 9
Level 9

hi peter,

try to connect a PC/laptop directly on your router's LAN port and see whether it's getting an IP. make sure your PC's LAN connection properties is set to auto obtain an IP and able to ping router's GW IP 10.129.1.113.

Hello John,

thank you , i tried this unfortunatly my router is not pingable from the laptop that is directly connected to,

all my IP are to DHCP Auto,

somehow the Network card recieved this IP 169.254.47.13 and Subnet 255.255.0.0

but when i connect using serial consol i can see the IP of the router and Subnet are different,

i tried to do Ipconfig /release and renew on the laptop afters its comes back with the same IP,

thank you

hi peter,

first, we would need the running config of your router. do a show run and post it here.

secondly, how are you connected from PC to router? did you use a straight cable?

please find the below is the confi file,

note i changed some names for security matter


  1. Current configuration : 5656 bytes
    !
    version 12.4
    no service pad
    service timestamps debug datetime msec
    service timestamps log datetime msec
    no service password-encryption
    !
    hostname Test
    !
    boot-start-marker
    boot-end-marker
    !
    logging buffered 51200 warnings
    no logging console
    !
    no aaa new-model
    !
    crypto pki trustpoint TP-self-signed-3102370011
    enrollment selfsigned
    subject-name cn=IOS-Self-Signed-Certificate-3102370011
    revocation-check none
    rsakeypair TP-self-signed-3102370011
    !
    !
    crypto pki certificate chain TP-self-signed-3102370011
    certificate self-signed 01
      3082024F 308201B8 A0030201 02020101 300D0609 2A864886 F70D0101 04050030
      31312F30 2D060355 04031326 494F532D 53656C66 2D536967 6E65642D 43657274
      69666963 6174652D 33313032 33373030 3131301E 170D3032 30333031 30303037
      32305A17 0D323030 31303130 30303030 305A3031 312F302D 06035504 03132649
      4F532D53 656C662D 5369676E 65642D43 65727469 66696361 74652D33 31303233
      37303031 3130819F 300D0609 2A864886 F70D0101 01050003 818D0030 81890281
      8100CE35 C17CE875 F8E4C606 76F7EA5A BF7C94F0 FF5B908A 28EF8FC5 6BF86594
      180DD44C 0753B3C4 E497923E C0F995F2 E8A949E5 41ACDB6B FF5EDDD6 3CF56E1B
      243D0B52 AFDB1B65 51C15CBC 9893C9BD B8A02A69 87C96A11 89B553AD 0092F558
      4A62F174 F405CA98 8A995745 B81C522F 968B67A7 DB4CC67B 3238CD58 79BA13E2
      A6ED0203 010001A3 77307530 0F060355 1D130101 FF040530 030101FF 30220603
      551D1104 1B301982 17796F75 726E616D 652E796F 7572646F 6D61696E 2E636F6D
      301F0603 551D2304 18301680 1453213B 2AA3D1BF AA6935DA F9840B8D D001EBD7
      F1301D06 03551D0E 04160414 53213B2A A3D1BFAA 6935DAF9 840B8DD0 01EBD7F1
      300D0609 2A864886 F70D0101 04050003 8181008F AF868398 9B890704 F26B6988
      3459A896 1441405D 3E884E28 D43AF9A8 3A000697 B4CFA21C FBFAC5D6 E3F0EF20
      3DB42B58 809A3A93 7C855CCA D02D0079 9164A81F BF417CEC 04621314 E4959FEE
      1BCA1EDA E160994B A11031A9 95396E09 50F56506 1DA9F306 6555CE4E 77D9CDFF
      D4FF78BE 4FA81018 6C662DFB FE8B05B7 678F71
            quit
    dot11 syslog
    ip cef
    !
    !
    !
    !
    no ip domain lookup
    ip domain name Test.Lan
    ip name-server 10.64.20.59
    ip name-server 10.64.20.60
    !
    multilink bundle-name authenticated
    !
    !
    username TEST privilege 15 secret 5 $1$MurL$ToRDDRFFTG9x0GMmR1loIrWPFkel0
    !
    !
    crypto isakmp policy 10
    encr 3des
    hash md5
    authentication pre-share
    group 2
    crypto isakmp key @Tes$T!@ address 250.362.333.20
    !
    !
    crypto ipsec transform-set 3desmd5_set esp-3des esp-md5-hmac
    crypto ipsec df-bit clear
    !
    crypto map test-asa 10 ipsec-isakmp
    set peer 250.362.333.20
    set transform-set 3desmd5_set
    match address 101
    !
    archive
    log config
      hidekeys
    !
    !
    !
    !
    !
    interface ATM0
    no ip address
    no shutdown
    no atm ilmi-keepalive
    pvc 0/38
      encapsulation aal5mux ppp dialer
      dialer pool-member 1
    !
    dsl operating-mode auto
    !
    interface FastEthernet0
    !
    interface FastEthernet1
    !
    interface FastEthernet2
    !
    interface FastEthernet3
    !
    interface Vlan1
    description TEST LAN
    ip address 10.129.20.113 255.255.255.240
    ip helper-address 10.64.20.59
    ip helper-address 10.64.20.60
    no ip redirects
    no ip unreachables
    no ip proxy-arp
    ip tcp adjust-mss 1452
    !
    interface Dialer0
    ip address negotiated
    ip mtu 1452
    encapsulation ppp
    dialer pool 1
    dialer-group 1
    no cdp enable
    ppp authentication chap callin
    ppp chap hostname username
    ppp chap password 0 password
    crypto map test-asa
    !
    ip forward-protocol nd
    ip route 0.0.0.0 0.0.0.0 Dialer0
    !
    !
    ip http server
    ip http access-class 23
    ip http authentication local
    ip http secure-server
    ip http timeout-policy idle 60 life 86400 requests 10000
    !
    access-list 23 permit 10.0.0.0 0.255.255.255
    access-list 101 permit ip 10.129.1.112 0.0.0.15 any
    dialer-list 1 protocol ip permit
    no cdp run
    !
    !
    !
    !
    control-plane
    !
    banner exec ^C
    % Password expiration warning.
    -----------------------------------------------------------------------
  2. Cisco Configuration Professional (Cisco CP) is installed on this device
    and it provides the default username "cisco" for  one-time use. If you have
    already used the username "cisco" to login to the router and your IOS image
    supports the "one-time" user option, then this username has already expired.
    You will not be able to login to the router with this username after you exit
    this session.
  3. It is strongly suggested that you create a new username with a privilege level
    of 15 using the following command.
  4. username privilege 15 secret 0
  5. Replace and with the username and password you
    want to use.
  6. -----------------------------------------------------------------------
    ^C
    banner login ^C
    -----------------------------------------------------------------------
    Cisco Configuration Professional (Cisco CP) is installed on this device.
    This feature requires the one-time use of the username "cisco" with the
    password "cisco". These default credentials have a privilege level of 15.
  7. YOU MUST USE CISCO CP or the CISCO IOS CLI TO CHANGE THESE
    PUBLICLY-KNOWN CREDENTIALS
  8. Here are the Cisco IOS commands.
  9. username   privilege 15 secret 0
    no username cisco
  10. Replace and with the username and password you want
    to use.
  11. IF YOU DO NOT CHANGE THE PUBLICLY-KNOWN CREDENTIALS, YOU WILL
    NOT BE ABLE TO LOG INTO THE DEVICE AGAIN AFTER YOU HAVE LOGGED OFF.
  12. For more information about Cisco CP please follow the instructions in the
    QUICK START GUIDE for your router or go to http://www.cisco.com/go/ciscocp
    -----------------------------------------------------------------------
    ^C
    !
    line con 0
    login local
    no modem enable
    line aux 0
    line vty 0 4
    privilege level 15
    login local
    transport input telnet ssh
    !
    scheduler max-task-time 5000
    end

hi peter,

try to change vlan 1 IP address and add again your DHCP scipt. test again by plugging your PC/laptop on any of the free FE ports available.

interface Vlan1

ip address 10.129.1.113 255.255.255.240

ip dhcp excluded-address 10.129.1.113

!

ip dhcp pool aPool

  network 10.129.1.112 255.255.255.240

  default-router 10.129.1.113

  dns-server 10.64.20.59 10.64.20.60

Hello John,

i must say i am greatfull to your support,

its works fine, thank yuo so much,

Hi Peter,

Glad to help. Please help rate posts to let this forum know your issue is resolved.

Sent from Cisco Technical Support iPhone App

thank you John,

i added to the rate to the post,

can you please tell me how to add the missing access-list?

when i try to add it tells me invalid input detected at mark

i logged to the router and did enable and after config t

access-list 101 permit ip 10.129.1.192 2 0.0.0.15 any

you have a typo in your access-list, looks like you have an extra 2 in there, I think it should be:

access-list 101 permit ip 10.129.1.192 0.0.0.15 any

but the access-list in the config you posted reads different.

Which access-list are you referrring to, the one in the posted config or the one mentioned above in your last post?

thank you for the answer

this the one i am trying to add

access-list 23 permit 10.0.0.0 0.255.255.255

access-list 101 permit ip 10.129.1.192 2 0.0.0.15 any

dialer-list 1 protocol ip permit

no cdp run

but this line is missing which i am trying to add

access-list 101 permit ip 10.129.1.192 2 0.0.0.15 any

the line access-list 101 permit ip 10.129.1.192 2 0.0.0.15 any is not valid

the correct line would be;

access-list 101 permit ip 10.129.1.192 0.0.0.15 any

you have an extra 2 in the line, is this there for any specific reason or just a typo?

Review Cisco Networking for a $25 gift card