cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
15983
Views
0
Helpful
14
Replies
aconticisco
Explorer

bind ip address with mac address issue

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 !

1 ACCEPTED SOLUTION

Accepted Solutions

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.

Don't forget to rate helpful posts.

View solution in original post

14 REPLIES 14
Roman Rodichev
Rising star

use client-id command instead of hardware-address

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.

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 !

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.

sorry but neither on the interface:

dslrouter(config-if)#no ip ar?
% Unrecognized command

any idea pls ?

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.

Don't forget to rate helpful posts.

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

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.

Don't forget to rate helpful posts.

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 !

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.

Don't forget to rate helpful posts.

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 !

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.

Don't forget to rate helpful posts.

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

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