IP access-group Command on CISCO Router/Switch

Other Cisco Other Cisco Material Original source

Command

IP access-group

Use

This command is used to apply an access-list to an interface.

Syntax

Router(config-if)#ip access-group

Option

automatically determine the duplex mode by checking with the neighbor
applies the access-list to inbound traffic on the interface.
applies the access-list to traffic leaving the router.

Example

In this example, we will apply access-list 101 to R1’s Fa0/0.

Copy

R1(config)#int fa0/0

R1(config-if)#ip access-group 101 in
← All Other Cisco articles Home