naccyde / rpms / iproute

Forked from rpms/iproute 7 months ago
Clone

Blame SOURCES/0129-man-ip-link-document-GRE-tunnels.patch

99be8f
From 266b19dec4b79c4f63118dd6151c1b0a80f521f7 Mon Sep 17 00:00:00 2001
99be8f
From: Andrea Claudi <aclaudi@redhat.com>
99be8f
Date: Wed, 5 Jun 2019 13:08:00 +0200
99be8f
Subject: [PATCH] man: ip link: document GRE tunnels
99be8f
99be8f
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1714660
99be8f
Upstream Status: iproute2.git commit d21c028cf7414
99be8f
Conflicts: context change due to missing commit 1eccc5734148c
99be8f
           ("ip: add vxcan/veth to ip-link man page")
99be8f
99be8f
commit d21c028cf74147360c530a4c53063bbe677dbe73
99be8f
Author: Sabrina Dubroca <sd@queasysnail.net>
99be8f
Date:   Fri Apr 20 10:31:59 2018 +0200
99be8f
99be8f
    man: ip link: document GRE tunnels
99be8f
99be8f
    GRE tunnels are currently only documented together with IPIP and SIT
99be8f
    tunnels, but they actually have very different configuration
99be8f
    options. Let's separate them.
99be8f
99be8f
    Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
99be8f
    Signed-off-by: David Ahern <dsahern@gmail.com>
99be8f
---
99be8f
 man/man8/ip-link.8.in | 152 ++++++++++++++++++++++++++++++++++++++++--
99be8f
 1 file changed, 148 insertions(+), 4 deletions(-)
99be8f
99be8f
diff --git a/man/man8/ip-link.8.in b/man/man8/ip-link.8.in
99be8f
index 48417dbce80aa..cfea1bdfdc030 100644
99be8f
--- a/man/man8/ip-link.8.in
99be8f
+++ b/man/man8/ip-link.8.in
99be8f
@@ -643,15 +643,88 @@ keyword.
99be8f
 .in -8
99be8f
 
99be8f
 .TP
99be8f
-GRE, IPIP, SIT Type Support
99be8f
-For a link of types
99be8f
-.I GRE/IPIP/SIT
99be8f
+IPIP, SIT Type Support
99be8f
+For a link of type
99be8f
+.IR IPIP or SIT
99be8f
+the following additional arguments are supported:
99be8f
+
99be8f
+.BI "ip link add " DEVICE
99be8f
+.BR type " { " ipip " | " sit " }"
99be8f
+.BI " remote " ADDR " local " ADDR
99be8f
+[
99be8f
+.BR encap " { " fou " | " gue " | " none " }"
99be8f
+] [
99be8f
+.BR encap-sport " { " \fIPORT " | " auto " }"
99be8f
+] [
99be8f
+.BI "encap-dport " PORT
99be8f
+] [
99be8f
+.RB [ no ] encap-csum
99be8f
+] [
99be8f
+.RB [ no ] encap-remcsum
99be8f
+]
99be8f
+
99be8f
+.in +8
99be8f
+.sp
99be8f
+.BI  remote " ADDR "
99be8f
+- specifies the remote address of the tunnel.
99be8f
+
99be8f
+.sp
99be8f
+.BI  local " ADDR "
99be8f
+- specifies the fixed local address for tunneled packets.
99be8f
+It must be an address on another interface on this host.
99be8f
+
99be8f
+.sp
99be8f
+.BR encap " { " fou " | " gue " | " none " }"
99be8f
+- specifies type of secondary UDP encapsulation. "fou" indicates
99be8f
+Foo-Over-UDP, "gue" indicates Generic UDP Encapsulation.
99be8f
+
99be8f
+.sp
99be8f
+.BR encap-sport " { " \fIPORT " | " auto " }"
99be8f
+- specifies the source port in UDP encapsulation.
99be8f
+.IR PORT
99be8f
+indicates the port by number, "auto"
99be8f
+indicates that the port number should be chosen automatically
99be8f
+(the kernel picks a flow based on the flow hash of the
99be8f
+encapsulated packet).
99be8f
+
99be8f
+.sp
99be8f
+.RB [ no ] encap-csum
99be8f
+- specifies if UDP checksums are enabled in the secondary
99be8f
+encapsulation.
99be8f
+
99be8f
+.sp
99be8f
+.RB [ no ] encap-remcsum
99be8f
+- specifies if Remote Checksum Offload is enabled. This is only
99be8f
+applicable for Generic UDP Encapsulation.
99be8f
+
99be8f
+.in -8
99be8f
+.TP
99be8f
+GRE Type Support
99be8f
+For a link of type
99be8f
+.IR GRE " or " GRETAP
99be8f
 the following additional arguments are supported:
99be8f
 
99be8f
 .BI "ip link add " DEVICE
99be8f
-.BR type " { " gre " | " ipip " | " sit " }"
99be8f
+.BR type " { " gre " | " gretap " }"
99be8f
 .BI " remote " ADDR " local " ADDR
99be8f
 [
99be8f
+.RB [ i | o ] seq
99be8f
+] [
99be8f
+.RB [ i | o ] key
99be8f
+.I KEY
99be8f
+] [
99be8f
+.RB [ i | o ] csum
99be8f
+] [
99be8f
+.BI ttl " TTL "
99be8f
+] [
99be8f
+.BI tos " TOS "
99be8f
+] [
99be8f
+.RB [ no ] pmtudisc
99be8f
+] [
99be8f
+.RB [ no ] ignore-df
99be8f
+] [
99be8f
+.BI dev " PHYS_DEV "
99be8f
+] [
99be8f
 .BR encap " { " fou " | " gue " | " none " }"
99be8f
 ] [
99be8f
 .BR encap-sport " { " \fIPORT " | " auto " }"
99be8f
@@ -661,6 +734,8 @@ the following additional arguments are supported:
99be8f
 .RB [ no ] encap-csum
99be8f
 ] [
99be8f
 .RB [ no ] encap-remcsum
99be8f
+] [
99be8f
+.BR external
99be8f
 ]
99be8f
 
99be8f
 .in +8
99be8f
@@ -673,6 +748,70 @@ the following additional arguments are supported:
99be8f
 - specifies the fixed local address for tunneled packets.
99be8f
 It must be an address on another interface on this host.
99be8f
 
99be8f
+.sp
99be8f
+.RB [ i | o ] seq
99be8f
+- serialize packets.
99be8f
+The
99be8f
+.B oseq
99be8f
+flag enables sequencing of outgoing packets.
99be8f
+The
99be8f
+.B iseq
99be8f
+flag requires that all input packets are serialized.
99be8f
+
99be8f
+.sp
99be8f
+.RB [ i | o ] key
99be8f
+.I KEY
99be8f
+- use keyed GRE with key
99be8f
+.IR KEY ". "KEY
99be8f
+is either a number or an IPv4 address-like dotted quad.
99be8f
+The
99be8f
+.B key
99be8f
+parameter specifies the same key to use in both directions.
99be8f
+The
99be8f
+.BR ikey " and " okey
99be8f
+parameters specify different keys for input and output.
99be8f
+
99be8f
+.sp
99be8f
+.RB  [ i | o ] csum
99be8f
+- generate/require checksums for tunneled packets.
99be8f
+The
99be8f
+.B ocsum
99be8f
+flag calculates checksums for outgoing packets.
99be8f
+The
99be8f
+.B icsum
99be8f
+flag requires that all input packets have the correct
99be8f
+checksum. The
99be8f
+.B csum
99be8f
+flag is equivalent to the combination
99be8f
+.B "icsum ocsum" .
99be8f
+
99be8f
+.sp
99be8f
+.BI ttl " TTL"
99be8f
+- specifies the TTL value to use in outgoing packets.
99be8f
+
99be8f
+.sp
99be8f
+.BI tos " TOS"
99be8f
+- specifies the TOS value to use in outgoing packets.
99be8f
+
99be8f
+.sp
99be8f
+.RB [ no ] pmtudisc
99be8f
+- enables/disables Path MTU Discovery on this tunnel.
99be8f
+It is enabled by default. Note that a fixed ttl is incompatible
99be8f
+with this option: tunneling with a fixed ttl always makes pmtu
99be8f
+discovery.
99be8f
+
99be8f
+.sp
99be8f
+.RB [ no ] ignore-df
99be8f
+- enables/disables IPv4 DF suppression on this tunnel.
99be8f
+Normally datagrams that exceed the MTU will be fragmented; the presence
99be8f
+of the DF flag inhibits this, resulting instead in an ICMP Unreachable
99be8f
+(Fragmentation Required) message.  Enabling this attribute casues the
99be8f
+DF flag to be ignored.
99be8f
+
99be8f
+.sp
99be8f
+.BI dev " PHYS_DEV"
99be8f
+- specifies the physical device to use for tunnel endpoint communication.
99be8f
+
99be8f
 .sp
99be8f
 .BR encap " { " fou " | " gue " | " none " }"
99be8f
 - specifies type of secondary UDP encapsulation. "fou" indicates
99be8f
@@ -697,6 +836,11 @@ encapsulation.
99be8f
 - specifies if Remote Checksum Offload is enabled. This is only
99be8f
 applicable for Generic UDP Encapsulation.
99be8f
 
99be8f
+.sp
99be8f
+.BR external
99be8f
+- make this tunnel externally controlled
99be8f
+.RB "(e.g. " "ip route encap" ).
99be8f
+
99be8f
 .in -8
99be8f
 
99be8f
 .TP
99be8f
-- 
99be8f
2.20.1
99be8f