Tunnel metadata manipulation action in tc(8) Linux (NAME) tc-tunnel_key - tc (SYNOPSIS) tc ... action tunnel_key { unset | SET } SET := set src_ip ADDRESS dst_ip ADDRESS id KEY_ID dst_port UDP_PORT tos TOS ttl TTL [ csum | nocsum ] (DESCRIPTION) tunnel_key IP IP UNSET SET . UNSET - . UNSET . SET IP ADDRESS KEY_ID IP . tunnel_key mirred redirect IP ( SET) ( UNSET). (OPTIONS) unset IP. ( ) . set IP. src_ip dst_ip . id dst_port geneve_opts vxlan_opts erspan_opts . id ( VNI VXLAN). src_ip IP (IPv4 IPv6). dst_ip IP (IPv4 IPv6). dst_port UDP . geneve_opts Geneve. geneve_opts CLASS:TYPE:DATA CLASS TYPE DATA . . vxlan_opts Vxlan. vxlan_opts GBP . . erspan_opts Erspan. erspan_opts VERSION:INDEX:DIR:HWID VERSION INDEX DIR HWID . . VERSION INDEX VERSION DIR HWID . tos TOS . ttl TTL . [no]csum (checksum) UDP . csum ( ) UDP . nocsum UDP . UDP IPv6 . udp6zerocsumrx VXLAN . nocsum IPv6 . UDP . RFC6935 . nofrag IP ( IP fragmentation). (EXAMPLES) ICMP eth0 VNI 11 IP 11.11.0.1 IP 11.11.0.2 vxlan0 ( ) vxlan : #tc qdisc add dev eth0 handle ffff: ingress #tc filter add dev eth0 protocol ip parent ffff: \ flower \ ip_proto icmp \ action tunnel_key set \ src_ip 11.11.0.1 \ dst_ip 11.11.0.2 \ id 11 \ action mirred egress redirect dev vxlan0 unset : VXLAN IP VNI 11 vxlan0 tunl1 : #tc qdisc add dev eth0 handle ffff: ingress #tc filter add dev vxlan0 protocol ip parent ffff: flower \ enc_src_ip 11.11.0.2 enc_dst_ip 11.11.0.1 enc_key_id 11 action tunnel_key unset action mirred egress redirect dev tunl1 (SEE ALSO) tc(8) iproute2 10 Nov 2016 Tunnel metadata manipulation action in tc(8)