09-28-2005 08:09 AM - edited 03-03-2019 10:37 AM
HI,
I have DHCP enabled on a Cisco 800 series router but I want one laptop to get the same address everytime he connects but I can't seem to get manual bindings working. DHCP issues an address rather than my manual one. AM I doing something wrong? Config looks as follows:
ip dhcp excluded-address 11.11.11.1 11.11.11.100
!
ip dhcp pool local
network 11.11.11.0 255.255.255.0
default-router 11.11.11.1
netbios-node-type h-node
dns-server 11.11.111.5 11.11.111.6
netbios-name-server 11.11.111.5
domain-name groupname.com
lease 30
!
ip dhcp pool Joeslaptop
host 10.11.22.107 255.255.255.0
hardware-address 0100.123a.0b1a.c5
client-name JoeMoriartylap
sh ip dhcp bind
Bindings from all pools not associated with VRF:
IP address Hardware address Lease expiration Type
10.11.11.104 0100.123a.0b1a.c5 Oct 27 2005 12:29 AM Automatic
10.11.11.107 0100.123a.0b1a.c5 Infinite Manual
Solved! Go to Solution.
09-28-2005 05:29 PM
Are you using secondary address of 10.x.x.x subnet and primary as 11.x.x.x subnet ? I dont think this will work, as Cisco IOS DHCP server doesnt work with secondary address. You definitely can have a secondary pool from the secondary address subnet, but the IOS DHCp server will allocate address only if the primary pool is out of addresses. You will have to setup two vlans on your switch and configure a trunk port to the router and configure the router with sub interfaces to make this happen.
int fa0/0
no ip add
int fa0/0.1
encap dot1q 11
ip add 11.11.11.1 255.255.255.0
int fa0/0.2
encap dot1q 10
ip add 10.11.22.1 255.255.255.0
ip dhcp pool local
network 11.11.11.0 255.255.255.0
default-router 11.11.11.1
netbios-node-type h-node
dns-server 11.11.111.5 11.11.111.6
netbios-name-server 11.11.111.5
domain-name groupname.com
lease 30
!
ip dhcp pool Joeslaptop
host 10.11.22.107 255.255.255.0
hardware-address 0100.123a.0b1a.c5
client-name JoeMoriartylap
On the switch configure two vlans.
Switch#vlan database
Switch(vlan)#vlan 2 name Subnet10
Switch(vlan)#exit
int fa0/24
description trunk to router
switchport mode trunk
switchport trunk encap dot1q
This should work.
09-28-2005 05:29 PM
Are you using secondary address of 10.x.x.x subnet and primary as 11.x.x.x subnet ? I dont think this will work, as Cisco IOS DHCP server doesnt work with secondary address. You definitely can have a secondary pool from the secondary address subnet, but the IOS DHCp server will allocate address only if the primary pool is out of addresses. You will have to setup two vlans on your switch and configure a trunk port to the router and configure the router with sub interfaces to make this happen.
int fa0/0
no ip add
int fa0/0.1
encap dot1q 11
ip add 11.11.11.1 255.255.255.0
int fa0/0.2
encap dot1q 10
ip add 10.11.22.1 255.255.255.0
ip dhcp pool local
network 11.11.11.0 255.255.255.0
default-router 11.11.11.1
netbios-node-type h-node
dns-server 11.11.111.5 11.11.111.6
netbios-name-server 11.11.111.5
domain-name groupname.com
lease 30
!
ip dhcp pool Joeslaptop
host 10.11.22.107 255.255.255.0
hardware-address 0100.123a.0b1a.c5
client-name JoeMoriartylap
On the switch configure two vlans.
Switch#vlan database
Switch(vlan)#vlan 2 name Subnet10
Switch(vlan)#exit
int fa0/24
description trunk to router
switchport mode trunk
switchport trunk encap dot1q
This should work.
09-29-2005 12:25 AM
Sorry - a typo when changing the addresses for the forup - both addresses are on the same subnet. They are sitting at the far side of the router which gives them ISDN access to HO.
Thanks,
Tim
09-29-2005 01:37 AM
Problem solved. I used client-identifier rather than hardware-address.
Many thanks,
Tim
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