diff --git a/docs/tunneling/iptunnel.md b/docs/tunneling/iptunnel.md index ed6e9d0..0662ee1 100644 --- a/docs/tunneling/iptunnel.md +++ b/docs/tunneling/iptunnel.md @@ -25,12 +25,7 @@ ip link del To assign an IP address to the interface, you can use the following command: ``` -ip link del -``` - -To assign an IP address to the interface, you can use the following command: -``` -ip addr add dev +ip addr add dev /64 ``` Replace `` with your own link-local address. @@ -41,7 +36,7 @@ If you want to start the GRE tunnel automatically, you can use an ifupdown templ auto iface inet6 manual pre-up ip link add type gre remote local ttl 255 - up ip addr add dev + up ip addr add dev /64 post-down ip link del ``` @@ -55,7 +50,7 @@ ifdown ## GRETAP -GRETAP tunnels operate on layer 2 of the ISO/OSI model. To use a GRETAP tunnel, you only have to change the mode: For IPv4 `gretap` and for IPv6 `ip6gretap`. +GRETAP tunnels on layer 2 of the ISO/OSI model. To use a GRETAP tunnel, you only have to change the mode: For IPv4 `gretap` and for IPv6 `ip6gretap`. ## Simple Internet Transition (SIT) @@ -70,8 +65,8 @@ For VXLAN the type is changed to `vxlan`. Furthermore there are two additional p ``` ip link add type vxlan id remote local dstport ``` -`` (**V**irtual Extensible LA**N** **ID** ) is the ID of the VLAN. This can range from 1 to 16777216 (2^24). It must be the same for both peers and must not already be used. -`` is the port which is used for the VXLAN connection. It must be open on UDP. The port must be the same for both peers. Officially VXLAN has port 4789, but for historical reasons Linux uses port default 8472. If you specify a 0 as port, the default port default 8472 is used. If you don't specify a port, you get a warning. +`` (**V**irtual Extensible LA**N** **ID**) is the ID of the VLAN. This can range from 1 to 16777216 (2^24). It must be the same for both peers and must not already be used. +`` is the port which is used for the VXLAN connection. It must be open on UDP. The port must be the same for both peers. Officially VXLAN has port 4789, but for historical reasons Linux uses the port 8472. If you specify 0 as port, the default port 8472 is used. If you don't specify a port, you get a warning. ## IP tunnel over UDP