From owner-freebsd-net@freebsd.org Sat Dec 24 22:02:37 2016 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 969F6C8F0F9 for ; Sat, 24 Dec 2016 22:02:37 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Received: from mail.allbsd.org (gatekeeper.allbsd.org [IPv6:2001:2f0:104:e001::32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.allbsd.org", Issuer "RapidSSL SHA256 CA - G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 17D6681C for ; Sat, 24 Dec 2016 22:02:36 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Received: from mail-d.allbsd.org (p2027-ipbf1605funabasi.chiba.ocn.ne.jp [123.225.191.27]) (authenticated bits=56) by mail.allbsd.org (8.15.2/8.15.2) with ESMTPSA id uBOM2G9N026353 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) (Client CN "/OU=GT07882699/OU=See+20www.rapidssl.com/resources/cps+20+28c+2915/OU=Domain+20Control+20Validated+20-+20RapidSSL+28R+29/CN=*.allbsd.org", Issuer "/C=US/O=GeoTrust+20Inc./CN=RapidSSL+20SHA256+20CA+20-+20G3"); Sun, 25 Dec 2016 07:02:32 +0900 (JST) (envelope-from hrs@FreeBSD.org) Received: from alph.allbsd.org (alph.allbsd.org [192.168.0.10]) by mail-d.allbsd.org (8.15.2/8.15.2) with ESMTPS id uBOM11oa010041 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sun, 25 Dec 2016 07:01:01 +0900 (JST) (envelope-from hrs@FreeBSD.org) Received: from localhost (localhost [IPv6:::1]) (authenticated bits=0) by alph.allbsd.org (8.15.2/8.15.2) with ESMTPA id uBOM0osT009933; Sun, 25 Dec 2016 07:01:00 +0900 (JST) (envelope-from hrs@FreeBSD.org) Date: Sun, 25 Dec 2016 06:59:34 +0900 (JST) Message-Id: <20161225.065934.1192800130496756773.hrs@allbsd.org> To: jdison16@yahoo.com Cc: freebsd-net@freebsd.org, mike@sentex.net Subject: Re: How to configure another loopback device? From: Hiroki Sato In-Reply-To: <252311393.1502179.1482604113540@mail.yahoo.com> References: <20161224.205457.537205546150309741.hrs@allbsd.org> <31938292.1421737.1482589536048@mail.yahoo.com> <252311393.1502179.1482604113540@mail.yahoo.com> X-PGPkey-fingerprint: BDB3 443F A5DD B3D0 A530 FFD7 4F2C D3D8 2793 CF2D X-Mailer: Mew version 6.7 on Emacs 25.1 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Multipart/Signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="--Security_Multipart(Sun_Dec_25_06_59_34_2016_627)--" Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.99 at gatekeeper.allbsd.org X-Virus-Status: Clean X-Greylist: Sender DNS name whitelisted, not delayed by milter-greylist-4.4.3 (mail.allbsd.org [133.31.130.32]); Sun, 25 Dec 2016 07:02:33 +0900 (JST) X-Spam-Status: No, score=-99.9 required=13.0 tests=CONTENT_TYPE_PRESENT, QENCPTR1,USER_IN_WHITELIST autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on gatekeeper.allbsd.org X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Dec 2016 22:02:37 -0000 ----Security_Multipart(Sun_Dec_25_06_59_34_2016_627)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit John Dison wrote in <252311393.1502179.1482604113540@mail.yahoo.com>: jd> > Does adding ifconfig_lo0="inet 127.0.0.1/8" to /etc/rc.conf work? jd> jd> Yes, adding ifconfig_lo0="inet 127.0.0.1/8" helps indeed. jd> jd> Interesting is that if I also add ifconfig_lo0_ipv6="inet6 ::1/128" jd> then ::1/128 will be on lo1. If I do not add that line, it will be on lo0. jd> jd> Looks weird but that workaround work. Thanks. Here are the reasons: - 127.0.0.1/8 will be configured on lo0 in rc.d scripts if ifconfig_lo0 is missing after processing ifconfig_IF and before doing ifconfig_IF_alias*. - You cannot manually configure ::1/128 because it is configured by the kernel when a loopback interface becomes "up". If you have an ifconfig_lo1 and no ifconfig_lo0, ifconfig_lo1 will be processed and make lo1 "up" first. -- Hiroki ----Security_Multipart(Sun_Dec_25_06_59_34_2016_627)-- Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEABECAAYFAlhe78YACgkQTyzT2CeTzy3OLgCfT9vtXF0NICpjQXT1tAovXK9c ZnEAoNP+oA4Kz26Z49qoM80TCooyxeK/ =lSjK -----END PGP SIGNATURE----- ----Security_Multipart(Sun_Dec_25_06_59_34_2016_627)----