networking-forum.com
Community BlogCommunity Wiki * Register  * Search  * Login
View unanswered postsView active topics

All times are UTC - 6 hours [ DST ]



Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Wed Jun 27, 2012 7:57 am 
Offline
Junior Member
Junior Member

Joined: Sat Mar 12, 2011 2:19 pm
Posts: 62
Location: Cardiff
Certs: DCAP, CLP, MCP
Hi all,

Can anyone help me work out why my switch is not picking up a reserved address from the second pool below?

Router is a Cisco 877 and Switch is a Cisco 2960.

Config follows and further down you see console output with dhcp debugging on.

Thank you for any assistance.

Seabro

ps. I have also tried 'hardware-address 0024.f769.bf40 1' which is hardware type 'other'


Config

ip dhcp excluded-address 172.23.23.1 172.23.23.49
!
ip dhcp pool main
import all
network 172.23.23.0 255.255.255.0
default-router 172.23.23.1
dns-server 172.22.10.20 172.22.10.21
domain-name ourdomain.co.uk
!
ip dhcp pool Switch1
import all
host 172.23.23.200 255.255.255.0
hardware-address 0024.f769.bf40 ieee802
client-name sw1
!



Router#
*Mar 26 15:37:39.787: DHCPD: checking for expired leases.
Router#
*Mar 26 15:38:19.464: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up
*Mar 26 15:38:20.456: %LINK-3-UPDOWN: Interface FastEthernet0, changed state to up
*Mar 26 15:38:21.456: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0, changed state to up
Router#
*Mar 26 15:38:48.740: DHCPD: Sending notification of DISCOVER:
*Mar 26 15:38:48.740: DHCPD: htype 1 chaddr 0024.f769.bf40
*Mar 26 15:38:48.740: DHCPD: remote id 020a0000ac171701000000010000
*Mar 26 15:38:48.740: DHCPD: circuit id 00000000
*Mar 26 15:38:48.740: DHCPD: DHCPDISCOVER received from client 0063.6973.636f.2d30.3032.342e.6637.3639.2e62.6634.302d .566c.31 on interface Vlan1.
*Mar 26 15:38:48.740: DHCPD: Seeing if there is an internally specified pool class:
*Mar 26 15:38:48.740: DHCP
Router#D: htype 1 chaddr 0024.f769.bf40
*Mar 26 15:38:48.740: DHCPD: remote id 020a0000ac171701000000010000
*Mar 26 15:38:48.740: DHCPD: circuit id 00000000
*Mar 26 15:38:48.740: DHCPD: Sending DHCPOFFER to client 0063.6973.636f.2d30.3032.342e.6637.3639.2e62.6634.302d.566c. 31 (172.23.23.53).
*Mar 26 15:38:48.740: DHCPD: broadcasting BOOTREPLY to client 0024.f769.bf40.
*Mar 26 15:38:48.744: DHCPD: DHCPREQUEST received from client 0063.6973.636f.2d30.3032.342e.6637.3639.2e62.6634.302d. 566c.31.
*Mar 26 15:
Router#38:48.744: DHCPD: Sending notification of ASSIGNMENT:
*Mar 26 15:38:48.744: DHCPD: address 172.23.23.53 mask 255.255.255.0
*Mar 26 15:38:48.744: DHCPD: htype 1 chaddr 0024.f769.bf40
*Mar 26 15:38:48.744: DHCPD: lease time remaining (secs) = 86400
*Mar 26 15:38:48.744: DHCPD: Appending default domain from pool
*Mar 26 15:38:48.744: DHCPD: Using hostname 'Switch.ourdomain.co.uk' for dynamic update (from hostname option)
*Mar 26 15:38:48.748: DHCPD: Sending DHCPACK to client 0063.6973.636f.2d30.30
Router#32.342e.6637.3639.2e62.6634.302d.566c.31 (172.23.23.53).
*Mar 26 15:38:48.748: DHCPD: broadcasting BOOTREPLY to client 0024.f769.bf40.
Router#
*Mar 26 15:39:39.754: DHCPD: checking for expired leases.
Router#


Top
 Profile  
 
PostPosted: Wed Jun 27, 2012 8:06 am 
Offline
CCIE #38070
CCIE #38070
User avatar

Joined: Wed Jun 18, 2008 7:49 am
Posts: 12424
Location: London, UK
Certs: CCIE ,CC-NP/IP, JNCIP-SP, JNCIS-ENT, BC-/SPNE/NP
Add this to the pool:

client-identifier 0100.24f7.69bf.40

_________________
www.mellowd.co.uk/ccie/


Top
 Profile  
 
PostPosted: Wed Jun 27, 2012 8:29 am 
Offline
Junior Member
Junior Member

Joined: Sat Mar 12, 2011 2:19 pm
Posts: 62
Location: Cardiff
Certs: DCAP, CLP, MCP
Thanks mellowd, I was just reading your blog :-)

I added that line and the 'hardware-address' line disappeared.

After adding, console showed:
Router(dhcp-config)#client-identifier 0100.24f7.69bf.40
Router(dhcp-config)#
*Mar 26 18:13:30.975: DHCPD: Sending notification of TERMINATION:
*Mar 26 18:13:30.975: DHCPD: address 172.23.23.200 mask 255.255.255.0
*Mar 26 18:13:30.975: DHCPD: reason flags: noalloc
*Mar 26 18:13:30.975: DHCPD: lease time remaining (secs) = -1
*Mar 26 18:13:30.979: DHCPD: Adding binding to radix tree (172.23.23.200)
*Mar 26 18:13:30.979: DHCPD: Adding binding to hash tree
Router(config)#

I jumped on the switch and shut/no shut vlan 1 and it picked up a .50 address grrrrr.

Any further ideas?

Config now reads:

ip dhcp pool main
import all
network 172.23.23.0 255.255.255.0
default-router 172.23.23.1
dns-server 172.22.10.20 172.22.10.21
domain-name ourdomain.co.uk
!
ip dhcp pool Switch1
import all
host 172.23.23.200 255.255.255.0
client-identifier 0100.24f7.69bf.40
client-name sw1

Any further ideas?


Top
 Profile  
 
PostPosted: Wed Jun 27, 2012 8:30 am 
Offline
CCIE #38070
CCIE #38070
User avatar

Joined: Wed Jun 18, 2008 7:49 am
Posts: 12424
Location: London, UK
Certs: CCIE ,CC-NP/IP, JNCIP-SP, JNCIS-ENT, BC-/SPNE/NP
Yup. Try Ivan's suggestion here: http://blog.ioshints.info/2007/08/defau ... nt-id.html

Configure this on the switch layer3 port you're trying to get an address for.

_________________
www.mellowd.co.uk/ccie/


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: CDelapena2, tzmueller and 16 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group