Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Mar 2018 11:36:53 +0000
From:      Steve O'Hara-Smith <steve@sohara.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: How configure a point to point connection?
Message-ID:  <20180319113653.b24768dae3c1f5535d73acaa@sohara.org>
In-Reply-To: <f84b12f7-6ca8-9ad5-7ace-c5c153ec4b13@imrcom.fr>
References:  <f84b12f7-6ca8-9ad5-7ace-c5c153ec4b13@imrcom.fr>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Mon, 19 Mar 2018 11:53:48 +0100
Martin LEUSCH <sce.tech@imrcom.fr> 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 <steve@sohara.org>



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?20180319113653.b24768dae3c1f5535d73acaa>