From owner-freebsd-net@FreeBSD.ORG Fri Sep 2 00:55:23 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B218D16A41F for ; Fri, 2 Sep 2005 00:55:23 +0000 (GMT) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1829C43D45 for ; Fri, 2 Sep 2005 00:55:20 +0000 (GMT) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (inchoate.gsoft.com.au [203.31.81.31]) (authenticated bits=0) by cain.gsoft.com.au (8.13.4/8.13.4) with ESMTP id j820t2kK055081 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Fri, 2 Sep 2005 10:25:09 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: Paul Schenkeveld Date: Fri, 2 Sep 2005 10:24:50 +0930 User-Agent: KMail/1.8.1 References: <200508301041.52092.doconnor@gsoft.com.au> <20050830121325.GA56752@psconsult.nl> In-Reply-To: <20050830121325.GA56752@psconsult.nl> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart4139502.G6vqTvlqcn"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200509021024.58621.doconnor@gsoft.com.au> X-Spam-Score: -2.82 () ALL_TRUSTED X-Scanned-By: MIMEDefang 2.51 on 203.31.81.10 Cc: freebsd-net@freebsd.org Subject: Re: Routing problem (sort of) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Sep 2005 00:55:23 -0000 --nextPart4139502.G6vqTvlqcn Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Tuesday 30 August 2005 21:43, Paul Schenkeveld wrote: > > I am wondering what the "right" solution is here - I guess I could assi= gn > > an IP to the tunnel but it seems like a bit of a waste.. > > You could assign the same IP address as dc1 to your gif0 interface but > with a /32 netmask. Hmm, I tried this but I can't work out the magic incantation to get it to d= o=20 it.. Here is what it currently is set to metatron# ifconfig gif0 gif0: flags=3D8051 mtu 1452 tunnel inet 150.101.23.134 --> 203.16.215.227 inet6 fe80::240:c7ff:fe99:3a7c%gif0 prefixlen 64 scopeid 0x6 metatron# ifconfig dc1 dc1: flags=3D8843 mtu 1500 inet 150.101.23.134 netmask 0xfffffffc broadcast 150.101.23.135 inet6 fe80::240:c7ff:fe9a:1420%dc1 prefixlen 64 scopeid 0x2 inet 192.168.1.2 netmask 0xffffff00 broadcast 192.168.1.255 ether 00:40:c7:9a:14:20 media: Ethernet autoselect (10baseT/UTP) status: active If I try and assign an IP to the tunnel I get.. metatron# ifconfig gif0 alias 150.101.23.134 netmask 255.255.255.255 ifconfig: ioctl (SIOCAIFADDR): Destination address required metatron# ifconfig gif0 150.101.23.134 netmask 255.255.255.255 ifconfig: ioctl (SIOCAIFADDR): Destination address required metatron# ifconfig gif0 150.101.23.134/32 203.16.215.227 ifconfig: ioctl (SIOCAIFADDR): File exists metatron# ifconfig gif0 alias 150.101.23.134/32 203.16.215.227 ifconfig: ioctl (SIOCAIFADDR): File exists =2D-=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --nextPart4139502.G6vqTvlqcn Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQBDF6Li5ZPcIHs/zowRAn5qAJ9IunYDY3hFRggarsJn+lsOU1GQLgCglPUT BwrPuTWXC8cAtJO74MXecuA= =f7cw -----END PGP SIGNATURE----- --nextPart4139502.G6vqTvlqcn--