NAME | SYNOPSIS | DESCRIPTION | EXAMPLES | RETURN VALUES | ATTRIBUTES | SEE ALSO
gifconfig interface [af] [physsrc physdest]gifconfig interface delete gifconfig-a
The gifconfig command configures the physical address for the generic IP tunnel interface, such as "gif0". Arguments physsrc and physdest are interpreted as the outer source/destination address for encapsulating IPv4/v6 header. Argument af specifies the address family for physsrc and physdest. Af can be inet or inet6, and will be treated as inet if omitted.
If a special argument deletion is specified, gifconfig just deletes the existing source and destination addresses on the interface. If no outer addresses are specified, this usage has no effect.
The gifconfig command takes the following optional argument:
Display information associated with all generic IP tunnel interfaces.
Please note that it is very easy to create an infinite routing loop, when you configure a tunnel over the same address family (for example, IPv4-over-IPv4).
If you want to configure IPv6 over the IPv4 (aka IPv6 in IPv4) tunnel between 10.1.1.1 and 10.2.3.4, you should perform the following command:
# gifconfig gif0 inet 10.1.1.1 10.2.3.4
It is also possible to use IPv6 as outer proto, by replacing inet with inet6, and replacing IPv4 addresses with some appropriate IPv6 addresses in the above example.
The command exits with an exit status of 1 on errors, 0 on success.
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
---|---|
Interface Stability | Evolving |
NAME | SYNOPSIS | DESCRIPTION | EXAMPLES | RETURN VALUES | ATTRIBUTES | SEE ALSO