1.2.5 Configuring Multiple Interface Filters
The following shows an example of specifying a filter on multiple Ethernet interfaces.
- Points to note
-
A filter can be set for multiple Ethernet interfaces in config-if-range mode.
Command examples
-
(config)# access-list 10 permit host 192.168.0.1
Sets an IPv4 address filter that forwards only frames from the host 192.168.0.1.
-
(config)# interface range gigabitethernet 1/0/1-4
Switches to the interface mode for ports 1/0/1-4.
-
(config-if-range)# ip access-group 10 in
Enables IPv4 filtering on the receiving side.