gif4
Generic tunnel interface
Usage
pseudo-device gif
Overview
The gif interface is a generic tunnelling pseudo-device. It can tunnel IPv4, IPv6, and MPLS over IPv4 and IPv6, with behavior mainly based on RFC 4213 IPv6-over-IPv4.
A gif interface can be created at runtime using the ifconfig gifN create command or by setting up a hostname.if(5) configuration file for netstart(8).
The gif interface must be configured with the addresses used for the outer header. This can be done by using ifconfig(8)'s tunnel command (which uses the SIOCSLIFPHYADDR ioctl).
The addresses of the inner header must be configured by using ifconfig(8) in the normal way. The routing table can be used to direct packets toward the gif interface.
Releases
55 releases since OpenBSD 2.7; the text changed 15 times.