The Layer 3 Extended IP ACL provides support for filtering traffic based on Layer 4 fields of the packets such as TCP source port/destination port range, TCP ACK/ RST flags, UDP source port/destination port range, ICMP message types, message codes, etc.
Type the following:
iS5comm# configure terminal
iS5comm(config)# ip access-list extended 1002
iS5comm(config-ext-nacl)# permit TCP any any
Similarly, for deny, the rule will be deny tcp any any
iS5comm(config-ext-nacl) # end
Type the following:
iS5comm# configure terminal
iS5comm (config)# interface gigabitethernet 0/1
iS5comm(config-if)# ip access-group 1002 in
iS5comm(config-if) # end
Type the following:
iS5comm# show access-lists ip 1002
Extended IP Access List 1002
----------------------------
Filter Priority : 1
IP address Type : IPV4
Source IP address : 0.0.0.0
Source IP address mask : 0.0.0.0
Source IP Prefix Length : 0
Destination IP address : 0.0.0.0
Destination IP address mask : 0.0.0.0
Destination IP Prefix Length : 0
Flow Identifier : 0
In Port List : Gi0/1
Out Port List : NIL
Filter TOS : Invalid combination
Filter DSCP : NIL
Filter Source Ports From : 0
Filter Source Ports Till : 65535
Filter Destination Ports From : 0
Filter Destination Ports Till : 65535
Filter Action : Permit
Redirect Port List : NIL
TrafficDistField : Unknown
Sub Action : NONE
Sub Action Id : 0
Status : Active
Type the following:
iS5comm# configure terminal
iS5comm(config)# ip access-list extended 1008
iS5comm(config-ext-nacl)# deny udp any any eq 63
Similarly for permit, the rule will be as permit udp any any eq 63
iS5comm(config-ext-nacl) # end
Type the following:
iS5comm# configure terminal
iS5comm (config)# interface gigabitethernet 0/1
iS5comm(config-if)# ip access-group 1008 in
iS5comm(config-if) # end
Type the following:
iS5comm# show access-lists ip 1008
Extended IP Access List 1008
----------------------------
Filter Priority : 1
Filter Protocol Type : UDP
IP address Type : IPV4
Source IP address : 0.0.0.0
Source IP address mask : 0.0.0.0
Source IP Prefix Length : 0
Destination IP address : 0.0.0.0
Destination IP address mask : 0.0.0.0
Destination IP Prefix Length : 0
Flow Identifier : 0
In Port List : Gi0/1
Out Port List : NIL
Filter TOS : Invalid combination
Filter DSCP : NIL
Filter Source Ports From : 0
Filter Source Ports Till : 65535
Filter Destination Ports From : 63
Filter Destination Ports Till : 63
Filter Action : Deny
Redirect Port List : NIL
TrafficDistField : Unknown
Sub Action : NONE
Sub Action Id : 0
Status : Active