Skip to content

How to Configure Access List (How To Allow Or Block IP)

Our Score
Click to rate this post!
[Total: 0 Average: 0]

In This Tutorial We Are Going To Learn How To Configure Access List Or How To Allow Or Block The Ip

First Off All We Have To Take 1 Router 2Switch & 6 Pc’s And Draw This Type Of Scennerio

Now Firstly We Have To Assign The Ip To The Rouer Or Pc’s

Now Go In Router Ond Assign The Ip

Router

enable
Router#
Router#config t
Router(config)#int f0/0
Router(config-if)#ip Add 1.0.0.1 255.0.0.0
Router(config-if)#no shut
Router(config-if)#exit
Router(config)#int f0/1
Router(config-if)#ip add 2.0.0.1 255.0.0.0
Router(config-if)#no shut
Router(config-if)#exit
Router(config)#exit
Router#

We Have Assigned The Ip

Now We Have To Permit Or Deny The Ip Which Ip We Want To Allow Or Which One We Want To Block

Router#
Router#config t
Router(config)#access-list 1 permit host 1.0.0.3
Router(config)#access-list 1 permit host 1.0.0.4
Router(config)#access-list 1 permit host 2.0.0.4
Router(config)#access-list 1 permit host 2.0.0.3
Router(config)#access-list 1 deny host 2.0.0.2
Router(config)#access-list 1 deny host 1.0.0.2
Router(config)#exit
Router#

Router#
Router#config t
Router(config)#int f0/0
Router(config-if)#ip access-group 1 in
Router(config-if)#exit
Router(config)#
Router(config)#int f0/1
Router(config-if)#ip access-group 1 in
Router(config-if)#exit
Router(config)#
Router(config)#


This Is All How We Configure ACL 

Leave a Reply

Discount Offer

Now Get 67% Discount

On Cyber Security Training                                                       Notes  

Click here  To Purchase

%d bloggers like this: