cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
650
Views
0
Helpful
4
Replies

VLAN interface and access-list

paulo.roque
Level 1
Level 1

What does a access-list do when applied to an VLAN interface? It filter all traffic to or from any interface that belongs to that VLAN?

access-list 101 permit icmp any any echo

access-list 101 permit icmp any any echo-reply

!

interface VLAN10

ip access-group 101 out

4 Replies 4

t.baranski
Level 4
Level 4

It filters *routed* traffic to or from an interface in the VLAN; e.g., traffic to or from other VLANs.

This access is applied out bound. So, it is going to be affecting traffic going to hosts in vlan 10. But, hosts in vlan 10 have nothing applied to them coming in. Remember, your reference point of in and out ,is "if -you -were- sitting -inside -the -router".

Can you explain "if -you -were- sitting -inside -the -router"? From which side i must imagine VLAN 10?

You just have to think of it as any other interface. It sounds intuitive but it really confused me at first -- I couldn't figure out for the life of me why my access lists weren't working.

Packets from VLAN 10 are going *in* the VLAN 10 interface; packets to VLAN 10 are going *out* the VLAN 10 interface.