How configure a point to point connection?

Martin LEUSCH at
Mon Mar 19 14:32:47 UTC 2018

Le 19/03/2018 à 12:36, Steve O'Hara-Smith a écrit :
> On Mon, 19 Mar 2018 11:53:48 +0100
> Martin LEUSCH < at> 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
>>     pointopoint
>>     gateway
>> I tried the following commands:
>> ifconfig vtnet0 inet my.public.ip netmask
>> route add default
>> When I tried to add the default route, I get "Network is unreachable".
> 	Try losing the netmask which puts only a single
> address on the segment making the default route unreachable.
Actually I cannot play with the netmask as my public IP and the remote 
gateway are not on the same IP range but it was effectively a routing issue.
I simply have to add a static route to the remote gateway via the 
network interface of my VM:

      route add -host -interface vtnet0

More information about the freebsd-questions mailing list