[Bug 266586] vnet bridge with IP address is not working after reboot
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 266586] vnet bridge with IP address is not working after reboot"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 266586] vnet bridge with IP address is not working after reboot"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 266586] vnet bridge with IP address is not working when configured via rc.conf"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 266586] vnet bridge with IP address is not working when configured via rc.conf"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 266586] vnet bridge with IP address is not working when configured via rc.conf"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 266586] vnet bridge with IP address is not working when configured via rc.conf"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 266586] vnet bridge with IP address is not working when configured via rc.conf"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 24 Sep 2022 20:51:21 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266586
Bug ID: 266586
Summary: vnet bridge with IP address is not working after
reboot
Product: Base System
Version: 13.1-STABLE
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: kern
Assignee: bugs@FreeBSD.org
Reporter: sharky@schaack.io
Actually there is not documentation on how to implement vnet jails in the
handbook . I did it my self years ago , but it would be handy to have a
reference. I can provide it after we have discussed this problem.
My setup looks like the picture attached to the bug. This setup works except ,
that the host can't use a service which are hosted inside a vnet jail.
People recommend me to move the ip from the "physical" lan interface to the
bridge . I followed the advise and it works ! I can successfully use the
service like dns or any other protocol which is hosted in the jail , until I
reboot the machine and the rc.conf will takeover and create the setup for me .
Instead it creates a mess , ip addresses are not set or the member is attached
to the bridge , but the ip address is not configured...
When the rc.conf create the setup for me the host is no able communicate
anymore , because the IP addresses are not attached to the interfaces or the
main lan interface is attached to the bridge but then the IP address is missing
. If I do the setup manually , it works.
Manually steps.
# vtnet0 does not have an IP address .
ifconfig bridge1 addm vtnet0
ifconfig bridge1 inet 192.168.10.100 netmask 255.255.255.0
ifconfig bridge1 addm vtnet0
ifconfig vnet0 up
# Jails behind the bridge can be reached. The host system is able to ssh into
the jail .
To make it reboot stable I tried the following rc.conf
cloned_interfaces="bridge1"
ifconfig_bridge1="inet 192.168.10.100 netmask 255.255.255.0"
ifconfig_bridge1="addm vtnet0"
# after the reboot , the brigde1 does not have an IP address , but why ? I
don't get it.
# this fixes the issue
ifconfig bridge1 inet 192.168.10.100 netmask 255.255.255.0
--
You are receiving this mail because:
You are the assignee for the bug.