Hoi Konrad,

Looking at your configs, gre0 will have been created as an L3 interface. If
you'd like it to be an L2 interface, create it with 'teb' (transparent
ethernet bridge).
The crash I think we ought to be able to avoid in linux-cp, but it's I
think because you're using a TAP (L2) rather than a TUN (L3) interface. If
you'd like to keep the GRE as L3, then you can create the LCP with the
'tun' argument.
  create gre tunnel                        create gre tunnel src <addr> dst
<addr> [instance <n>] [outer-fib-id <fib>] [teb | erspan <session-id>]
[del] [multipoint]
  lcp create                               lcp create
<sw_if_index>|<if-name> host-if <host-if-name> netns <namespace> [tun]
Let me know if that helps for your usecase.

groet,
Pim

On Fri, Nov 25, 2022 at 2:28 PM Konrad Zemek <konrad.ze...@gmail.com> wrote:

> Hey all,
>
> I'm running v22.10-release of vpp from fdio repositories, on Ubuntu 22.10.
> I'm experimenting with linux-cp for a control plane including GRE tunels,
> and I stumbled upon an easy to reproduce crash:
>
> unix {
>   cli-listen /run/vpp/cli-vpp1.sock
>   nodaemon
>   coredump-size unlimited
>   full-coredump
> }
> api-segment { prefix vpp1 }
> plugins {
>   plugin linux_cp_plugin.so { enable }
>   plugin linux_nl_plugin.so { enable }
> }
> dpdk {
>   socket-mem 1024
>   dev 0000:00:10.0
> }
> linux-cp {
>   #default netns dataplane
>   lcp-sync
>   lcp-auto-subint
> }
>
> vpp# set interface ip address TenGigabitEthernet0/10/0 10.1.2.3/24
> vpp# set interface state TenGigabitEthernet0/10/0 up
> vpp# create gre tunnel src 10.1.2.3 dst 10.1.2.2 gre0
> vpp# lcp create gre0 host-if mytun
> vpp# set interface ip address gre0 10.10.10.1/30
> vpp# set interface state gre0 up
>
> Then just `ping 10.10.10.2` from the host system.
>
> Thanks,
> Konrad Zemek
>
> 
>
>

-- 
Pim van Pelt <p...@ipng.nl>
PBVP1-RIPE - http://www.ipng.nl/
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#22242): https://lists.fd.io/g/vpp-dev/message/22242
Mute This Topic: https://lists.fd.io/mt/95253764/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/leave/1480452/21656/631435203/xyzzy 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to