Skip to content

Commit

Permalink
comment out wildcard destination example. sync with SNAP.
Browse files Browse the repository at this point in the history
  • Loading branch information
itojun committed Oct 7, 1999
1 parent 61843c0 commit caf9306
Showing 1 changed file with 30 additions and 29 deletions.
59 changes: 30 additions & 29 deletions kame/kame/gifconfig/gifconfig.8
Expand Up @@ -25,7 +25,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.\" $Id: gifconfig.8,v 1.1.1.1 1999/08/08 23:29:32 itojun Exp $
.\" $Id: gifconfig.8,v 1.1.1.1.2.1 1999/10/07 04:26:55 itojun Exp $
.\"
.Dd May 17, 1998
.Dt GIFCONFIG 8
Expand Down Expand Up @@ -82,7 +82,8 @@ e.g. IPv4-over-IPv4
.Pc .
.\"
.Sh EXAMPLES
If you would like to configure IPv6 over IPv4(aka IPv6 in IPv4)
If you would like to configure IPv6 over IPv4
.Pq aka IPv6 in IPv4
tunnel between
.Li 10.1.1.1
and
Expand All @@ -92,33 +93,33 @@ you should perform the following command:
# gifconfig gif0 inet 10.1.1.1 10.2.3.4
.Ed
.Pp
To use the
.Li 0.0.0.0
feature to establish a tunnel from host1 to host3
which will encapsulate and carry packets from host2, on host1 do:
.Bd -literal -offset
# ifconfig gif0 inet host1 127.0.0.2 # assign an address to gif0
# gifconfig gif0 inet host1 0.0.0.0 # assign encapsulation addresses
# route add host2 host3 -ifp gif0: # encap host2 packets, send to host3
.Ed
.Pp
Note: the
.Fl ifp
option to route does not work as documented in
most versions of FreeBSD.
.Pp
On host3 do:
.Bd -literal -offset
# ifconfig gif0 inet host3 127.0.0.2 # assign an address to gif0
# gifconfig gif0 inet host3 0.0.0.0 # assign encapsulation addresses
.Ed
.Pp
Now if you ping host2 from host1, the packets should be encapsulated
with outer source address = host1 and outer destination address = host3,
and delivered to host3.
host3 will decapsulate the packet and deliver it normally to host2.
.Pp
This is also possible with IPv6 outer proto, by replacing
.\" To use the
.\" .Li 0.0.0.0
.\" feature to establish a tunnel from host1 to host3
.\" which will encapsulate and carry packets from host2, on host1 do:
.\" .Bd -literal -offset
.\" # ifconfig gif0 inet host1 127.0.0.2 # assign an address to gif0
.\" # gifconfig gif0 inet host1 0.0.0.0 # assign encapsulation addresses
.\" # route add host2 host3 -ifp gif0: # encap host2 packets, send to host3
.\" .Ed
.\" .Pp
.\" Note: the
.\" .Fl ifp
.\" option to route does not work as documented in
.\" most versions of FreeBSD.
.\" .Pp
.\" On host3 do:
.\" .Bd -literal -offset
.\" # ifconfig gif0 inet host3 127.0.0.2 # assign an address to gif0
.\" # gifconfig gif0 inet host3 0.0.0.0 # assign encapsulation addresses
.\" .Ed
.\" .Pp
.\" Now if you ping host2 from host1, the packets should be encapsulated
.\" with outer source address = host1 and outer destination address = host3,
.\" and delivered to host3.
.\" host3 will decapsulate the packet and deliver it normally to host2.
.\" .Pp
This is also possible to use IPv6 as outer proto, by replacing
.Li inet
to
.Li inet6 ,
Expand Down

0 comments on commit caf9306

Please sign in to comment.