Skip to content

Can't filter vlan and geneve packet #1279

Open
@gujun4990

Description

@gujun4990

We want to capture the packets including vlan 1264 and geneve. for example:

16:08:46.074231 16:c5:84:65:a4:41 > ba:b3:1d:11:c8:43, ethertype 802.1Q (0x8100), length 160: vlan 1264, p 0, ethertype IPv4, (tos 0x0, ttl 64, id 37785, offset 0, flags [DF], proto UDP (17), length 142)
    46.168.20.3.19312 > 46.168.20.5.6081: [udp sum ok] Geneve, Flags [C], vni 0x13, proto TEB (0x6558), options [class Open Virtual Networking (OVN) (0x102) type 0x80(C) len 8 data 00030002]
	fa:16:3e:4a:1c:dc > 3e:a5:be:e6:2a:4c, ethertype IPv4 (0x0800), length 98: (tos 0x0, ttl 63, id 39488, offset 0, flags [DF], proto ICMP (1), length 84)
    192.168.101.92 > 172.46.0.1: ICMP echo request, id 1531, seq 18463, length 64
16:08:46.074470 ba:b3:1d:11:c8:43 > 16:c5:84:65:a4:41, ethertype 802.1Q (0x8100), length 160: vlan 1264, p 0, ethertype IPv4, (tos 0x0, ttl 64, id 26501, offset 0, flags [DF], proto UDP (17), length 142)
    46.168.20.5.30750 > 46.168.20.3.6081: [udp sum ok] Geneve, Flags [C], vni 0x12, proto TEB (0x6558), options [class Open Virtual Networking (OVN) (0x102) type 0x80(C) len 8 data 00020003]
	fa:16:3e:23:13:44 > fa:16:3e:06:b1:cd, ethertype IPv4 (0x0800), length 98: (tos 0x0, ttl 63, id 28164, offset 0, flags [none], proto ICMP (1), length 84)
    172.46.0.1 > 192.168.101.92: ICMP echo reply, id 1531, seq 18463, length 64

We filter the packets using ovs-tcpdump -i Bond1 -nnevv "(vlan 1264) and geneve", but it is failed. I check the related document. From the document's description, I think the above command isn't supported. So I want to know whether there are some filters expressions to support the situation.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions