Hi,
my Hetzner FreeBSD VPS has two network interfaces attached to it, vtnet0 (public IP, configured through DHCP), and vtnet1 for Hetzners private network among a client's systems. This private network has an IP range of 10.0.0.0/16 with a subnet of 10.0.0.0/24, in which my FreeBSD VPS belongs together with another Linux VPS.
The automatic configured Linux VPS, which works as expected, meaning I can ping 10.0.0.1 from it, gives me the following routing table after running
In the above, eth0 is the public interface of the Linux machine, while ens10 is the one attached to the private network with the IP address 10.0.0.3 assigned to it. 172.31.1.1 is the IP address of the gateway, that all Hetzner Cloud servers use for their public interface.
The closest I could get is the following rc.conf networking section on my FreeBSD machine:
But this does not seem to work, ping 10.0.0.1 or 10.0.0.3 does not return anything back. Am I missing something? Any suggestions?
Thank you all in advance
my Hetzner FreeBSD VPS has two network interfaces attached to it, vtnet0 (public IP, configured through DHCP), and vtnet1 for Hetzners private network among a client's systems. This private network has an IP range of 10.0.0.0/16 with a subnet of 10.0.0.0/24, in which my FreeBSD VPS belongs together with another Linux VPS.
The automatic configured Linux VPS, which works as expected, meaning I can ping 10.0.0.1 from it, gives me the following routing table after running
netstat -nr
:
Code:
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
0.0.0.0 172.31.1.1 0.0.0.0 UG 0 0 0 eth0
10.0.0.0 10.0.0.1 255.255.0.0 UG 0 0 0 ens10
10.0.0.1 0.0.0.0 255.255.255.255 UH 0 0 0 ens10
172.31.1.1 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
The closest I could get is the following rc.conf networking section on my FreeBSD machine:
Code:
ifconfig_vtnet0="DHCP"
ifconfig_vtnet1="inet 10.0.0.2 netmask 255.255.255.255 fib 1"
static_routes="fibpriv"
route_fibpriv="default 10.0.0.1 -fib 1"
Thank you all in advance
