cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Bookmark
|
Subscribe
|
2588
Views
0
Helpful
2
Replies

what the command for configure ACL to block a PC

Moshi
Level 1
Level 1
1 Accepted Solution

Accepted Solutions

Deepak Kumar
VIP Alumni
VIP Alumni

Hi,

Where you want to block the PC? Is it a Layer 2 or Layer 3 network where you are looking this solution? This is very little information for understanding the issue but you can use Access list as below:

 

ip access-list extended Block_PC

deny ip host x.x.x.x any 

permit ip any any

!

Here x.x.x.x is the PC ip address.

 

Now, apply this Access-list near to the source (host) as:

!

ip interface xxx\x

ip access-group Block_PC in

 

Above example is for the router or Layer 3 device where you want to block the single host.

 

Regards,
Deepak Kumar,
Don't forget to vote and accept the solution if this comment will help you!

View solution in original post

2 Replies 2

Deepak Kumar
VIP Alumni
VIP Alumni

Hi,

Where you want to block the PC? Is it a Layer 2 or Layer 3 network where you are looking this solution? This is very little information for understanding the issue but you can use Access list as below:

 

ip access-list extended Block_PC

deny ip host x.x.x.x any 

permit ip any any

!

Here x.x.x.x is the PC ip address.

 

Now, apply this Access-list near to the source (host) as:

!

ip interface xxx\x

ip access-group Block_PC in

 

Above example is for the router or Layer 3 device where you want to block the single host.

 

Regards,
Deepak Kumar,
Don't forget to vote and accept the solution if this comment will help you!

Just the router and switch but thanks for your assistance.