Re: How to force network packets across network instead of loopback

From: Sad Clouds <cryintothebluesky_at_gmail.com>
Date: Thu, 11 Sep 2025 14:33:53 UTC
On Thu, 11 Sep 2025 13:40:08 +0200
Dag-Erling Smørgrav <des@FreeBSD.org> wrote:

>     # jail -c name=ix0 path=/ persist vnet vnet.interface=ix0
>     # jexec ix0 ifconfig ix0 inet 192.0.2.1/24 up
>     # jail -c name=ix1 path=/ persist vnet vnet.interface=ix1
>     # jexec ix1 ifconfig ix1 inet 192.0.2.2/24 up
>     # jexec ix0 ping -c 3 192.0.2.2
>     # jexec ix1 ping -c 3 192.0.2.1

Thanks for the examples, nice and short. I also arrived at a similar
conclusion, VNET jails are probably the quickest way to achieve it with
minimal overheads.