07-05-2008 02:08 PM - edited 03-06-2019 12:00 AM
is there anyway to assign specific ip addresses to specific mac addresses in dhcp and how can we block internet access on specific mac or ip addresses
Solved! Go to Solution.
07-05-2008 03:54 PM
Mustafa
Yes you can assign a specific IP address to a specific mac-address. See this attached link for details:
http://www.cisco.com/en/US/docs/ios/12_4t/ip_addr/configuration/guide/htdhcpsv.html#wp1074511
Once you have done this you can then use an access-list to block specific IP addresses ie. lets say you want to block host 192.168.5.10
access-list 101 deny ip host 192.168.5.10 any
access-list 101 permit ip any any
You can modify the above acl to be more specific ie. TCP ports if needed.
You then apply the acl inbound on the LAN interface of your 877
int fa0/1
ip access-group 101 in
Jon
07-05-2008 03:54 PM
Mustafa
Yes you can assign a specific IP address to a specific mac-address. See this attached link for details:
http://www.cisco.com/en/US/docs/ios/12_4t/ip_addr/configuration/guide/htdhcpsv.html#wp1074511
Once you have done this you can then use an access-list to block specific IP addresses ie. lets say you want to block host 192.168.5.10
access-list 101 deny ip host 192.168.5.10 any
access-list 101 permit ip any any
You can modify the above acl to be more specific ie. TCP ports if needed.
You then apply the acl inbound on the LAN interface of your 877
int fa0/1
ip access-group 101 in
Jon
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