No Network in jail

Sepphod

Cadet
Joined
Dec 29, 2019
Messages
3
Hello

I am a bit desperate. I've been trying for several weeks (excluding xmas vacations) to create a jail for a Gitea. This was working before that freenas 11.2. I am not happy at all with the UI but hey ok my server is headless and I can survive with it.
But the DHCP option is not working :( => so static IP address. But I am not able to see any ethernet interface with in my test jail :(.
So I tried to install the Jenkins plugin => this works. I don't know why.

I hope anybody of you can give me hint. probably it is just an layer 8 issue.

thx


here my iocage list

Code:
root@Seppels:/etc/pkg # iocage list
+-----+-------------+-------+--------------+----------------+
| JID |    NAME     | STATE |   RELEASE    |      IP4       |
+=====+=============+=======+==============+================+
| 6   | jenkins-lts | up    | 11.2-RELEASE | 192.168.178.99 |
+-----+-------------+-------+--------------+----------------+
| 8   | test        | up    | 11.2-RELEASE | 192.168.178.98 |
+-----+-------------+-------+--------------+----------------+
root@Seppels:/etc/pkg # 


here an ifconfig from the jail:
Code:
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
    options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
    inet6 ::1 prefixlen 128
    inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
    inet 127.0.0.1 netmask 0xff000000
    nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
    groups: lo
epair0b: flags=8842<BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
    options=8<VLAN_MTU>
    ether 05:6d:a9:ae:1b:76
    hwaddr 02:d7:d0:00:06:0b
    nd6 options=1<PERFORMNUD>
    media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
    status: active
    groups: epair 


here an ifconfig from the freenas itself
Code:
root@Seppels:/etc/pkg # ifconfig
re0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
    options=82099<RXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>
    ether 38:d5:47:e2:92:43
    hwaddr 38:d5:47:e2:92:43
    inet6 fe80::3ad5:47ff:fee2:9243%re0 prefixlen 64 scopeid 0x1
    inet6 2003:c3:7f41:7401:3ad5:47ff:fee2:9243 prefixlen 64 autoconf
    inet 192.168.178.37 netmask 0xffffff00 broadcast 192.168.178.255
    inet 192.168.178.98 netmask 0xffffff00 broadcast 192.168.178.255
    inet 192.168.178.99 netmask 0xffffff00 broadcast 192.168.178.255
    nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL>
    media: Ethernet autoselect (1000baseT <full-duplex>)
    status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
    options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
    inet6 ::1 prefixlen 128
    inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
    inet 127.0.0.1 netmask 0xff000000
    nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
    groups: lo
bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
    ether 02:d7:d3:68:da:00
    nd6 options=1<PERFORMNUD>
    groups: bridge
    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: vnet0:8 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
            ifmaxaddr 0 port 5 priority 128 path cost 2000
    member: epair0a flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
            ifmaxaddr 0 port 4 priority 128 path cost 2000
    member: re0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
            ifmaxaddr 0 port 1 priority 128 path cost 20000
epair0a: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
    options=8<VLAN_MTU>
    ether 02:d7:d0:00:04:0a
    hwaddr 02:d7:d0:00:04:0a
    nd6 options=1<PERFORMNUD>
    media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
    status: active
    groups: epair
vnet0:8: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
    description: associated with jail: test as nic: epair0b
    options=8<VLAN_MTU>
    ether 05:6d:a9:ae:1b:75
    hwaddr 02:d7:d0:00:05:0a
    inet6 fe80::3ad5:47ff:fee2:9243%vnet0:8 prefixlen 64 scopeid 0x5
    nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL>
    media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
    status: active
    groups: epair 
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,702
That looks perfectly normal... and you say it's working... so where is the problem here?

The epair interface is bridged on the host to re0 (both members of bridge0), so this is how traffic is getting out of the jail.

Nothing to fix as far as I see.
 

Sepphod

Cadet
Joined
Dec 29, 2019
Messages
3
first of all thx but from the console out of the jail I don't get a ping to my default route 192.168.178.1
Code:
Edit /etc/motd to change this login announcement.
root@test:~ # ping 192.168.178.1
PING 192.168.178.1 (192.168.178.1): 56 data bytes
ping: sendto: Network is unreachable
ping: sendto: Network is unreachable
ping: sendto: Network is unreachable
^Xping: sendto: Network is unreachable
ping: sendto: Network is unreachable
ping: sendto: Network is unreachable
^C
--- 192.168.178.1 ping statistics ---
6 packets transmitted, 0 packets received, 100.0% packet loss
root@test:~ # 


and I double checked => the option "enable_raw_sockets" is enabled => where is the issue?
 
Top