Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Jan 2021 09:53:53 +0100
From:      "Kristof Provost" <kp@FreeBSD.org>
To:        "petru garstea" <peter.garshtja@ambient-md.com>
Cc:        freebsd-jail@freebsd.org
Subject:   Re: Jails - vnet- netgraph
Message-ID:  <DF123A0D-028F-433F-9909-5CE51D5A7018@FreeBSD.org>
In-Reply-To: <1ea707ea-0d0e-3f10-b544-77b1bccdddca@ambient-md.com>
References:  <5eebbbcf-9912-d980-21e3-c5628005421b@ambient-md.com> <60105725.3010703@gmail.com> <1cdee0f4-a684-0c7d-f4b7-377d5a29d722@ambient-md.com> <4F2D1547-7B59-427E-850D-8BC0AB26ED78@FreeBSD.org> <1ea707ea-0d0e-3f10-b544-77b1bccdddca@ambient-md.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 28 Jan 2021, at 2:54, petru garstea wrote:
> Greetings,
>
>     Finally, I sorted out.
>
> I have copied an example from the following path 
> /usr/share/examples/netgraph/ether.bridge and found out that I needed 
> to load modules into the kernel
>
> ng_socket.ko
> ng_bridge.ko
> ng_ether.ko
> ng_eiface.ko
>
> and jng script start working, I spawned a jail and confirmed that vnet 
> netgraph interface was properly configured
>
> However I have another question, if I run ifconfig on the host I dont 
> see in the list the netgraph bridge interface and the jails ether 
> interface, I can see these interfaces only if run
>
Vnet jails own the interfaces, so it’s entirely expected that you 
wouldn’t see them in on the host.

> ngctl list
>
>   Name: ng0_vnetjail    Type: eiface          ID: 
> 00000010   Num hooks: 1
>   Name: re0                  Type: 
> ether           ID: 00000005 Num hooks: 2
>   Name: ngctl1544       Type: socket          ID: 
> 00000017   Num hooks: 0
>   Name: re0bridge       Type: bridge          ID: 
> 0000000b   Num hooks: 3
>
If you can see those from the host that seems like it’d be a bug in 
the netgraph code.

Regards,
Kristof



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?DF123A0D-028F-433F-9909-5CE51D5A7018>