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

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

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s