Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Sep 2022 20:51:21 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 266586] vnet bridge with IP address is not working after reboot
Message-ID:  <bug-266586-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D266586

            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.=20

My setup looks like the picture attached to the bug. This setup works excep=
t ,
that the host can't use a service which are hosted inside a vnet jail.=20

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 m=
e .
Instead it creates a mess , ip addresses are not set or the member is attac=
hed
to the bridge , but the ip address is not configured...=20

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 mis=
sing
. If I do the setup manually , it works.=20


Manually steps.=20
# vtnet0 does not have an IP address .=20

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 in=
to
the jail .

To make it reboot stable I tried the following rc.conf



cloned_interfaces=3D"bridge1"=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20
ifconfig_bridge1=3D"inet 192.168.10.100 netmask 255.255.255.0"=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
ifconfig_bridge1=3D"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

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-266586-227>