From owner-freebsd-net@freebsd.org Fri Dec 23 17:06:51 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 63362C8EBFB for ; Fri, 23 Dec 2016 17:06:51 +0000 (UTC) (envelope-from mike@sentex.net) Received: from smarthost2.sentex.ca (smarthost2.sentex.ca [IPv6:2607:f3e0:80:80::2]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "smarthost.sentex.ca", Issuer "smarthost.sentex.ca" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 30F827EB for ; Fri, 23 Dec 2016 17:06:51 +0000 (UTC) (envelope-from mike@sentex.net) Received: from lava.sentex.ca (lava.sentex.ca [IPv6:2607:f3e0:0:5::11]) by smarthost2.sentex.ca (8.15.2/8.15.2) with ESMTPS id uBNH6nmW002270 (version=TLSv1 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Fri, 23 Dec 2016 12:06:50 -0500 (EST) (envelope-from mike@sentex.net) Received: from [IPv6:2607:f3e0:0:4:5c30:ed1b:e203:c55c] ([IPv6:2607:f3e0:0:4:5c30:ed1b:e203:c55c]) by lava.sentex.ca (8.15.2/8.14.9) with ESMTP id uBNH6lQq083597; Fri, 23 Dec 2016 12:06:48 -0500 (EST) (envelope-from mike@sentex.net) Subject: Re: How to configure another loopback device? To: John Dison , "freebsd-net@freebsd.org" References: <484245134.901856.1482481724608.ref@mail.yahoo.com> <484245134.901856.1482481724608@mail.yahoo.com> <1799694948.900229.1482490080295@mail.yahoo.com> <1031105507.1010181.1482502206363@mail.yahoo.com> From: Mike Tancsa Organization: Sentex Communications Message-ID: Date: Fri, 23 Dec 2016 12:06:43 -0500 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <1031105507.1010181.1482502206363@mail.yahoo.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.78 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: Fri, 23 Dec 2016 17:06:51 -0000 On 12/23/2016 9:10 AM, John Dison via freebsd-net wrote: > Sorry, just noticed damn yahoo mailer eat all line breaks. Resending in plain text (I hope): > > I want to configure lo1 loopback device and assign aliases to it via rc.conf system (at boot). > I also want loopback addresses to remain on lo0. > > What I have: > ifconfig_lo1_alias0="inet IP4/32" > ifconfig_lo1_alias1="inet6 IP6/128" > cloned_interfaces="lo1" > create_args_lo1="inet6 auto_linklocal" > if your first IPs are say 192.168.1.1-2/32 and 2001:550:2:8::1e-f Try without an alias0 for the first set of IPs ifconfig_lo1="inet 192.168.1.1/32" ifconfig_lo1_ipv6="inet6 2001:550:2:8::1e prefixlen 126" ifconfig_lo1_alias0="inet 192.168.1.2/32" ifconfig_lo1_ipv6_alias0="inet6 2001:550:2:8::1f prefixlen 126" ---Mike -- ------------------- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, mike@sentex.net Providing Internet services since 1994 www.sentex.net Cambridge, Ontario Canada http://www.tancsa.com/