cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
11939
Views
5
Helpful
3
Replies

Access-list for block the DHCP request.

dipakpvaghela
Level 1
Level 1

Dear All,

How can I block a DHCP request on cisco 2950 switches, I tried given below access list but it was not working so plz suggest

interface FastEthernet0/4

no ip address

ip access-group 102 in

!

Extended IP access list 102

deny udp host 10.12.14.120 any eq bootpc

permit ip any any

IOS : Version 12.1(19)EA1c,

Thank you in anticipation,

Regards,

Dipak

3 Replies 3

gmarogi
Level 5
Level 5

The access-list which you have created is correct except the tu need to add one more statement to the list

access-list 102 deny udp any host 10.12.14.120 any eq 67

access-list 102 deny udp any host 10.12.14.120 any eq 68

Gabriel

The syntax that you suggest may be better but it does not address the problem of trying to assign an IP access list to an interface that is not processing IP. I do not believe that you can do this filtering on a 2950 layer 2 switch.

HTH

Rick

HTH

Rick

depending on the switch IOS, you can filter layer3/4 information on the 2950 on an interface that is not processing IP itself.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card