From owner-freebsd-net@freebsd.org Tue Feb 19 13:07:06 2019 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4631114F0C54 for ; Tue, 19 Feb 2019 13:07:06 +0000 (UTC) (envelope-from andrnils@gmail.com) Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1DDC686CE4 for ; Tue, 19 Feb 2019 13:07:05 +0000 (UTC) (envelope-from andrnils@gmail.com) Received: by mail-lj1-x232.google.com with SMTP id j19so16556025ljg.5 for ; Tue, 19 Feb 2019 05:07:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=fPenjl954ck2GYCvY7ELXONmWgDirxIitgkjdz+mXTQ=; b=VK6z1oe2m/tHfrJGtJ8wDQeRr1emlb/9VQ/bfqUsVpL987bUndr8phwbDo7IaJ5Gx6 nbb2wc9V5+qjddHy3fBtU3OyxmIC2GeHOeu/brQFkBUCdJuKvVcV0vPd3h8RPDxo2Th1 m2MsGABRK4SFnb9qQFI3aUtWi41KVFNz8IvonEdnBvz77lKKN7yMdmdzQHRUL+rSbp8E ASH3NxQLdB2FuSKO4PUbvfrIF/llygFj3ONntwOuRhUpz7giTzN29P0dpRUp58MbvMl4 HcYwVZkZHgz4WMGd8fIc3LNEukcK9nqvixs8ZrF7WuPTEf6WpdlF8sK5QcUGhOGXxTGY DtOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=fPenjl954ck2GYCvY7ELXONmWgDirxIitgkjdz+mXTQ=; b=jjDFweR7CVva5G62LeghKfNR3O53ZBmSG6/15Eqk6BrQBUmgbWl4lGR3fHJgM9NmYm JYARqy1Lnt9Ge9yRaA1d2Z4WoXpLVj5CSi3ffA496Ys/X1IuZ33HZKWd+lYRMRDTLXHd Mxg1JQxkjf4XfT7r+JlYz+29d3pGUR1dULY6UVGXz5S4LjUpYEG6O6z0YYaII5Hwvvtg MIn2FKtFyR3AzDKjEs0lJOpTm2l3TCnFh7NA89bUQZgPTf2CqhU1Q3mdMbAS3nk7fuL0 9h0cTLuOGNkFe+2GVFu08a8DWes0zgZ91nc79ReewmqULieYnViiZovuqFOaxO8WW0QU Ca6g== X-Gm-Message-State: AHQUAua5XKtOL9f4htQWJQm43UOTO36iUr7I30FToFDBg45SLKvO28oK c1bqmfOUoum0U125GYibzC6HK6D6QySReekBq9w= X-Google-Smtp-Source: AHgI3IYcJiGaflC5xpDulTNr0nNEk8MY1pdNbHKUH5j5Mm42ehA/9vsHLNRdnMp+fvgNmMiaaJoNUTWtfmfX+6JXkwo= X-Received: by 2002:a2e:9e55:: with SMTP id g21-v6mr17320911ljk.139.1550581623422; Tue, 19 Feb 2019 05:07:03 -0800 (PST) MIME-Version: 1.0 References: <95d8e3ea-af36-4d14-f280-908f92a96515@disroot.org> <9ab1a9b1-e1e3-9f48-2c3e-35454bcd6e77@disroot.org> In-Reply-To: <9ab1a9b1-e1e3-9f48-2c3e-35454bcd6e77@disroot.org> From: Andreas Nilsson Date: Tue, 19 Feb 2019 14:06:52 +0100 Message-ID: Subject: Re: Point-to-point using GRE over IPv6 -> not possible with a single /128 address on the server? To: "Peter G." Cc: FreeBSD Net X-Rspamd-Queue-Id: 1DDC686CE4 X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=VK6z1oe2; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of andrnils@gmail.com designates 2a00:1450:4864:20::232 as permitted sender) smtp.mailfrom=andrnils@gmail.com X-Spamd-Result: default: False [-5.59 / 15.00]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; NEURAL_HAM_SHORT(-0.88)[-0.879,0]; FROM_EQ_ENVFROM(0.00)[]; IP_SCORE(-2.70)[ip: (-9.19), ipnet: 2a00:1450::/32(-2.27), asn: 15169(-1.99), country: US(-0.07)]; MIME_TRACE(0.00)[0:+,1:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-net@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2.3.2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; RCVD_TLS_LAST(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; SUBJECT_ENDS_QUESTION(1.00)[] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Feb 2019 13:07:06 -0000 On Tue, Feb 19, 2019 at 1:38 PM Peter G. wrote: > On 15/02/2019 17:49, Peter G. wrote: > > Now the GRE tunnel > > > >> ifconfig gre6 create > >> ifconfig gre6 inet6 fc01:e::100 fc:02:e::200 tunnelfib 6 > > #ifconfig: ioctl (SIOCAIFADDR): File exists > > > > Why is this not possible? Isn't the logic behind it the same as with > > IPv4? If not, why not? > > > > Does this mean it is not possible to have a point-to-point using IPv6 on > > a machine with only a single /128 address? > > Is this a stupid question, or something of the sort? Because I truly > don't understand why this wouldn't work. Thanks. > > PG > > I have not used gre with ipv6, so I cannot really be of any help. However for ipv4 you specify a netmask while setting up the interface, whereas you do not while setting up the ipv6. I also notice that you list fc02:e::200 for "other end" but in the commands you have fc:02:e::200 which I guess is just typo. Does ifconfig gre6 inet6 fc01:e::100 fc:02:e::200 prefixlen 128 tunnelfib 6 work? Or the whole thing ifconfig gre6 inet6 fc01:e::100 fc02:e::200 tunnel fc01:e::100 fc02:e::200 prefixlen 128 tunnelfib 6 Best regards Andreas