Hi everybody,

I am testing vpp-19.01 in CentOS7 vm by passing packets from host system 
through vm interfaces.

If I just set up IP addresses and flowprobe on two interfaces then I receive on 
host system IPFIX packets with correct SrcAddr/DstAddr in flow records that 
also shown in "show flowprobe table"

vpp# set interface state GigabitEthernet0/4/0 up
vpp# set interface state GigabitEthernet0/5/0 up
vpp# set interface ip address GigabitEthernet0/4/0 10.1.1.254/24
vpp# set interface ip address GigabitEthernet0/5/0 10.2.2.254/24
vpp# set ipfix exporter collector 10.2.2.2 src 10.2.2.254 template-interval 20 
path-mtu 1450
vpp# flowprobe params record l2 l3 l4 active 20 passive 120
vpp# flowprobe feature add-del GigabitEthernet0/4/0 ip4
vpp# flowprobe feature add-del GigabitEthernet0/5/0 ip4

vpp# show flowprobe table
Dumping IPFIX table
 1/2 00:16:3e:e3:38:02 76:fd:36:e8:6d:80 10.1.1.1 -> 10.2.2.2 1 0 0
 2/1 00:16:3e:e3:38:01 00:16:3e:00:00:01 10.2.2.2 -> 10.1.1.1 1 0 0

# tshark -V -i veth1 port 4739
Cisco NetFlow/IPFIX
    Version: 10
    Length: 158
    Timestamp: Mar  2, 2019 16:54:14.000000000 EET
        ExportTime: 1551538454
    FlowSequence: 56
    Observation Domain Id: 1
    Set 1 [id=256] (2 flows)
        FlowSet Id: (Data) (256)
        FlowSet Length: 142
        [Template Frame: 1]
        Flow 1
            InputInt: 1
            OutputInt: 2
            Packets: 20
            [Duration: 882.037175531 seconds (nanoseconds)]
                StartTime: Mar  2, 2019 16:39:27.038004400 EET
                EndTime: Mar  2, 2019 16:54:09.075179931 EET
            Source Mac Address: Xensourc_e3:38:02 (00:16:3e:e3:38:02)
            Destination Mac Address: 76:fd:36:e8:6d:80 (76:fd:36:e8:6d:80)
            Ethernet Type: 8
            SrcAddr: 10.1.1.1
            DstAddr: 10.2.2.2
            Protocol: ICMP (1)
            Octets: 1680
            SrcPort: 0
            DstPort: 0

If I do the same with vlan sub interfaces then no problems with packets 
passing, flow records and "show flowprobe table" contain right mac addresses 
but SrcAddr/DstAddr always 0.0.0.0 and wrong Ethernet Type

vpp# create sub-interfaces GigabitEthernet0/4/0 10 dot1q 10 exact-match
vpp# create sub-interfaces GigabitEthernet0/5/0 20 dot1q 20 exact-match
vpp# set interface state GigabitEthernet0/4/0 up
vpp# set interface state GigabitEthernet0/5/0 up
vpp# set interface state GigabitEthernet0/4/0.10 up
vpp# set interface state GigabitEthernet0/5/0.20 up
vpp# set interface ip address GigabitEthernet0/4/0.10 10.1.1.254/24
vpp# set interface ip address GigabitEthernet0/5/0.20 10.2.2.254/24
vpp# set ipfix exporter collector 10.2.2.2 src 10.2.2.254 template-interval 20 
path-mtu 1450
vpp# flowprobe params record l2 l3 l4 active 20 passive 120
vpp# flowprobe feature add-del GigabitEthernet0/4/0.10 ip4
vpp# flowprobe feature add-del GigabitEthernet0/5/0.20 ip4

vpp# show flowprobe table
Dumping IPFIX table
 3/4 00:16:3e:e3:38:02 76:fd:36:e8:6d:80 0.0.0.0 -> 0.0.0.0 0 0 0
 4/3 00:16:3e:e3:38:01 00:16:3e:00:00:01 0.0.0.0 -> 0.0.0.0 0 0 0

# tshark -V -i veth1 port 4739
Cisco NetFlow/IPFIX
    Version: 10
    Length: 158
    Timestamp: Mar  2, 2019 16:59:04.000000000 EET
        ExportTime: 1551538744
    FlowSequence: 9
    Observation Domain Id: 1
    Set 1 [id=256] (2 flows)
        FlowSet Id: (Data) (256)
        FlowSet Length: 142
        [Template Frame: 1]
        Flow 1
            InputInt: 3
            OutputInt: 4
            Packets: 20
            [Duration: 200.105883623 seconds (nanoseconds)]
                StartTime: Mar  2, 2019 16:55:40.025329813 EET
                EndTime: Mar  2, 2019 16:59:00.131213436 EET
            Source Mac Address: Xensourc_e3:38:02 (00:16:3e:e3:38:02)
            Destination Mac Address: 76:fd:36:e8:6d:80 (76:fd:36:e8:6d:80)
            Ethernet Type: 129
            SrcAddr: 0.0.0.0
            DstAddr: 0.0.0.0
            Protocol: IPv6 Hop-by-Hop Option (0)
            Octets: 0
            SrcPort: 0
            DstPort: 0

Is it possible to set up flowprbe for sending correct SrcAddr/DstAddrwith vlan 
sub interfaces?
Also if I add ip6 then "show flowprobe table" empty.

Thanks.
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#12407): https://lists.fd.io/g/vpp-dev/message/12407
Mute This Topic: https://lists.fd.io/mt/30186409/21656
Group Owner: [email protected]
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to