This section explains the steps to create Permit and Deny rules for IP and Layer 3 protocol types.
Type the following:
iS5comm# configure terminal
iS5comm(config)# ip access-list extended 1001
iS5comm (config-ext-nacl)# permit ospf any any
iS5comm(config-ext-nacl) # exit
Type the following:
iS5comm# configure terminal
iS5comm (config)# interface gigabitethernet 0/1
iS5comm(config-if)# ip access-group 1001 in
iS5comm(config-if) # end
Type the following:
iS5comm# show access-lists ip 1001
Extended IP Access List 1001
----------------------------
Filter Priority : 1
Filter Protocol Type : OSPF
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 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 1002
iS5comm (config-ext-nacl) # deny ospf any any
iS5comm(config-ext-nacl) # exit
Type the following:
iS5comm# configure terminal
iS5comm (confgi)# 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
Filter Protocol Type : OSPF
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 Action : Deny
Redirect Port List : NIL
TrafficDistField : Unknown
Sub Action : NONE
Sub Action Id : 0
Status : Active