From owner-freebsd-questions@freebsd.org Mon Mar 19 11:03:03 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 E0289F65CE4 for ; Mon, 19 Mar 2018 11:03:02 +0000 (UTC) (envelope-from sce.tech@imrcom.fr) Received: from mail.imrcom.eu (mail.imrcom.eu [212.83.164.39]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6795369D8D for ; Mon, 19 Mar 2018 11:03:02 +0000 (UTC) (envelope-from sce.tech@imrcom.fr) Received: from mail.imrcom.eu (localhost [127.0.0.1]) by mail.imrcom.eu (Postfix) with ESMTP id 56C0520092 for ; Mon, 19 Mar 2018 11:53:49 +0100 (CET) Authentication-Results: mail.imrcom.eu (amavisd-new); dkim=pass (1024-bit key) reason="pass (just generated, assumed good)" header.d=imrcom.fr DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=imrcom.fr; h= content-language:content-type:content-type:mime-version :user-agent:date:date:message-id:subject:subject:from:from:to; s=dkim; t=1521456829; x=1522320830; bh=CKossshd9NmnDLkGpuQi/Dh+ Y7Ai0q63MeZtdpSHONg=; b=deBANmK2beR62i2X82L0DEb4q2huxzibttk5MFbd McZOo3D3ewqMcoMHyc6YAf20A5uOVGsTIJb5heuU33YpgeOjX/rlvnpVTvrhRDgV 0n3rlF5M5HBq61gLE8EEsV/pBsykD/rGF724En5uMbPkaIYYwg0xeKaQpzSHpV94 g1Q= X-Virus-Scanned: Debian amavisd-new at mail.imrcom.eu Received: from mail.imrcom.eu ([127.0.0.1]) by mail.imrcom.eu (mail.imrcom.eu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id ssE8b74tcw0S for ; Mon, 19 Mar 2018 11:53:49 +0100 (CET) Received: from [172.20.0.15] (LStLambert-656-1-103-134.w80-14.abo.wanadoo.fr [80.14.151.134]) by mail.imrcom.eu (Postfix) with ESMTPSA id DA29820091 for ; Mon, 19 Mar 2018 11:53:48 +0100 (CET) To: freebsd-questions@freebsd.org From: Martin LEUSCH Subject: How configure a point to point connection? Message-ID: Date: Mon, 19 Mar 2018 11:53:48 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 Content-Language: en-US Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.25 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:03:03 -0000 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". How can I have this config under FreeBSD? Thanks.