From owner-freebsd-doc@FreeBSD.ORG Mon Sep 11 16:20:26 2006 Return-Path: X-Original-To: freebsd-doc@hub.freebsd.org Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 12E6316A4A0 for ; Mon, 11 Sep 2006 16:20:26 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6247E43D58 for ; Mon, 11 Sep 2006 16:20:21 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k8BGKLxG098545 for ; Mon, 11 Sep 2006 16:20:21 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k8BGKL8Y098544; Mon, 11 Sep 2006 16:20:21 GMT (envelope-from gnats) Resent-Date: Mon, 11 Sep 2006 16:20:21 GMT Resent-Message-Id: <200609111620.k8BGKL8Y098544@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-doc@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, loader Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4847616A47C for ; Mon, 11 Sep 2006 16:11:19 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1441B43D64 for ; Mon, 11 Sep 2006 16:11:11 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k8BGBBGp004184 for ; Mon, 11 Sep 2006 16:11:11 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id k8BGBBBR004183; Mon, 11 Sep 2006 16:11:11 GMT (envelope-from nobody) Message-Id: <200609111611.k8BGBBBR004183@www.freebsd.org> Date: Mon, 11 Sep 2006 16:11:11 GMT From: loader To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: docs/103151: Some minor update for using gif(4) X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Sep 2006 16:20:26 -0000 >Number: 103151 >Category: docs >Synopsis: Some minor update for using gif(4) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Mon Sep 11 16:20:20 GMT 2006 >Closed-Date: >Last-Modified: >Originator: loader >Release: 7.0-CURRENT >Organization: FreeBSD Mall >Environment: FreeBSD gnus.unknown.com 7.0-CURRENT FreeBSD 7.0-CURRENT #5: Thu Sep 7 15:34:40 CST 2006 root@gnus.unknown.com:/usr/obj/usr/src/sys/gnus i386 >Description: Some minor update: o device gif0 need to be created by running "ifconfig gif0 create" first. o the output of "ifconfig gif0" changed. o gif_interfaces should be in /etc/rc.conf to make it take effect on booting. >How-To-Repeat: >Fix: diff -ruN chapter.sgml.orig chapter.sgml --- chapter.sgml.orig Mon Sep 11 23:26:01 2006 +++ chapter.sgml Tue Sep 12 00:09:55 2006 @@ -3410,18 +3410,20 @@ configured using &man.ifconfig.8;. On the gateway machine on network #1 you would run the - following two commands to configure the tunnel. - - ifconfig gif0 A.B.C.D W.X.Y.Z -ifconfig gif0 inet 192.168.1.1 192.168.2.1 netmask 0xffffffff - + following commands to configure the tunnel. + &prompt.root; ifconfig gif0 create +&prompt.root; ifconfig tunnel gif0 A.B.C.D W.X.Y.Z +&prompt.root ifconfig gif0 inet 192.168.1.1 192.168.2.1 netmask 0xffffffff + + On the other gateway machine you run the same commands, but with the order of the IP addresses reversed. - ifconfig gif0 W.X.Y.Z A.B.C.D -ifconfig gif0 inet 192.168.2.1 192.168.1.1 netmask 0xffffffff - + &prompt.root; ifconfig gif0 create +&prompt.root; ifconfig tunnel gif0 W.X.Y.Z A.B.C.D +&prompt.root; ifconfig gif0 inet 192.168.2.1 192.168.1.1 netmask 0xffffffff + You can then run: @@ -3431,9 +3433,9 @@ gateway, you would see this: &prompt.root; ifconfig gif0 -gif0: flags=8011<UP,POINTTOPOINT,MULTICAST> mtu 1280 -inet 192.168.1.1 --> 192.168.2.1 netmask 0xffffffff -physical address inet A.B.C.D --> W.X.Y.Z +gif0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1280 + tunnel inet A.B.C.D --> W.X.Y.Z + inet 192.168.1.1 --> 192.168.2.1 netmask 0xffffffff As you can see, a tunnel has been created between the @@ -3553,7 +3555,8 @@ Edit /etc/rc.conf on gateway host #1 and add the following lines (replacing IP addresses as necessary). - gifconfig_gif0="A.B.C.D W.X.Y.Z" + gif_interfaces="gif0" +gifconfig_gif0="A.B.C.D W.X.Y.Z" ifconfig_gif0="inet 192.168.1.1 192.168.2.1 netmask 0xffffffff" static_routes="vpn" route_vpn="192.168.2.0 192.168.2.1 netmask 0xffffff00" >Release-Note: >Audit-Trail: >Unformatted: