Blame man/man8/ip-tunnel.8

Packit Service 3880ab
.TH IP\-TUNNEL 8 "20 Dec 2011" "iproute2" "Linux"
Packit Service 3880ab
.SH "NAME"
Packit Service 3880ab
ip-tunnel - tunnel configuration
Packit Service 3880ab
.SH "SYNOPSIS"
Packit Service 3880ab
.sp
Packit Service 3880ab
.ad l
Packit Service 3880ab
.in +8
Packit Service 3880ab
.ti -8
Packit Service 3880ab
.B ip tunnel help
Packit Service 3880ab
.sp
Packit Service 3880ab
.ti -8
Packit Service 3880ab
.BR "ip "
Packit Service 3880ab
.RI "[ " OPTIONS " ]"
Packit Service 3880ab
.BR "tunnel" " { " add " | " change " | " del " | " show " | " prl " | " 6rd " }"
Packit Service 3880ab
.RI "[ " NAME " ]"
Packit Service 3880ab
.br
Packit Service 3880ab
.RB "[ " mode
Packit Service 3880ab
.IR MODE " ] [ "
Packit Service 3880ab
.B remote
Packit Service 3880ab
.IR ADDR " ] [ "
Packit Service 3880ab
.B  local
Packit Service 3880ab
.IR ADDR " ]"
Packit Service 3880ab
.br
Packit Service 3880ab
.RB "[ [" i "|" o "]" seq " ] [ [" i "|" o "]" key
Packit Service 3880ab
.IR KEY " ] [ "
Packit Service 3880ab
.RB "[" i "|" o "]" csum " ] ]"
Packit Service 3880ab
.br
Packit Service 3880ab
.RB "[ " encaplimit
Packit Service 3880ab
.IR ELIM " ]"
Packit Service 3880ab
.RB "[ " ttl "|" hoplimit
Packit Service 3880ab
.IR TTL " ]"
Packit Service 3880ab
.br
Packit Service 3880ab
.RB "[ " tos
Packit Service 3880ab
.IR TOS " ] [ "
Packit Service 3880ab
.B flowlabel
Packit Service 3880ab
.IR FLOWLABEL " ]"
Packit Service 3880ab
.br
Packit Service 3880ab
.RB "[ " prl-default
Packit Service 3880ab
.IR ADDR " ] [ "
Packit Service 3880ab
.B prl-nodefault
Packit Service 3880ab
.IR ADDR " ] [ "
Packit Service 3880ab
.B prl-delete
Packit Service 3880ab
.IR ADDR " ]"
Packit Service 3880ab
.br
Packit Service 3880ab
.RB "[ " 6rd-prefix
Packit Service 3880ab
.IR ADDR " ] ["
Packit Service 3880ab
.B 6rd-relay_prefix
Packit Service 3880ab
.IR ADDR " ] [
Packit Service 3880ab
.BR 6rd-reset " ]"
Packit Service 3880ab
.br
Packit Service 3880ab
.RB "[ [" no "]" pmtudisc " ]"
Packit Service 3880ab
.RB "[ [" no "]" ignore-df " ]"
Packit Service 3880ab
.RB "[ [" no "]" allow-localremote " ]"
Packit Service 3880ab
.br
Packit Service 3880ab
.RB "[ " dev
Packit Service 3880ab
.IR PHYS_DEV " ]"
Packit Service 3880ab
Packit Service 3880ab
.ti -8
Packit Service 3880ab
.IR MODE " := "
Packit Service 3880ab
.RB " { " ipip " | " gre " | " sit " | " isatap " | " vti " | " ip6ip6 " | " ipip6 " | " ip6gre " | " vti6 " | " any " }"
Packit Service 3880ab
Packit Service 3880ab
.ti -8
Packit Service 3880ab
.IR ADDR " := { " IP_ADDRESS " |"
Packit Service 3880ab
.BR any " }"
Packit Service 3880ab
Packit Service 3880ab
.ti -8
Packit Service 3880ab
.IR TOS " := { " STRING " | " 00 ".." ff " |"
Packit Service 3880ab
.BR inherit " |"
Packit Service 3880ab
.BI "inherit/" STRING
Packit Service 3880ab
.RB "|"
Packit Service 3880ab
.BI "inherit/" 00 ".." ff
Packit Service 3880ab
.RB "}"
Packit Service 3880ab
Packit Service 3880ab
.ti -8
Packit Service 3880ab
.IR ELIM " := {"
Packit Service 3880ab
.BR none " | "
Packit Service 3880ab
.IR 0 ".." 255 " }"
Packit Service 3880ab
Packit Service 3880ab
.ti -8
Packit Service 3880ab
.ti -8
Packit Service 3880ab
.IR TTL " := { " 1 ".." 255 " | "
Packit Service 3880ab
.BR inherit " }"
Packit Service 3880ab
Packit Service 3880ab
.ti -8
Packit Service 3880ab
.IR KEY " := { " DOTTED_QUAD " | " NUMBER " }"
Packit Service 3880ab
Packit Service 3880ab
.SH DESCRIPTION
Packit Service 3880ab
.B tunnel
Packit Service 3880ab
objects are tunnels, encapsulating packets in IP packets and then
Packit Service 3880ab
sending them over the IP infrastructure.
Packit Service 3880ab
The encapsulating (or outer) address family is specified by the
Packit Service 3880ab
.B -f
Packit Service 3880ab
option. The default is IPv4.
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
.B ip tunnel add
Packit Service 3880ab
add a new tunnel
Packit Service 3880ab
.TP
Packit Service 3880ab
.B ip tunnel change
Packit Service 3880ab
change an existing tunnel
Packit Service 3880ab
.TP
Packit Service 3880ab
.B ip tunnel delete
Packit Service 3880ab
destroy a tunnel
Packit Service 3880ab
.RS
Packit Service 3880ab
.TP
Packit Service 3880ab
.BI name " NAME " (default)
Packit Service 3880ab
select the tunnel device name.
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
.BI mode " MODE"
Packit Service 3880ab
set the tunnel mode. Available modes depend on the encapsulating address family.
Packit Service 3880ab
.br
Packit Service 3880ab
Modes for IPv4 encapsulation available:
Packit Service 3880ab
.BR ipip ", " sit ", " isatap ", " vti ", and " gre "."
Packit Service 3880ab
.br
Packit Service 3880ab
Modes for IPv6 encapsulation available:
Packit Service 3880ab
.BR ip6ip6 ", " ipip6 ", " ip6gre ", " vti6 ", and " any "."
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
.BI remote " ADDRESS"
Packit Service 3880ab
set the remote endpoint of the tunnel.
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
.BI local " ADDRESS"
Packit Service 3880ab
set the fixed local address for tunneled packets.
Packit Service 3880ab
It must be an address on another interface of this host.
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
.BI ttl " N"
Packit Service 3880ab
.TP
Packit Service 3880ab
.BI hoplimit " N"
Packit Service 3880ab
set a fixed TTL (IPv4) or hoplimit (IPv6)
Packit Service 3880ab
.I N
Packit Service 3880ab
on tunneled packets.
Packit Service 3880ab
.I N
Packit Service 3880ab
is a number in the range 1--255. 0 is a special value
Packit Service 3880ab
meaning that packets inherit the TTL value.
Packit Service 3880ab
The default value for IPv4 tunnels is:
Packit Service 3880ab
.BR "inherit" .
Packit Service 3880ab
The default value for IPv6 tunnels is:
Packit Service 3880ab
.BR "64" .
Packit Service 3880ab
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
.BI tos " T"
Packit Service 3880ab
.TP
Packit Service 3880ab
.BI dsfield " T"
Packit Service 3880ab
.TP
Packit Service 3880ab
.BI tclass " T"
Packit Service 3880ab
set the type of service (IPv4) or traffic class (IPv6) field on
Packit Service 3880ab
tunneled packets, which can be specified as either a two-digit
Packit Service 3880ab
hex value (e.g. c0) or a predefined string (e.g. internet).
Packit Service 3880ab
The value
Packit Service 3880ab
.B inherit
Packit Service 3880ab
causes the field to be copied from the original IP header. The
Packit Service 3880ab
values
Packit Service 3880ab
.BI "inherit/" STRING
Packit Service 3880ab
or
Packit Service 3880ab
.BI "inherit/" 00 ".." ff
Packit Service 3880ab
will set the field to
Packit Service 3880ab
.I STRING
Packit Service 3880ab
or
Packit Service 3880ab
.IR 00 ".." ff
Packit Service 3880ab
when tunneling non-IP packets. The default value is 00.
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
.BI dev " NAME"
Packit Service 3880ab
bind the tunnel to the device
Packit Service 3880ab
.I NAME
Packit Service 3880ab
so that tunneled packets will only be routed via this device and will
Packit Service 3880ab
not be able to escape to another device when the route to endpoint
Packit Service 3880ab
changes.
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
.B nopmtudisc
Packit Service 3880ab
disable Path MTU Discovery on this tunnel.
Packit Service 3880ab
It is enabled by default. Note that a fixed ttl is incompatible
Packit Service 3880ab
with this option: tunneling with a fixed ttl always makes pmtu
Packit Service 3880ab
discovery.
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
.B ignore-df
Packit Service 3880ab
enable IPv4 DF suppression on this tunnel.
Packit Service 3880ab
Normally datagrams that exceed the MTU will be fragmented; the presence
Packit Service 3880ab
of the DF flag inhibits this, resulting instead in an ICMP Unreachable
Packit Service 3880ab
(Fragmentation Required) message.  Enabling this attribute causes the
Packit Service 3880ab
DF flag to be ignored.
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
.BI key " K"
Packit Service 3880ab
.TP
Packit Service 3880ab
.BI ikey " K"
Packit Service 3880ab
.TP
Packit Service 3880ab
.BI okey " K"
Packit Service 3880ab
.RB ( " only GRE tunnels " )
Packit Service 3880ab
use keyed GRE with key
Packit Service 3880ab
.IR K ". " K
Packit Service 3880ab
is either a number or an IP address-like dotted quad.
Packit Service 3880ab
The
Packit Service 3880ab
.B key
Packit Service 3880ab
parameter sets the key to use in both directions.
Packit Service 3880ab
The
Packit Service 3880ab
.BR ikey " and " okey
Packit Service 3880ab
parameters set different keys for input and output.
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
.BR csum ", " icsum ", " ocsum
Packit Service 3880ab
.RB ( " only GRE tunnels " )
Packit Service 3880ab
generate/require checksums for tunneled packets.
Packit Service 3880ab
The
Packit Service 3880ab
.B ocsum
Packit Service 3880ab
flag calculates checksums for outgoing packets.
Packit Service 3880ab
The
Packit Service 3880ab
.B icsum
Packit Service 3880ab
flag requires that all input packets have the correct
Packit Service 3880ab
checksum. The
Packit Service 3880ab
.B csum
Packit Service 3880ab
flag is equivalent to the combination
Packit Service 3880ab
.BR "icsum ocsum" .
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
.BR seq ", " iseq ", " oseq
Packit Service 3880ab
.RB ( " only GRE tunnels " )
Packit Service 3880ab
serialize packets.
Packit Service 3880ab
The
Packit Service 3880ab
.B oseq
Packit Service 3880ab
flag enables sequencing of outgoing packets.
Packit Service 3880ab
The
Packit Service 3880ab
.B iseq
Packit Service 3880ab
flag requires that all input packets are serialized.
Packit Service 3880ab
The
Packit Service 3880ab
.B  seq
Packit Service 3880ab
flag is equivalent to the combination
Packit Service 3880ab
.BR "iseq oseq" .
Packit Service 3880ab
.B It doesn't work. Don't use it.
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
.BI encaplim " ELIM"
Packit Service 3880ab
.RB ( " only IPv6 tunnels " )
Packit Service 3880ab
set a fixed encapsulation limit. Default is 4.
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
.BI flowlabel " FLOWLABEL"
Packit Service 3880ab
.RB ( " only IPv6 tunnels " )
Packit Service 3880ab
set a fixed flowlabel.
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
.BI allow-localremote
Packit Service 3880ab
.RB ( " only IPv6 tunnels " )
Packit Service 3880ab
allow remote endpoint on the local host.
Packit Service 3880ab
.RE
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
.B ip tunnel prl
Packit Service 3880ab
potential router list (ISATAP only)
Packit Service 3880ab
.RS
Packit Service 3880ab
.TP
Packit Service 3880ab
.BI dev " NAME"
Packit Service 3880ab
mandatory device name.
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
.BI prl-default " ADDR"
Packit Service 3880ab
.TP
Packit Service 3880ab
.BI prl-nodefault " ADDR"
Packit Service 3880ab
.TP
Packit Service 3880ab
.BI prl-delete " ADDR"
Packit Service 3880ab
.RB "Add or delete " ADDR
Packit Service 3880ab
as a potential router or default router.
Packit Service 3880ab
.RE
Packit Service 3880ab
Packit Service 3880ab
.TP
Packit Service 3880ab
.B ip tunnel show
Packit Service 3880ab
list tunnels
Packit Service 3880ab
This command has no arguments.
Packit Service 3880ab
Packit Service 3880ab
.SH SEE ALSO
Packit Service 3880ab
.br
Packit Service 3880ab
.BR ip (8)
Packit Service 3880ab
Packit Service 3880ab
.SH AUTHOR
Packit Service 3880ab
Original Manpage by Michail Litvak <mci@owl.openwall.com>