Need help tethering Raspberry Pi Zero to TrueNAS

canute4444

Dabbler
Joined
Jul 7, 2021
Messages
16
I have a Raspberry Pi Zero W that I have setup in OTG mode (Setup using this)
I am trying to connect this via USB to my TrueNAS machine and get network connection on the RPi.

TrueNAS seems to recognize the RPi as an Ethernet Gadget and creates a network interface ue0 as well

Code:
# dmesg
ugen0.5: <Linux 5.10.17+ with 20980000.usb RNDIS/Ethernet Gadget> at usbus0
cdce0 on uhub0
cdce0: <RNDIS Communications Control> on usbus0
cdce0: No valid alternate setting found
device_attach: cdce0 attach returned 6
cdce0 on uhub0
cdce0: <RNDIS Ethernet Data> on usbus0
cdce0: faking MAC address
ue0: <USB Ethernet> on cdce0
ue0: Ethernet address: 2a:c6:d4:1c:84:00

My TrueNAS machine has internet connectivity through another existing interface re0. I'm trying to share this connection with the RPi

Code:
# ifconfig
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=8209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>
        ether b4:2e:99:a2:1e:7a
        inet 192.168.1.51 netmask 0xffffff00 broadcast 192.168.1.255
        media: Ethernet autoselect (1000baseT <full-duplex>)
        status: active
        nd6 options=9<PERFORMNUD,IFDISABLED>
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
        inet 127.0.0.1 netmask 0xff000000
        groups: lo
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
pflog0: flags=0<> metric 0 mtu 33160
        groups: pflog
ue0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 2a:c6:d4:1c:84:00
        nd6 options=1<PERFORMNUD>


I was able to connect the same RPi to another Linux machine. I had to create a bridge interface on it, but on my TrueNAS machine, just creating a bridge interface isn't working automatically. The RPi still doesn't see any working network connection.

Any pointers on what steps I am missing?
 
Top