Hi Vikram,

I don’t see a v6 tunnel encapped packet in that trace.

/neale


From: Vikram Sachdeva <vsachd...@gmail.com>
Date: Monday, 18 January 2021 at 09:11
To: Neale Ranns <ne...@graphiant.com>
Cc: vpp-dev@lists.fd.io <vpp-dev@lists.fd.io>
Subject: Re: [vpp-dev] GRE Tunnel IP6 over IP6
Hi Neale,
Please find the pcap attached.

I have created two tunnels IPv4 GRE tunnel and & IPv6 based tunnel.
The IPv4 based tunnel is working fine where as IPv6 based tunnels the packets 
are getting dropped.

--
Vikram

On Tue, Jan 5, 2021 at 9:43 PM Neale Ranns 
<ne...@graphiant.com<mailto:ne...@graphiant.com>> wrote:
Hi,

It’s not clear [to me at least] why the packet in your trace was dropped. It 
was an IPv6 packet to/from the tunnel src/dst, but it has IPv6 extension header 
for ‘destination options’. VPP was not able to read past this header for 
reasons I cannot say from that trace alone. I would suggest you capture a pcap 
trace to get more info:


DBGvpp# pcap ?

  pcap trace                               pcap trace [rx] [tx] [drop] [off] 
[max <nn>] [intfc <interface>|any]

           [file <name>] [status] [max-bytes-per-pkt <nnnn>][filter]

           [preallocate-data][free-data]

/neale

From: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io> 
<vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>>
Date: Thursday, 31 December 2020 at 14:46
To: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io> 
<vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>>
Subject: [vpp-dev] GRE Tunnel IP6 over IP6
I am creating IP6 over IP6 GRE Tunnel in VPP & VM instance.

I am able to see the outgoing tunneled ICMP6 from VPP to the VM instance as 
captured over the Wireshark.
The other instance is able to reply that but the reply packets are not reaching 
and pingis failing.

>From the VM side if I ping the VPP gre IP address 5001:1::1, the ping is 
>failing.
Please let me know what I am missing.

Configuration as below

VPP Instance [ Configuration ]

vpp# show version
vpp v20.09-release built by root on 38f81bec6dbd at 2020-10-01T02:57:46


vpp# set interface state GigabitEthernet0/8/0 up
vpp# set interface ip address GigabitEthernet0/8/0 2001:100::1/64
vpp# ip route add 2005:100::1/64 via GigabitEthernet0/8/0

<IP Address 2005:100::1 is pingable >
vpp# ping 2005:100::1
76 bytes from 2005:100::1: icmp_seq=1 ttl=64 time=.2364 ms
76 bytes from 2005:100::1: icmp_seq=2 ttl=64 time=.2273 ms
76 bytes from 2005:100::1: icmp_seq=3 ttl=64 time=.2159 ms
76 bytes from 2005:100::1: icmp_seq=4 ttl=64 time=.2678 ms
76 bytes from 2005:100::1: icmp_seq=5 ttl=64 time=.2027 ms

Statistics: 5 sent, 5 received, 0% packet loss


vpp# create gre tunnel src 2001:100::1 dst 2005:100::1

vpp# set interface ip address gre0 5001:1::1/64

vpp# ip route add 3005:1::/64 via gre0

vpp# set interface state gre0 up

vpp# show int
              Name               Idx    State  MTU (L3/IP4/IP6/MPLS)     
Counter          Count
GigabitEthernet0/8/0              1      up          9000/0/0/0     rx packets  
                  13
                                                                    rx bytes    
                1602
                                                                    tx packets  
                  15
                                                                    tx bytes    
                1750
                                                                    drops       
                   3
                                                                    punt        
                   1
                                                                    ip6         
                  13
gre0                              2      up          9000/0/0/0
local0                            0     down          0/0/0/0


vpp# ping 3005:1::1

Statistics: 5 sent, 0 received, 100% packet loss

vpp# show trace
------------------- Start of thread 0 vpp_main -------------------
Packet 1

00:16:46:761592: dpdk-input
  GigabitEthernet0/8/0 rx queue 0
  buffer 0x9be79: current data 0, length 182, buffer-pool 0, ref-count 1, 
totlen-nifb 0, trace handle 0x0
                  ext-hdr-valid
                  l4-cksum-computed l4-cksum-correct
  PKT MBUF: port 0, nb_segs 1, pkt_len 182
    buf_len 2176, data_len 182, ol_flags 0x0, data_off 128, phys_addr 0x782f9ec0
    packet_type 0x0 l2_len 0 l3_len 0 outer_l2_len 0 outer_l3_len 0
    rss 0x0 fdir.hi 0x0 fdir.lo 0x0
  IP6: 08:00:27:7d:b1:12 -> 08:00:27:34:a5:29
  IP6_DESTINATION_OPTIONS: 2005:100::1 -> 2001:100::1
    tos 0x00, flow label 0x90736, hop limit 64, payload length 128
00:16:46:761602: ethernet-input
  frame: flags 0x3, hw-if-index 1, sw-if-index 1
  IP6: 08:00:27:7d:b1:12 -> 08:00:27:34:a5:29
00:16:46:761605: ip6-input
  IP6_DESTINATION_OPTIONS: 2005:100::1 -> 2001:100::1
    tos 0x00, flow label 0x90736, hop limit 64, payload length 128
00:16:46:761606: ip6-lookup
  fib 0 dpo-idx 8 flow hash: 0x00000000
  IP6_DESTINATION_OPTIONS: 2005:100::1 -> 2001:100::1
    tos 0x00, flow label 0x90736, hop limit 64, payload length 128
00:16:46:761608: ip6-local
    IP6_DESTINATION_OPTIONS: 2005:100::1 -> 2001:100::1
      tos 0x00, flow label 0x90736, hop limit 64, payload length 128
00:16:46:761609: ip6-punt
    IP6_DESTINATION_OPTIONS: 2005:100::1 -> 2001:100::1
      tos 0x00, flow label 0x90736, hop limit 64, payload length 128
00:16:46:761610: error-punt
  rx:GigabitEthernet0/8/0
00:16:46:761611: punt
  ip6-input: valid ip6 packets





Other VM Instance
-----------------

ip link add deth0 type dummy
ifconfig deth0 up
ip -6 add addr 3005:1::1 dev deth0

ip -6 add addr 2005:100::1 dev eth0

ip link add name gre0 type ip6gre local 2005:100::1 remote 2001:100::1 dev eth0

ifconfig gre0 up
ip -6 route add default dev gre0

ip -6 route add 2001:100::1/64 dev eth0
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#18531): https://lists.fd.io/g/vpp-dev/message/18531
Mute This Topic: https://lists.fd.io/mt/79334359/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to