cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3768
Views
0
Helpful
1
Replies

Access-list on nexus 9k

SystemsGM
Level 1
Level 1

Hi team,

I am trying to apply an access list on a nexus 9k under int vlans

I need to only allow IT_staff to communicate with test and visa versa but it is not working. I figured that the packet has to go both ways. How can i accomplish this.

int vlan 88 test (10.48.88.0/24)

    ip access-group Test in

.....................................................

int vlan 11 IT_staff (10.48.11.0/26)

......................................................

ip access-list Test

  10 permit ip 10.48.11.0/26 any
  20 deny ip any any

1 Reply 1

Richard Burts
Hall of Fame
Hall of Fame

One thing to keep in mind about access lists is that when we apply them as in or out that it is from the perspective of the switch/router. So when you apply ACL Test as inbound it is looking at traffic from subnet 10.48.88.0 coming into your N9K. But the access list says that 10.48.11.0 is the source address going to any destination address. The packets coming into interface vlan 88 will have 10.48.88 as their source address and so no packet is permitted. To fix this you should either apply your ACL as out or you should rewrite the ACL to make 10.48.11 the destination address.

HTH

Rick

HTH

Rick