IP access-group Command on CISCO Router/Switch

Command

IP access-group

Use

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

Syntax

Router(config-if)#ip access-group <list> <in or out>

Option

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

Example

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

R1(config)#int fa0/0
R1(config-if)#ip access-group 101 in

Related Articles

Leave a Reply

avatar

Send this to a friend