
6.3.3 Applying an Access List to an Interface
After creating your access lists, you can choose interfaces for which the access lists will be applied. If no interfaces
are explicitly selected, the access list is applied to all interfaces.
To select the interface for an access list, use the following command:
Command Purpose
access-list name acl1 set portlist ……
Select interfaces that the access list ‘acl1’ will be applied
In the next example, we will create an extended access list that will allow only SMTP bound traffic (port 25) to be
forwarded on port 7, and deny all other traffic.
Switch(Config)# access-list name acl_tcp_dst_smtp add priority 1
Switch(Config)# access-list name acl_tcp_dst_smtp set ip-mode l4port dst-port from 25
to 25
Switch(Config)# access-list name acl_tcp_dst_smtp set portlist 7
Switch(Config)# access-list name acl_tcp_dst_smtp action permit
Switch(Config)# access-list name acl_deny_all add priority 2
Switch(Config)# access-list name acl_deny_all set ip-mode l4port dst-port from 25 to
25
Switch(Config)# access-list name acl_deny_all set mac-mode macsa 00-00-94-12-34-56 00-
00-00-00-00
Switch(Config)# access-list name acl_deny_all action deny
6.3.4 Enabling an Access List
To enable a configured access list, use the command below. All the examples above require execution of the ‘enable’
command to make the access lists effective.
Command Purpose
access-list name acl_name enable
Enable an access list named ‘acl_name’ .
52
Asante IC3724PWR
User’s Manual
Summary of Contents for INTRACORE 3724PWR
Page 12: ...12 Asante IC3724PWR User s Manual...
Page 78: ...78 Asante IC3724PWR User s Manual...
Page 79: ...79 Asante IC3724PWR User s Manual...
Page 92: ...TACAS and Storm Control are available on the next screens 92 Asante IC3724PWR User s Manual...
Page 100: ...SNMP Continued 100 Asante IC3724PWR User s Manual...
Page 101: ...10 10 LLDP 101 Asante IC3724PWR User s Manual...
Page 102: ...102 Asante IC3724PWR User s Manual...
Page 107: ...107 Asante IC3724PWR User s Manual...
Page 108: ...108 Asante IC3724PWR User s Manual...
Page 109: ...109 Asante IC3724PWR User s Manual...
Page 110: ...Cable diagnostic a cable test that can be run for each port 110 Asante IC3724PWR User s Manual...
Page 113: ...113 Asante IC3724PWR User s Manual...
Page 114: ...114 Asante IC3724PWR User s Manual...
Page 115: ...115 Asante IC3724PWR User s Manual...
Page 116: ...10 13 Help General help is available for many screens 116 Asante IC3724PWR User s Manual...
Page 154: ...154 Asante IC3724PWR User s Manual bandwidth 57 configuration 57 monitoring 57 58 59 60...