# Examples that match MAC (a big "thank you" to Julian Anastasov for this!): M0 through M5 are the 6 bytes of the MAC address. Egress (match destination MAC): tc filter add dev eth1 parent 1: protocol ip prio 5 u32 match u16 \ 0x0800 0xffff at -2 match u32 0xM2M3M4M5 0xffffffff at -12 match u16 \ 0xM0M1 0xffff at -14 flowid 1:40 Ingress (match source MAC): tc filter add dev eth1 parent 1: protocol ip prio 5 u32 match u16 \ 0x0800 0xffff at -2 match u16 0xM4M5 0xffff at -4 match u32 \ 0xM0M1M2M3 0xffffffff at -8 flowid 1:40