cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
5063
Views
0
Helpful
6
Replies

DHCP MAC binding

sagarpanday
Level 1
Level 1

hi all

I have cisco 800 router, router configure as DHCP server, i want to bind user MAC ID with IP and block only Internet Access.

please assist


sagar panday

6 Replies 6

Magnus Mortensen
Cisco Employee
Cisco Employee

Sagar,

     You can creates specific dhcp pools for hosts with the following example:

ip dhcp pool Desktop1
  host 192.168.2.55
  hardware-address 0a0a.0b0b.0c0c ieee802
  client-name Dsktop1

Then use access-list to control your internet acces.

- Magnus

thanks magnus for your help

one more thing for each client (MAC ) i have to create seperate DHCP pool,

can you please give me example of access list.

thanks with regards

sagar panday

Yes, you should create a separate pool for each MAC.

Once done you can use acl to restrict access.

conf t

access-l 100 permit tcp ho 192.168.2.55 any eq 80

(Then apply this acl on an interface behind which this host lives.)

int e0

ip access-g 100 in

-KS

Dear Poonguzhali
Thanks so much for  reply

i have configured my router as

ip dhcp pool xxx
   host 192.168.1.4 255.255.255.0
   hardware-address 0026.9e9d.9466 ieee802
   client-name xxx
   default-router 192.168.1.1
   dns-server x.x.x.x

but PC (0026.9e9d.9466) is not getting IP (192.168.1.4) .from router.

please assist

regards

sagar


Hello ,

Can you try :

ip dhcp pool user

      host 192.168.1.4 255.255.255.0

   client-identifier 0026.9e9d.9466

if not , please post show ip dhcp bind

Dan

you could use XLATE command also

Review Cisco Networking products for a $25 gift card