cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
463
Views
0
Helpful
2
Replies

Vlan Separation with ACL's

RyanDundee
Level 1
Level 1

So, I am playing around with a router. I have 4 vlans and I dont want any of them to be able to communicate with each other. Not sure the best way to accomodate this. Here is my thought... Please feel free to critique.

ip access-list extended Vlan1-ACL

deny  ip vlan1subnet 0.0.0.255 host vlan2

deny  ip vlan1subnet 0.0.0.255 host vlan3

deny  ip vlan1subnet 0.0.0.255 host vlan4

permit ip any any

ip access-list extended Vlan2-ACL

deny  ip vlan2subnet 0.0.0.255 host vlan1

deny  ip vlan2subnet 0.0.0.255 host vlan3

deny  ip vlan2subnet 0.0.0.255 host vlan4

permit ip any any

ip access-list extended Vlan3-ACL

deny  ip vlan3subnet 0.0.0.255 host vlan1

deny  ip vlan3subnet 0.0.0.255 host vlan2

deny  ip vlan3subnet 0.0.0.255 host vlan4

permit ip any any

ip access-list extended Vlan4-ACL

deny  ip vlan4subnet 0.0.0.255 host vlan1

deny  ip vlan4subnet 0.0.0.255 host vlan2

deny  ip vlan4subnet 0.0.0.255 host vlan3

permit ip any any

Thanks!

2 Replies 2

Abzal
Level 7
Level 7

Hi,

Second option you can use Private-VLAN but it is done by switches L2 separation.

http://www.cisco.com/en/US/docs/switches/lan/catalyst6500/ios/12.2SX/configuration/guide/pvlans.html

Hope it will help.

Best regards,
Abzal

Best regards,
Abzal

milan.kulik
Level 10
Level 10

Hi,

why

deny  ip vlan1subnet 0.0.0.255 host vlan2 ?

Shoudln't be

deny  ip vlan1subnet 0.0.0.255 vlan2subnet 0.0.0.255 ?

etc.

(Supposing all your subnets are /24.)

HTH,

Milan

Review Cisco Networking for a $25 gift card