04-20-2020 12:57 AM - edited 04-20-2020 02:31 AM
I just have PO nexus switch for network environment and have go in GNS3 and EVE-NG to lab and get the following error.
On switch I configure inter-vlan routing. Configure access-list to filter traffic between LAN. The problem is when I tried to filter traffic in interface is not working(mean ACL doesn't take effect on traffic coming in interface)
Example: the follow access list
ip access-group Block_2_LAN_10
10 deny icmp any any
20 permit ip any any
interface vlan10
ip access-group Block_2_LAN_10 in
This is not work.
but if I Apply the access list to Traffic out is working.
Example:
ip access-group Block_2_LAN_10 out
10 deny icmp any any
20 permit ip any any
interface vlan10
ip access-group Block_2_LAN_10 out
this is working.
What I am wrong here?
thanks for respond
04-20-2020 05:45 AM
04-20-2020 05:58 AM
Hello
@ratha chum wrote:
I want to block all icmp from vlan 10 to other vlan. Then I applied in to
block, but host from VLAN 10 still can ping other VLANs.##- Please type
your reply above this line -##
Then apply the acl in OUT direction to the logical svi interface of vlan 10.
04-20-2020 06:09 AM
04-20-2020 06:16 AM - edited 04-20-2020 06:42 AM
@paul driver wrote:Hello
@ratha chum wrote:
I want to block all icmp from vlan 10 to other vlan. Then I applied in to
block, but host from VLAN 10 still can ping other VLANs.##- Please type
your reply above this line -##Then apply the acl in OUT direction to the logical svi interface of vlan 10.
Well, that actually is incorrect. The logic of ACLs, at least on Nexus switches is the following:
The ingress RACL applied on VLAN 10, will apply on all traffic ingressing on SVI 10, having destination MAC SVI 10.
The egress RACL applied on VLAN 10, will apply on all traffic egressing on SVI 10, having destination MAC of endpoints or next hop.
Same logic as the one on Layer 3 physical interfaces.
Cheers,
Sergiu
04-20-2020 07:39 AM - edited 04-20-2020 10:10 AM
maybe the wording differs but svi acl logic is the same which as i understand it is:
IN = traffic originating from within the vlan -
Out =traffic originating outside vlan
04-20-2020 08:47 AM
Happy to hear that we are on the same page ^_^
But I am still confused why you suggested the OUT options, when the author wants to filter traffic in the direction "from vlan 10 to other vlan".
Regards,
Sergiu
04-20-2020 10:08 AM
Hello
@Sergiu.Daniluk wrote:
Happy to hear that we are on the same page ^_^
But I am still confused why you suggested the OUT options, when the author wants to filter traffic in the direction "from vlan 10 to other vlan".
The reason is that the OP confirmed the acl applied egress is working to deny icmp as it isn't working ingress which I suspect is possibly due to some software issue with the simulation software they are using.
04-20-2020 06:42 AM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide