On Mon, 25 Mar 2019, Mathias Picker wrote:

> Hi all,
> 
> this is the first time I tried to use bhyve.
> 
> This is 12.0-RELEASEp3 and vm-bhyve 1.2.3.
> 
> My hosting provider hetzner.de is giving out subnets which are routed through
> the main ip of the server,
> so if my main IP is xxx.xxx.xxx.63 the subnet yyy.yyy.yyy.224/28 is routed as
> if it was "behind" the main ip xxx.xxx.xxx.xxx.

This is a typical routing situation. You cannot get from yyy.yyy.yyy to the
Internet via bridging alone. You have to have a normal routing done on
the xxx.xxx.xxx.63 machine.

> I first didn't know that and tried the solution mentioned in the vm-bhyve
> wiki, usiing a bridge and adding the network card (em0) to it, which didn't
> work.

Hetzner will not allow you to show additional MAC adresses behind your main
IP (xxx.xxx.xxx.63), that's the reason why some descriptions "on the Internet"
may not work for you.

I don't have luxury of the IPv4 subnet behind my single IPv4, so I had
to create two bridge interfaces (bridge0 and bridge1) - one is for
a routed IPv6 subnet, the other one is for RFC1918 IPv4 addresses.
bridge1 is being subject to NAT. bridge0 is subject to IPv6 routing.

(I use Xen but that does not matter for the networking discussion).

Marcin

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to