How to configure an IP ACL on Cisco switch?

Posted on Updated on

Poresh-Cisco-SwitchYou can create an IPv4 ACL on the switch and add rules to it.

To configure an IP ACL below steps;

Creating an IP ACL

Step 1: switch# configure terminal

Step 2: switch(config)# ip access-listnameRead more…

Step 3: switch(config-acl)# [sequence-number] {permit|deny} protocolsource destination

Step 4: switch(config-acl)# statistics

Step 5: switch(config-acl)# show ip access-lists name

Step 6: switch(config-acl)# copy running-config startup-config

The following example shows how to cre ate an IPv4 ACL:

switch# configure terminal
switch(config)# ip access-list acl-01
switch(config-acl)# permit ip 192.168.2.0/24 any
switch(config-acl)# statistics
switch(config-acl)# show ip access-lists acl-01
switch(config-acl)# copy running-config startup-config

Changing an IP ACL

Step 1: switch# configure terminal

Step 2: switch(config)# ip access-listname

Step 3: switch(config-acl)# [sequence-number] {permit|deny} protocolsource destination

Step 4: switch(config-acl)# no{sequence-number | {permit|deny} protocol sourcedestination}

Step 5: sswitch(config-acl)# [no]statistics

Step 6: switch(config-acl)# show ip access-lists name

Step 7: switch(config-acl)# copy running-config startup-config

Removing an IP ACL

Step 1: switch# configure terminal

Step 2: switch(config)# no ip access-listname

Step 3: switch(config)# show running-config

Step 4: switch(config)# copy running-config startup-config

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s