2002-01-15 17:19:27 +03:00
|
|
|
.\" $NetBSD: greconfig.8,v 1.9 2002/01/15 14:19:27 wiz Exp $
|
1998-09-14 00:50:55 +04:00
|
|
|
.\"
|
|
|
|
.\" Copyright 1998 (c) The NetBSD Foundation, Inc.
|
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" This code is derived from software contributed to The NetBSD Foundation
|
|
|
|
.\" by Heiko W.Rupp <hwr@pilhuhn.de>
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\" 3. All advertising materials mentioning features or use of this software
|
|
|
|
.\" must display the following acknowledgement:
|
|
|
|
.\" This product includes software developed by the NetBSD
|
|
|
|
.\" Foundation, Inc. and its contributors.
|
2001-04-11 23:36:59 +04:00
|
|
|
.\" 4. Neither the name of the The NetBSD Foundation nor the names of its
|
|
|
|
.\" contributors may be used to endorse or promote products derived
|
1998-09-14 00:50:55 +04:00
|
|
|
.\" from this software without specific prior written permission.
|
|
|
|
.\"
|
2001-04-11 23:36:59 +04:00
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
|
|
|
|
.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
|
|
|
|
.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
1998-09-14 00:50:55 +04:00
|
|
|
.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
|
2001-04-11 23:36:59 +04:00
|
|
|
.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
|
|
.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
|
|
.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
|
|
.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
|
|
.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
1998-09-14 00:50:55 +04:00
|
|
|
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
|
|
.\" POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
.\"
|
2001-04-11 23:36:59 +04:00
|
|
|
.Dd August 14, 1998
|
1999-11-02 13:30:38 +03:00
|
|
|
.Dt GRECONFIG 8
|
1999-03-22 21:43:46 +03:00
|
|
|
.Os
|
1998-09-14 00:50:55 +04:00
|
|
|
.Sh NAME
|
|
|
|
.Nm greconfig
|
|
|
|
.Nd set characteristics of the
|
|
|
|
.Xr gre 4
|
2002-01-15 17:19:27 +03:00
|
|
|
pseudo device
|
1998-09-14 00:50:55 +04:00
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm
|
|
|
|
.Fl i Ar unit
|
|
|
|
.Op Fl v
|
|
|
|
.Nm ""
|
|
|
|
.Fl i Ar unit
|
|
|
|
.Op Fl d Ar dst
|
|
|
|
.Op Fl s Ar src
|
|
|
|
.Op Fl p Ar proto
|
|
|
|
.Op Fl v
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
.Nm
|
2001-04-11 23:36:59 +04:00
|
|
|
is used to manipulate or display the characteristics of the
|
1998-09-14 00:50:55 +04:00
|
|
|
.Xr gre 4
|
|
|
|
tunnel device. The first form shown above displays the current
|
|
|
|
parameters, while the second one sets parameters to new values.
|
|
|
|
.Pp
|
|
|
|
The options have the following meanings:
|
|
|
|
.Bl -tag -width flag
|
|
|
|
.It Fl i Ar unit
|
|
|
|
Denotes the interface that is to be set/displayed. Unit is in the form
|
2000-05-27 14:42:25 +04:00
|
|
|
.Dq greN
|
|
|
|
where N is an integer from zero to the maximum numbers of
|
1998-09-14 00:50:55 +04:00
|
|
|
units. This option is always required.
|
|
|
|
.It Fl d Ar dst
|
|
|
|
Sets the IP address of the remote tunnel end. This may be the same as the
|
|
|
|
tunnel destination set with
|
2001-04-11 23:36:59 +04:00
|
|
|
.Xr ifconfig 8
|
1998-09-14 00:50:55 +04:00
|
|
|
when IP packets are to be encapsulated.
|
|
|
|
.It Fl s Ar src
|
|
|
|
Sets the IP address of the local tunnel end. This may be the same as
|
|
|
|
the tunnel gateway set with
|
2001-04-11 23:36:59 +04:00
|
|
|
.Xr ifconfig 8
|
1998-09-14 00:50:55 +04:00
|
|
|
when IP packets are to be encapsulated.
|
|
|
|
.It Fl p Ar proto
|
|
|
|
Sets the way how packets are encapsulated. Currently supported values are:
|
|
|
|
.Bl -tag -width aaa
|
|
|
|
.It 47 GRE encapsulation as described in RFC 1701,1702
|
1998-09-30 10:16:07 +04:00
|
|
|
.It 55 MOBILE encapsulation as described in RFC 2004
|
1998-09-14 00:50:55 +04:00
|
|
|
.El
|
|
|
|
.It Fl v
|
2001-04-11 23:36:59 +04:00
|
|
|
Give a little more verbose output when running
|
2000-05-27 14:42:25 +04:00
|
|
|
.Nm Ns .
|
1998-09-14 00:50:55 +04:00
|
|
|
.El
|
|
|
|
.Pp
|
2001-04-11 23:36:59 +04:00
|
|
|
Note that the values for
|
1998-09-14 00:50:55 +04:00
|
|
|
.Ar src ,
|
|
|
|
.Ar dst ,
|
|
|
|
.Ar proto
|
|
|
|
must be coordinated with the remote end of the tunnel.
|
|
|
|
.Pp
|
|
|
|
For tunnels that run IP as encapsulated protocol, the tunnel endpoints
|
|
|
|
can be set with the normal
|
2001-04-11 23:36:59 +04:00
|
|
|
.Xr ifconfig 8 .
|
1998-10-31 16:07:02 +03:00
|
|
|
In this case, the encapsulation protocol can be chosen by giving
|
2000-05-27 14:42:25 +04:00
|
|
|
.Dq link0
|
2001-04-11 23:36:59 +04:00
|
|
|
for IPIP encapsulation and
|
2000-05-27 14:42:25 +04:00
|
|
|
.Dq -link0
|
|
|
|
GRE encapsulation
|
1998-09-14 00:50:55 +04:00
|
|
|
as arguments to
|
2001-04-11 23:36:59 +04:00
|
|
|
.Xr ifconfig 8 .
|
1998-09-14 00:50:55 +04:00
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr gre 4 ,
|
2002-01-15 17:19:27 +03:00
|
|
|
.Xr netintro 4 ,
|
1998-09-14 00:50:55 +04:00
|
|
|
.Xr protocols 5 ,
|
2002-01-15 17:19:27 +03:00
|
|
|
.Xr ifconfig 8
|
1998-09-14 00:50:55 +04:00
|
|
|
.Pp
|
|
|
|
A description of GRE encapsulation can be found in RFC 1701, RFC 1702.
|
|
|
|
.Pp
|
1998-09-30 10:16:07 +04:00
|
|
|
A description of MOBILE encapsulation can be found in RFC 2004.
|
2002-01-15 17:19:27 +03:00
|
|
|
.Sh AUTHORS
|
|
|
|
.An Heiko W.Rupp Aq hwr@pilhuhn.de
|