gre.4 (235450) | gre.4 (263152) |
---|---|
1.\" $NetBSD: gre.4,v 1.28 2002/06/10 02:49:35 itojun Exp $ 2.\" 3.\" Copyright 1998 (c) The NetBSD Foundation, Inc. 4.\" All rights reserved. 5.\" 6.\" This code is derived from software contributed to The NetBSD Foundation 7.\" by Heiko W.Rupp <hwr@pilhuhn.de> 8.\" --- 13 unchanged lines hidden (view full) --- 22.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 23.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 24.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 25.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 26.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 27.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 28.\" POSSIBILITY OF SUCH DAMAGE. 29.\" | 1.\" $NetBSD: gre.4,v 1.28 2002/06/10 02:49:35 itojun Exp $ 2.\" 3.\" Copyright 1998 (c) The NetBSD Foundation, Inc. 4.\" All rights reserved. 5.\" 6.\" This code is derived from software contributed to The NetBSD Foundation 7.\" by Heiko W.Rupp <hwr@pilhuhn.de> 8.\" --- 13 unchanged lines hidden (view full) --- 22.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 23.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 24.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 25.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 26.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 27.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 28.\" POSSIBILITY OF SUCH DAMAGE. 29.\" |
30.\" $FreeBSD: head/share/man/man4/gre.4 235450 2012-05-14 16:25:17Z joel $ | 30.\" $FreeBSD: head/share/man/man4/gre.4 263152 2014-03-14 06:29:43Z glebius $ |
31.\" 32.Dd June 20, 2008 33.Dt GRE 4 34.Os 35.Sh NAME 36.Nm gre 37.Nd encapsulating network device 38.Sh SYNOPSIS --- 31 unchanged lines hidden (view full) --- 70.Pp 71This driver currently supports the following modes of operation: 72.Bl -tag -width indent 73.It "GRE encapsulation (IP protocol number 47)" 74Encapsulated datagrams are 75prepended an outer datagram and a GRE header. 76The GRE header specifies 77the type of the encapsulated datagram and thus allows for tunneling other | 31.\" 32.Dd June 20, 2008 33.Dt GRE 4 34.Os 35.Sh NAME 36.Nm gre 37.Nd encapsulating network device 38.Sh SYNOPSIS --- 31 unchanged lines hidden (view full) --- 70.Pp 71This driver currently supports the following modes of operation: 72.Bl -tag -width indent 73.It "GRE encapsulation (IP protocol number 47)" 74Encapsulated datagrams are 75prepended an outer datagram and a GRE header. 76The GRE header specifies 77the type of the encapsulated datagram and thus allows for tunneling other |
78protocols than IP like e.g.\& AppleTalk. | 78protocols than IP. |
79GRE mode is also the default tunnel mode on Cisco routers. 80This is also the default mode of operation of the 81.Nm 82interfaces. 83As part of the GRE mode, 84.Nm 85also supports Cisco WCCP protocol, both version 1 and version 2. 86Since there is no reliable way to distinguish between WCCP versions, it --- 77 unchanged lines hidden (view full) --- 164.It Dv GREGKEY 165Get the GRE key currently used for outgoing packets. 1660 means no outgoing key. 167.El 168.Pp 169Note that the IP addresses of the tunnel endpoints may be the same as the 170ones defined with 171.Xr ifconfig 8 | 79GRE mode is also the default tunnel mode on Cisco routers. 80This is also the default mode of operation of the 81.Nm 82interfaces. 83As part of the GRE mode, 84.Nm 85also supports Cisco WCCP protocol, both version 1 and version 2. 86Since there is no reliable way to distinguish between WCCP versions, it --- 77 unchanged lines hidden (view full) --- 164.It Dv GREGKEY 165Get the GRE key currently used for outgoing packets. 1660 means no outgoing key. 167.El 168.Pp 169Note that the IP addresses of the tunnel endpoints may be the same as the 170ones defined with 171.Xr ifconfig 8 |
172for the interface (as if IP is encapsulated), but need not be, as e.g.\& when 173encapsulating AppleTalk. | 172for the interface (as if IP is encapsulated), but need not be. |
174.Sh EXAMPLES 175Configuration example: 176.Bd -literal 177Host X-- Host A ----------------tunnel---------- Cisco D------Host E 178 \\ | 179 \\ / 180 +------Host B----------Host C----------+ 181.Ed --- 107 unchanged lines hidden (view full) --- 289.Cm up 290must be given last on its command line. 291.Pp 292The kernel must be set to forward datagrams by setting the 293.Va net.inet.ip.forwarding 294.Xr sysctl 8 295variable to non-zero. 296.Sh SEE ALSO | 173.Sh EXAMPLES 174Configuration example: 175.Bd -literal 176Host X-- Host A ----------------tunnel---------- Cisco D------Host E 177 \\ | 178 \\ / 179 +------Host B----------Host C----------+ 180.Ed --- 107 unchanged lines hidden (view full) --- 288.Cm up 289must be given last on its command line. 290.Pp 291The kernel must be set to forward datagrams by setting the 292.Va net.inet.ip.forwarding 293.Xr sysctl 8 294variable to non-zero. 295.Sh SEE ALSO |
297.\" Xr atalk 4 , | |
298.Xr gif 4 , 299.Xr inet 4 , 300.Xr ip 4 , 301.Xr netintro 4 , 302.\" Xr options 4 , 303.Xr protocols 5 , 304.Xr ifconfig 8 , 305.Xr sysctl 8 --- 33 unchanged lines hidden --- | 296.Xr gif 4 , 297.Xr inet 4 , 298.Xr ip 4 , 299.Xr netintro 4 , 300.\" Xr options 4 , 301.Xr protocols 5 , 302.Xr ifconfig 8 , 303.Xr sysctl 8 --- 33 unchanged lines hidden --- |