On ACX5048 and ACX5096, family ethernet-switching filter can be used for troubleshooting purposes to understand incoming and outgoing traffic based on source MAC, destination MAC, outer VLAN tag attributes, inner VLAN tag attributes, source IP, destination IP and other fields of a packet.
Any form of firewall filter with multiple matching condition/terms can easily exhaust ACX PFE memory. We suggest to using firewall filter as specific as possible. Avoid "or" in matching conditions and a large prefix list. Be sure to remove them after troubleshooting is complete.
This article provides an example for configuring an ethernet-switching filter to match incoming and outgoing DHCPv4 packets.
lab@lab#show interfaces ae0 flexible-vlan-tagging; encapsulation flexible-ethernet-services; unit 1000 { encapsulation vlan-bridge; vlan-id 1000; family ethernet-switching { filter { input test; output test; } } }
lab@lab#show vlans S1000 { vlan-id 1000; interface ae0.1000; }
lab@lab# show firewall family ethernet-switching { filter test { interface-specific; ##This is a MUST for egress filter term 1 { from { source-port [ 67 68 ]; ip-protocol udp; } then { accept; count packet; } } term 2 { then accept; } } }
lab@lab>show firewall Filter: test-ae0.1000-o Counters: Name Bytes Packets packet-ae0.1000-o 1966 6 Filter: test-ae0.1000-i Counters: Name Bytes Packets packet-ae0.1000-i 1268 4
lab@lab#set firewall family ethernet-switching filter test term 1 from ?
> destination-mac-address Match MAC destination address + destination-port Match TCP/UDP destination port > destination-prefix-list Match IP destination prefixes in named list + dscp Match Differentiated Services (DiffServ) code point + ether-type Match Ethernet Type + icmp-code Match ICMP message code + icmp-type Match ICMP message type + interface-group Match interface group > ip-destination-address Match IP destination address + ip-precedence Match IP precedence value + ip-protocol Match IP protocol type > ip-source-address Match IP source address + learn-vlan-1p-priority Match Learned 802.1p VLAN priority + learn-vlan-dei Match Learnt VLAN ID DEI bit + learn-vlan-id Match Learnt VLAN ID > source-mac-address Match MAC source address + source-port Match TCP/UDP source port > source-prefix-list Match IP source prefixes in named list + user-vlan-1p-priority Match User 802.1p VLAN priority + user-vlan-id Match User VLAN ID + vlan-ether-type Match VLAN Ethernet type
2019-12-21: Minor, non-technical edit.