SOLVED Can't get network on Jail

afya

Dabbler
Joined
Dec 5, 2019
Messages
14
I tried both static IP from iocage/GUI & DHCP from GUI. None worked. It couldn't get IP address from DHCP but I want to use static IP route.
I can't even ping my default gateway 10.0.10.10 from inside Jail.
I am not too familiar with this and would love some help.

From freenas:
Code:
root@freenas[~]# ifconfig
bge0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=c0099<RXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,VLAN_HWTSO,LINKSTATE>
        ether 90:b1:1c:2b:82:cc
        hwaddr 90:b1:1c:2b:82:cc
        inet 10.0.10.160 netmask 0xffffff00 broadcast 10.0.10.255
        nd6 options=9<PERFORMNUD,IFDISABLED>
        media: Ethernet autoselect (1000baseT <full-duplex>)
        status: active
bge1: ....
bge2: ....
bge3: ....
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 0x5
        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:85:13:23:5d: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:13 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
                ifmaxaddr 0 port 7 priority 128 path cost 2000
        member: bge0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
                ifmaxaddr 0 port 1 priority 128 path cost 20000
vnet0:13: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
        description: associated with jail: PPPP as nic: epair0b
        options=8<VLAN_MTU>
        ether 03:fa:cd:ea:64:a6
        hwaddr 02:bf:d0:00:07:0a
        nd6 options=1<PERFORMNUD>
        media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
        status: active
        groups: epair

In jail PPPP
Code:
root@PPPP:~ # ifconfig
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=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=8<VLAN_MTU>
        ether 03:fa:cd:ea:64:a7
        hwaddr 02:bf:d0:00:08:0b
        inet 10.0.10.163 netmask 0xffffff00 broadcast 10.0.10.255
        nd6 options=1<PERFORMNUD>
        media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
        status: active
        groups: epair
 

afya

Dabbler
Joined
Dec 5, 2019
Messages
14
Would like some help still...
Is there any way to check the vnet0 <=> epair0b connection, whether it is indeed functioning? Or vnet0<=> bge0 connection inside bridge0?
Jail can't ping FreeNAS 10.0.10.160. FreeNAS can't ping 10.0.10.163.

FreeNAS netstat -rn
Code:
Internet:
Destination        Gateway            Flags     Netif Expire
default            10.0.10.10         UGS        bge0
10.0.10.0/24       link#1             U          bge0
10.0.10.160        link#1             UHS         lo0
127.0.0.1          link#5             UH          lo0


Jail netstat -rn
Code:
Internet:
Destination        Gateway            Flags     Netif Expire
default            10.0.10.10         UGS     epair0b
10.0.10.0/24       link#2             U       epair0b
10.0.10.163        link#2             UHS         lo0
127.0.0.1          link#1             UH          lo0


Hardware spec:
Dell R520
H310 w/ LSI firmware
2x 12TB drive
boot from USB
internal ethernet port 1.
 

afya

Dabbler
Joined
Dec 5, 2019
Messages
14
OK It's solved. Every config were correct afaik. I fixed it by deleting ALL iocage dataset iocage clean -a.
 
Top