03-07-2015 10:21 AM - edited 03-07-2019 10:59 PM
Hello there,
I am new here, so hello to all.
I am a networking student, and trying to set up DHCP server on Cisco Routers and ISRs.
The problem I will mention below relates to Cisco 867VAE. I have attached the config file for ready reference.
The problem: The DHCP pool does not hand out IP addresses. I have tried it by the book, line by line with no luck.
Router#sh ip dhcp pool
Pool HomeNetwork :
Utilization mark (high/low) : 100 / 0
Subnet size (first/next) : 0 / 0
Total addresses : 254
Leased addresses : 0
Pending event : none
1 subnet is currently in the pool :
Current index IP address range Leased addresses
192.168.1.1 192.168.1.1 - 192.168.1.254 0
Router#sh vlans
Router#sh vlans
No Virtual LANs configured.
Please advice.
I am sure, it is my mistake. as I am having same problem with another ISR 892w. Config file follows:
Thank you all,
Himanshu
System Bootstrap, Version 15.1(4r)M2, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 2011 by cisco Systems, Inc.
C860VAE advanced k9 platform with 256 MB of main memory
Booting flash:/c860vae-advsecurityk9-mz.155-1.T.bin
################################################################## [OK]
Restricted Rights Legend
to
export@cisco.com.
Cisco 867VAE-K9 (revision 0.3) with 234496K/26624K bytes of memory.
Processor board ID GMK17310487
1 DSL controller
1 Ethernet interface
4 FastEthernet interfaces
2 Gigabit Ethernet interfaces
1 ATM interface
1 Virtual Private Network (VPN) Module
255K bytes of non-volatile configuration memory.
57344K bytes system flash allocated
SETUP: new interface NVI0 placed in "shutdown" state
Press RETURN to get started!
*Mar 7 16:34:53.315: PIM: BFD initialization failed
*Mar 7 16:34:55.523: %VPN_HW-6-INFO_LOC: Crypto engine: onboard 0 State change d to: Initialized
*Mar 7 16:34:55.527: %VPN_HW-6-INFO_LOC: Crypto engine: onboard 0 State change d to: Enabled
*Mar 7 16:35:03.379: %LINEPROTO-5-UPDOWN: Line protocol on Interface VoIP-Null0 , changed state to up
*Mar 7 16:35:03.383: %LINK-3-UPDOWN: Interface Ethernet0, changed state to down
*Mar 7 16:35:03.383: %LINK-3-UPDOWN: Interface ATM0, changed state to down
*Mar 7 16:35:03.383: %LINK-3-UPDOWN: Interface GigabitEthernet1, changed state to down
*Mar 7 16:35:03.383: %LINEPROTO-5-UPDOWN: Line protocol on Interface Onboard VP N, changed state to up
*Mar 7 16:35:04.007: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, cha nged state to down
*Mar 7 16:35:04.999: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet0, changed state to down
*Mar 7 16:35:04.999: %LINEPROTO-5-UPDOWN: Line protocol on Interface ATM0, chan ged state to down
*Mar 7 16:35:04.999: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEth ernet1, changed state to down
*Mar 7 16:35:09.271: %CONTROLLER-5-UPDOWN: Controller VDSL 0, changed state to administratively down
*Mar 7 16:35:09.819: %LINK-5-CHANGED: Interface GigabitEthernet1, changed state to administratively down
*Mar 7 16:35:09.967: %SYS-5-CONFIG_I: Configured from memory by console
*Mar 7 16:35:10.947: %LINEPROTO-5-UPDOWN: Line protocol on Interface NVI0, chan ged state to down
*Mar 7 16:35:11.343: %LINK-5-CHANGED: Interface ATM0, changed state to administ ratively down
*Mar 7 16:35:11.343: %LINK-5-CHANGED: Interface Ethernet0, changed state to adm inistratively down
*Mar 7 16:35:12.119: %LINK-5-CHANGED: Interface NVI0, changed state to administ ratively down
*Mar 7 16:35:12.119: %LINK-3-UPDOWN: Interface FastEthernet0, changed state to down
*Mar 7 16:35:12.119: %LINK-3-UPDOWN: Interface FastEthernet1, changed state to down
*Mar 7 16:35:12.119: %LINK-3-UPDOWN: Interface FastEthernet2, changed state to down
*Mar 7 16:35:12.119: %LINK-3-UPDOWN: Interface FastEthernet3, changed state to down
*Mar 7 16:35:12.119: %LINK-3-UPDOWN: Interface GigabitEthernet0, changed state to down
*Mar 7 16:35:13.151: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthern et0, changed state to down
*Mar 7 16:35:13.155: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthern et1, changed state to down
*Mar 7 16:35:13.155: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthern et2, changed state to down
*Mar 7 16:35:13.155: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthern et3, changed state to down
*Mar 7 16:35:13.155: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEth ernet0, changed state to down
*Mar 7 16:35:15.151: %SYS-5-RESTART: System restarted --
Cisco IOS Software, C860 Software (C860VAE-ADVSECURITYK9-M), Version 15.5(1)T, R ELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2014 by Cisco Systems, Inc.
Compiled Wed 19-Nov-14 01:39 by prod_rel_team
*Mar 7 16:35:15.663: %CRYPTO-6-ISAKMP_ON_OFF: ISAKMP is OFF
*Mar 7 16:35:15.663: %LINEPROTO-5-UPDOWN: Line protocol on Interface Virtual-Ac cess1, changed state to up
*Mar 7 16:35:15.663: %LINK-3-UPDOWN: Interface Virtual-Access1, changed state t o up
Router>en
Router#sh ru
Building configuration...
Current configuration : 1889 bytes
!
version 15.5
no service pad
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Router
!
boot-start-marker
boot-end-marker
!
!
!
no aaa new-model
bsd-client server url https://cloudsso.cisco.com/as/token.oauth2
wan mode ethernet
no ip subnet-zero
!
!
!
no ip dhcp conflict logging
ip dhcp excluded-address 192.168.1.1 255.255.255.0
ip dhcp excluded-address 192.168.1.1
ip dhcp excluded-address 192.168.1.2
ip dhcp excluded-address 192.168.1.3
ip dhcp excluded-address 192.168.1.5
!
ip dhcp pool HomeNetwork
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
dns-server 8.8.8.8
!
!
!
ip cef
no ipv6 cef
!
!
controller VDSL 0
shutdown
!
!
interface ATM0
no ip address
shutdown
no atm ilmi-keepalive
pvc 0/38
encapsulation aal5mux ppp dialer
dialer pool-member 1
!
!
interface Ethernet0
no ip address
shutdown
!
interface FastEthernet0
no ip address
!
interface FastEthernet1
no ip address
!
interface FastEthernet2
no ip address
!
interface FastEthernet3
no ip address
!
interface GigabitEthernet0
no ip address
!
interface GigabitEthernet1
no ip address
shutdown
duplex auto
speed auto
!
interface Vlan1
no ip address
!
interface Dialer1
ip address negotiated
ip nat outside
ip virtual-reassembly in
encapsulation ppp
dialer pool 1
ppp chap hostname =============@skydsl
ppp chap password 0=========
ppp pap sent-username c========skydsl password -------------
!
ip forward-protocol nd
no ip http server
no ip http secure-server
!
!
ip nat inside source list 1 interface Dialer1 overload
ip route 0.0.0.0 0.0.0.0 Dialer1
!
dialer-list 1 protocol ip permit
!
access-list 1 permit 192.168.1.0 0.0.0.255
!
!
line con 0
no modem enable
line aux 0
line vty 0 4
login
transport input none
!
scheduler allocate 60000 1000
!
end
Router#
Solved! Go to Solution.
03-09-2015 07:01 AM
Hi himanshurgu,
1. Make sure that the connection between the router and the switch is trunk.
2. The exclude commands should exclude address range from being assigned to hosts. For example:
# ip dhcp pool (pool name) 192.168.1.1 192.168.1.10. so addresses from 1 to 10 will not be assigned to clients.
3. Default router (ip address)
4. Create a VLAN interface and use the DHCP default router ip address. For example:
ip dhcp pool (pool name)
default router 192.168.1.1
Interface vlan 100
ip address 192.168.1.1
5. you need an IP helper assigned to the interface that is connected to the switch.
Please refer to the attached guide for more details.
03-08-2015 11:39 PM
Which interface connects to your lan? You might want to assign an ip address to interface vlan1
interface Vlan1
ip address 192.168.1.1 255.255.255.0
Thanks
John
03-09-2015 07:01 AM
Hi himanshurgu,
1. Make sure that the connection between the router and the switch is trunk.
2. The exclude commands should exclude address range from being assigned to hosts. For example:
# ip dhcp pool (pool name) 192.168.1.1 192.168.1.10. so addresses from 1 to 10 will not be assigned to clients.
3. Default router (ip address)
4. Create a VLAN interface and use the DHCP default router ip address. For example:
ip dhcp pool (pool name)
default router 192.168.1.1
Interface vlan 100
ip address 192.168.1.1
5. you need an IP helper assigned to the interface that is connected to the switch.
Please refer to the attached guide for more details.
03-09-2015 12:11 PM
Hi thank you all,
The mistake was mine at excluded address: I gave 192.x.x.x as well as the 255.255.255.0.
The mask created trouble.
Thanks,
HS
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