Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 02 Oct 2023 09:21:52 +0000
From:      Benoit Chesneau <benoitc@enki-multimedia.eu>
To:        "freebsd-net@FreeBSD.org" <freebsd-net@freebsd.org>
Subject:   ipv6 only host and no IPV4 in jail?
Message-ID:  <t1d4CimLo2K345CiV8mGDaQrW5KW1Kz335yZOtRdu-XGYjY7m2zHVkxBOSxxLXavsgCVxWSVVO1JXNQ9F294ywF7MWuGh0L6HrYbKKvB2rA=@enki-multimedia.eu>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
Hi all,

I have a weird issue there,

I have an ipv6 only host aon which I am starting a jail.Jalil have a vnet interface through a bridge created on the host:

For some reason the jail can't get access and is not accessible to internet when I setup an IPV4 on it (and right gateway). Is this something expected? SHould the Host be also IPV4 aware?

Host config:

Host:
```
vlan200bridge: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 9000
ether 58:9c:fc:10:fc:41
id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200
root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
member: e0a_bastille4 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
ifmaxaddr 0 port 8 priority 128 path cost 2000
member: tap0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
ifmaxaddr 0 port 9 priority 128 path cost 2000000
member: tap1 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
ifmaxaddr 0 port 10 priority 128 path cost 2000000
member: vlan200 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
ifmaxaddr 0 port 6 priority 128 path cost 800 groups: bridge

e0a_bastille4: flags=8963<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 9000
description: vnet host interface for Bastille jail fpcouchdb
options=8<VLAN_MTU>
ether 02:20:9c:4c:84:f0
hwaddr 02:c4:b5:3a:91:0a
groups: epair
media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
status: active nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
```

Guest

```
# ifconfig vnet0
vnet0: flags=8863<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8<VLAN_MTU>
ether 0e:20:9c:4c:84:f0
hwaddr 02:c4:b5:3a:91:0b
inet6 XXXX:XXXX:XXXX:200::30 prefixlen 64
inet6 fe80::c20:9cff:fe4c:84f0%vnet0 prefixlen 64 scopeid 0x2
inet 10.200.1.8 netmask 0xffffff00 broadcast 10.200.1.255
groups: epair
media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
status: active nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
# netstat -rn4
Routing tables

Internet:
Destination Gateway Flags Netif Expire
default 10.200.1.1 UGS vnet0
10.200.1.0/24 link#2 U vnet0
10.200.1.8 link#2 UHS lo0127.0.0.1 link#1 UH lo0

```

Benoît Chesneau, Enki Multimedia
—
t. +33608655490

Sent with [Proton Mail](https://proton.me/) secure email.
[-- Attachment #2 --]
<div style="font-family: Arial, sans-serif; font-size: 14px;">Hi all,&nbsp;</div><div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div><div style="font-family: Arial, sans-serif; font-size: 14px;">I have a weird issue there,</div><div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div><div style="font-family: Arial, sans-serif; font-size: 14px;">I have an ipv6 only host aon which I am starting a jail.Jalil have a vnet interface &nbsp;through a bridge created on the host:</div><div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div><div style="font-family: Arial, sans-serif; font-size: 14px;">For some reason the jail can't get access and is not accessible to internet when I setup an IPV4 on it (and right gateway). Is this something expected? SHould the Host be also IPV4 aware?</div><div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div><div style="font-family: Arial, sans-serif; font-size: 14px;">Host config:</div><div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div><div style="font-family: Arial, sans-serif; font-size: 14px;">Host:</div><div style="font-family: Arial, sans-serif; font-size: 14px;">```</div><div style="font-family: Arial, sans-serif; font-size: 14px;"><span>vlan200bridge: flags=8843&lt;UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST&gt; metric 0 mtu 9000</span><div><span>	ether 58:9c:fc:10:fc:41</span></div><div><span>	id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15</span></div><div><span>	maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200</span></div><div><span>	root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0</span></div><div><span>	member: e0a_bastille4 flags=143&lt;LEARNING,DISCOVER,AUTOEDGE,AUTOPTP&gt;</span></div><div><span>	 &nbsp; &nbsp; &nbsp; &nbsp;ifmaxaddr 0 port 8 priority 128 path cost 2000</span></div><div><span>	member: tap0 flags=143&lt;LEARNING,DISCOVER,AUTOEDGE,AUTOPTP&gt;</span></div><div><span>	 &nbsp; &nbsp; &nbsp; &nbsp;ifmaxaddr 0 port 9 priority 128 path cost 2000000</span></div><div><span>	member: tap1 flags=143&lt;LEARNING,DISCOVER,AUTOEDGE,AUTOPTP&gt;</span></div><div><span>	 &nbsp; &nbsp; &nbsp; &nbsp;ifmaxaddr 0 port 10 priority 128 path cost 2000000</span></div><div><span>	member: vlan200 flags=143&lt;LEARNING,DISCOVER,AUTOEDGE,AUTOPTP&gt;</span></div><div><span>	 &nbsp; &nbsp; &nbsp; &nbsp;ifmaxaddr 0 port 6 priority 128 path cost 800</span></div><span>	groups: bridge</span><br></div><div style="font-family: Arial, sans-serif; font-size: 14px;"><span><br></span></div><div style="font-family: Arial, sans-serif; font-size: 14px;"><span><span>e0a_bastille4: flags=8963&lt;UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST&gt; metric 0 mtu 9000</span><div><span>	description: vnet host interface for Bastille jail fpcouchdb</span></div><div><span>	options=8&lt;VLAN_MTU&gt;</span></div><div><span>	ether 02:20:9c:4c:84:f0</span></div><div><span>	hwaddr 02:c4:b5:3a:91:0a</span></div><div><span>	groups: epair</span></div><div><span>	media: Ethernet 10Gbase-T (10Gbase-T &lt;full-duplex&gt;)</span></div><div><span>	status: active</span></div><span>	nd6 options=29&lt;PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL&gt;</span></span></div><div style="font-family: Arial, sans-serif; font-size: 14px;">```</div><div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div><div style="font-family: Arial, sans-serif; font-size: 14px;">Guest</div><div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div><div style="font-family: Arial, sans-serif; font-size: 14px;">```</div><div style="font-family: Arial, sans-serif; font-size: 14px;"><span># ifconfig vnet0</span><div><span>vnet0: flags=8863&lt;UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST&gt; metric 0 mtu 1500</span></div><div><span>	options=8&lt;VLAN_MTU&gt;</span></div><div><span>	ether 0e:20:9c:4c:84:f0</span></div><div><span>	hwaddr 02:c4:b5:3a:91:0b</span></div><div><span>	inet6 XXXX:XXXX:XXXX:200::30 prefixlen 64</span></div><div><span>	inet6 fe80::c20:9cff:fe4c:84f0%vnet0 prefixlen 64 scopeid 0x2</span></div><div><span>	inet 10.200.1.8 netmask 0xffffff00 broadcast 10.200.1.255</span></div><div><span>	groups: epair</span></div><div><span>	media: Ethernet 10Gbase-T (10Gbase-T &lt;full-duplex&gt;)</span></div><div><span>	status: active</span></div><span>	nd6 options=21&lt;PERFORMNUD,AUTO_LINKLOCAL&gt;</span><br></div><div style="font-family: Arial, sans-serif; font-size: 14px;"><span><span><span># netstat -rn4</span><div><span>Routing tables</span></div><div><br></div><div><span>Internet:</span></div><div><span>Destination &nbsp; &nbsp; &nbsp; &nbsp;Gateway &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Flags &nbsp; &nbsp; Netif Expire</span></div><div><span>default &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;10.200.1.1 &nbsp; &nbsp; &nbsp; &nbsp; UGS &nbsp; &nbsp; &nbsp; vnet0</span></div><div><span>10.200.1.0/24 &nbsp; &nbsp; &nbsp;link#2 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; U &nbsp; &nbsp; &nbsp; &nbsp; vnet0</span></div><div><span>10.200.1.8 &nbsp; &nbsp; &nbsp; &nbsp; link#2 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; UHS &nbsp; &nbsp; &nbsp; &nbsp; lo0</span></div><span>127.0.0.1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;link#1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; UH &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lo0</span><br></span></span></div><div style="font-family: Arial, sans-serif; font-size: 14px;">```</div><div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div>
<div class="protonmail_signature_block" style="font-family: Arial, sans-serif; font-size: 14px;">
    <div class="protonmail_signature_block-user">
        <div style="font-style: normal; font-weight: normal; letter-spacing: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none; font-family: Helvetica; font-size: 12px; color: rgb(0, 0, 0);">Benoît Chesneau, Enki Multimedia<br></div><div style="font-style: normal; font-weight: normal; letter-spacing: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none; font-family: Helvetica; font-size: 12px; color: rgb(0, 0, 0);">—<br></div><div style="font-style: normal; font-weight: normal; letter-spacing: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none; font-family: Helvetica; font-size: 12px; color: rgb(0, 0, 0);">t. +33608655490&nbsp;<br></div>
    </div>
    <div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div>
    <div class="protonmail_signature_block-proton">
        Sent with <a target="_blank" href="https://proton.me/" rel="noopener noreferrer">Proton Mail</a> secure email.
    </div>
</div>

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?t1d4CimLo2K345CiV8mGDaQrW5KW1Kz335yZOtRdu-XGYjY7m2zHVkxBOSxxLXavsgCVxWSVVO1JXNQ9F294ywF7MWuGh0L6HrYbKKvB2rA=>