Hello ITPro. I am pulling my hair out trying to figure out how ACLs work on the nxos platform with inter-vlan routing. Hoping someone with experience can explain to me why with the following configuration, packets from source 192.168.120.0/24 are not blocked when destined for the 192.168.119.0/24 network.
Note, this is an HSRP setup, so two switches sharing virtual IP for gateway on both vlans.
WILNXLAB-01:
interface Vlan1
no shutdown
ip address 192.168.119.3/24
hsrp version 2
hsrp 119
preempt
priority 90
ip 192.168.119.2
track 119
track 120
track 121
track 122
interface Vlan120
no shutdown
ip access-group test in <-----------enable ACL
ip address 192.168.120.3/24
hsrp version 2
hsrp 120
preempt
priority 90
ip 192.168.120.2
track 119
track 120
track 121
track 122 WILNXLAB-02:
WILNXLAB-02:
interface Vlan1
no shutdown
ip address 192.168.119.4/24
hsrp version 2
hsrp 119
preempt
priority 80
ip 192.168.119.2
track 119
track 120
track 121
track 122
interface Vlan120
no shutdown
ip access-group test in <-----------enable ACL
ip address 192.168.120.4/24
hsrp version 2
hsrp 120
preempt
priority 80
ip 192.168.120.2
track 119
track 120
track 121
track 122
---------------------Access List on each switch
IP access list test
10 deny ip 192.168.120.0 0.0.0.255 any
20 deny icmp 192.168.120.0 0.0.0.255