ip tunnel—IP Tunnelling Configuration

Abbreviations: tunnel, tunl

The tunnel objects encapsulate packets within IPv4 packets and sends them over the IP infrastructure.

As with the other sections this will make more sense if you understand the logic of the command line. The output of ip tunnel help is as follows:

Usage: ip tunnel {  add | change | del | show }  [ NAME ]
          [ mode {  ipip | gre | sit }  ] [ remote ADDR ] [ local ADDR ]
          [ [i|o]seq ] [ [i|o]key KEY ] [ [i|o]csum ]
          [ ttl TTL ] [ tos TOS ] [ [no]pmtudisc ] [ dev PHYS_DEV ]

Where: NAME := STRING
       ADDR := {  IP_ADDRESS | any }
       TOS  := {  NUMBER | inherit }
       TTL  := {  1..255 | inherit }
       KEY  := {  DOTTED_QUAD | NUMBER }

ip tunnel add—Creating Tunnels

Use this command to create IPIP, GRE, or SIT tunnels. ...

Get Policy Routing Using Linux® now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.