- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2011 08:55 PM - edited 03-06-2019 04:50 PM
Hello
I am trying to bind a pc with its mac address to always obtain a particular ip address from its vlan. The pc is connected to a 2950 switch which is then connected to a 1721 router. Router has subinterfaces on ethernet 0 and each subinterface has it's own dhcp server running from the router. Please see below: ( I am trying to assign a 1.100 address but it is not working )
dslrouter(config)#ip dhcp pool dhcpgroup1
dslrouter(dhcp-config)#host ?
A.B.C.D IP address in dotted-decimal notation
dslrouter(dhcp-config)#host 192.168.1.100 255.255.255.0
% This command may not be used with network, origin, vrf, or relay pools.
dslrouter(dhcp-config)#hardw
dslrouter(dhcp-config)#hardware-address 0100.1966.83c0.49 eth
dslrouter(dhcp-config)#hardware-address 0100.1966.83c0.49 ethernet
% This command may not be used with network, origin, vrf, or relay pools.
dslrouter(dhcp-config)#client
dslrouter(dhcp-config)#client-nam
dslrouter(dhcp-config)#client-name aaaaa
% This command may not be used with network, origin, vrf, or relay pools.
dslrouter(dhcp-config)#
dslrouter#
*Mar 1 04:06:03.615: %SYS-5-CONFIG_I: Configured from console by consoleshow ip dhcp binding
Bindings from all pools not associated with VRF:
IP address Client-ID/ Lease expiration Type
Hardware address/
User name
192.168.1.11 0100.1966.83c0.49 Mar 02 2002 04:02 AM Automatic
dslrouter#
*Mar 1 04:06:22.047: DHCPD: DHCPRELEASE message received from client 0100.1966.83c0.49 (192.168.1.11).
*Mar 1 04:06:28.799: DHCPD: DHCPDISCOVER received from client 0100.1966.83c0.49 on interface FastEthernet0.1.
*Mar 1 04:06:30.799: DHCPD: Sending DHCPOFFER to client 0100.1966.83c0.49 (192.168.1.11).
*Mar 1 04:06:30.799: DHCPD: broadcasting BOOTREPLY to client 0019.6683.c049.
*Mar 1 04:06:30.803: DHCPD: DHCPREQUEST received from client 0100.1966.83c0.49.
*Mar 1 04:06:30.803: DHCPD: Appending default domain from pool
*Mar 1 04:06:30.803: DHCPD: Using hostname 'pc-PC.home.local' for dynamic update (from FQDN option)
*Mar 1 04:06:30.807: DHCPD: Sending DHCPACK to client 0100.1966.83c0.49 (192.168.1.11).
*Mar 1 04:06:30.807: DHCPD: Including FQDN option name 'pc-PC.home.local' rcode1=0, rcode2=0 flags=0x0
*Mar 1 04:06:30.807: DHCPD: broadcasting BOOTREPLY to client 0019.6683.c049.
Thanks !
Solved! Go to Solution.
- Labels:
-
Other Switching
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2011 03:23 AM
Hi,
not mandatory to specify client name but each pool for a manual binding will have a different name.
When I talked about parent/child I meant that there must exist a network pool before creating a pool for a manual binding and the ip address must be in the network of the network pool.
Regards.
Alain.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2011 10:32 PM
use client-id command instead of hardware-address
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2011 11:04 PM
Hi,
First you need to disable dynamic arp under interface, and configure static arp entries in global config.
Use the following command under interface "Switch(config-if)#no ip arp inspection" to disable dynamic arp.
Use the following command in Globla config mode "Switch(config)#arp 10.10.10.10 aaaa.aaaa.aaaa arpa" to injects a static ARP entry into the ARP/MAC Address table.
Please click on the correct answere if this answered your question.
Regards,
Naidu.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2011 02:09 PM
sorry but for no ip arp inspection I got :
dslrouter(config)#no ip arp ?
gratuitous Gratuitous ARP control
proxy Global proxy ARP configuration
and this is what is happenning, I have added the 1.100 but the old one 1.11 is still in the arp table...
Internet 192.168.1.100 - 0019.6683.c049 ARPA
Internet 192.168.10.2 - 0014.f2c0.3943 ARPA FastEthernet0.10
Internet 192.168.1.11 0 0019.6683.c049 ARPA FastEthernet0.1
Internet 192.168.1.2 - 0014.f2c0.3943 ARPA FastEthernet0.1
Internet 192.168.20.2 - 0014.f2c0.3943 ARPA FastEthernet0.20
Thanks !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2011 11:09 PM
Hi,
"no ip arp inspection" is an interface level command not global config mode as i told in my previous post.
Once you done the above try to add static arp entries as i told in my previous post.
Please rate the helpfull posts.
Regards,
Naidu.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2011 12:43 PM
sorry but neither on the interface:
dslrouter(config-if)#no ip ar?
% Unrecognized command
any idea pls ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2011 12:03 AM
Hi,
do a show ip dhcp pool and post output. Manual bindings must be configured in child pools and then replace hardware-address by client-identifier like Roman told above.
Regards.
Alain.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2011 08:45 PM
dslrouter#show ip dhcp pool
*Mar 1 03:45:08.891: %SYS-5-CONFIG_I: Configured from console by console
Pool dhcpgroup1 :
Utilization mark (high/low) : 100 / 0
Subnet size (first/next) : 0 / 0
Total addresses : 254
Leased addresses : 1
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 1
Pool vlan10-Pool :
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.10.1 192.168.10.1 - 192.168.10.254 0
Pool vlan20-pool :
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.20.1 192.168.20.1 - 192.168.20.254 0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2011 06:35 AM
ok that's what I thought, you were trying to do a manual binding inside a network pool which already existed.
You'll have to create a new pool to do the binding and don't forget to change hardware-address by client-identifier if you use the mac address prefixed with 01.
Regards.
Alain.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2011 09:42 PM
Does this mean that each time I have to create a binding I do have to re-create the pool ?
The mac address starts with 00 so in this case do I have to use hardware-address ?
Thanks !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2011 01:53 AM
Does this mean that each time I have to create a binding I do have to re-create the pool ?
Not re-create but create a different one which will always be a child pool with the network pool being the parent.
When you issue a dynamic lease you can see in the output of sh ip dhcp binding how the client identified itself: with its mac address(12 chars) or with a client-id( 14 chars= prefix( 2 chars = 01 for ethernet)+ 12 chars of mac address).
in the former case use hardware-address followed by mac address and in the latter use client-identifier followed by client-id.
Regards.
Alain.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2011 05:42 AM
Alain,
I created another pool and gave it a name of child pool, in it I specified the client-identifier and invented a client-name and it worked. Is this the correct way to the bindings
Thanks !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2011 03:23 AM
Hi,
not mandatory to specify client name but each pool for a manual binding will have a different name.
When I talked about parent/child I meant that there must exist a network pool before creating a pool for a manual binding and the ip address must be in the network of the network pool.
Regards.
Alain.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2011 03:23 AM
Hello,
I set up both pools on another router and the ip address is being leased from the first pool only
The second pool consists of a subnet of the first pool and in it I specified the host ip and client id.
1st pool covers 1 - 254
2nd pool covers 240 - 254
the 2nd pool is supposed to be for reservations bindings with mac only however ip is being leased from the 1st pool
any ideas pls
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2016 07:07 AM
Hi Cadet,
You mean to say that, If we want to reserve MAC address with ip address from DHCP pool then we require two DHCP pool.
But why ? Why we can not do MAC reservation with ip address from only one DHCP pool.
Please Tell
