From owner-freebsd-questions@freebsd.org Mon Mar 19 11:37:09 2018 Return-Path: Delivered-To: freebsd-questions@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 E1424F680EB for ; Mon, 19 Mar 2018 11:37:08 +0000 (UTC) (envelope-from 4250.10.freebsd-questions=freebsd.org@email-od.com) Received: from bca5.email-od.com (bca5.email-od.com [207.246.239.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 691AA6B309 for ; Mon, 19 Mar 2018 11:37:08 +0000 (UTC) (envelope-from 4250.10.freebsd-questions=freebsd.org@email-od.com) DKIM-Signature: v=1; a=rsa-sha256; d=email-od.com;i=@email-od.com;s=dkim; c=relaxed/relaxed; q=dns/txt; t=1521459431; x=1524051431; h=content-transfer-encoding:content-type:mime-version:references:in-reply-to:message-id:subject:to:from:date:x-thread-info; bh=+z+0zeRpNo2n+SlfZzDp8CDGBLy0HPiuLiZHKHH0xMo=; b=r8ciTvwovW6lo3pSa0cvfIIo/Ju7+/QMFOWNXLzNwJdCyiNJNG8GQtoT3qJHxZbHFtK31az1raNpNL+4qBhWgoOCADgP3o+FtS1yXllLgDoDha21DsXLMidobbrMXBvIS1xv2pbzRnhrXBMrSdva4JG70Ch7AbQpqHax29/nixI= X-Thread-Info: NDI1MC4xMi45NDAwMDAwMDI1NGE5Yi5mcmVlYnNkLXF1ZXN0aW9ucz1mcmVlYnNkLm9yZw== Received: from r4.h.in.socketlabs.com (s1-b40f.socketlabs.email-od.com [142.0.180.15]) by bca2.email-od.com with ESMTP(version=Tls12 cipher=Aes256 bits=256); Mon, 19 Mar 2018 07:36:59 -0400 Received: from smtp.lan.sohara.org (EMTPY [89.127.62.20]) by r4.h.in.socketlabs.com with ESMTP(version=Tls12 cipher=Aes256 bits=256); Mon, 19 Mar 2018 07:36:55 -0400 Received: from [192.168.63.1] (helo=steve.lan.sohara.org) by smtp.lan.sohara.org with smtp (Exim 4.90 (FreeBSD)) (envelope-from ) id 1ext5x-000MgE-Qh for freebsd-questions@freebsd.org; Mon, 19 Mar 2018 11:36:53 +0000 Date: Mon, 19 Mar 2018 11:36:53 +0000 From: Steve O'Hara-Smith To: freebsd-questions@freebsd.org Subject: Re: How configure a point to point connection? Message-Id: <20180319113653.b24768dae3c1f5535d73acaa@sohara.org> In-Reply-To: References: X-Mailer: Sylpheed 3.6.0 (GTK+ 2.24.31; amd64-portbld-freebsd11.0) X-Clacks-Overhead: "GNU Terry Pratchett" Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Mar 2018 11:37:09 -0000 On Mon, 19 Mar 2018 11:53:48 +0100 Martin LEUSCH wrote: > Hi, > > I want to add a public IP of my hosting provider to a FreeBSD VM. To do > this I have to reach a remote gateway with a point to point connection > but I didn't how how to do that on FreeBSD. Under Debian GNU/Linux, I > just have to add the gateway to the "pointopoint" parameters in > /etc/network/interfaces: > > iface eth0 inet static > address my.public.ip > netmask 255.255.255.255 > pointopoint my.provider.gw > gateway my.provider.gw > > I tried the following commands: > > ifconfig vtnet0 inet my.public.ip my.provider.gw netmask 255.255.255.255 > route add default my.provider.gw > > When I tried to add the default route, I get "Network is unreachable". Try losing the netmask 255.255.255.255 which puts only a single address on the segment making the default route unreachable. -- Steve O'Hara-Smith