Artyom,

> Could someone please explain to me why VxLAN L3-mode was inverted here?
> https://gerrit.fd.io/r/c/vpp/+/34721
> 
> The 'isL3' argument in api or 'l3' in CLI means "use this in L3 mode", 
> doesn't it?
> 
> This looks confusing, because we set L3 but the tunnel has MAC-address:
> DBGvpp# create vxlan tunnel src 10.0.3.1 dst 10.0.3.3 vni 55 l3
> vxlan_tunnel0
> DBGvpp# show hardware-interfaces 
>               Name                Idx   Link  Hardware
> local0                             0    down  local0
>   Link speed: unknown
>   local
> vxlan_tunnel0                      1     up   vxlan_tunnel0
>   Link speed: unknown
>   Ethernet address 02:fe:66:da:01:d5

VXLAN emulates an Ethernet LAN on top of an IP infrastructure.
VXLAN will always carry an inner Ethernet header, and therefore the virtual 
VXLAN interface will have a MAC address.

The L3 mode distinguishes between attaching the VXLAN interface to VPP as a 
bridge or VPP as a router.
In L2 mode: pass inner Ethernet frame to bridge code.
In L3 mode: decap inner Ethernet frame and pass IP packet to ipX-lookup.

(And don't get me started on why I think LAN emulation is a stupid thing).

Best regards,
Ole
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#20875): https://lists.fd.io/g/vpp-dev/message/20875
Mute This Topic: https://lists.fd.io/mt/89205942/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