Setting up TrueNAS Scale for the first time. I have a network card with 2 10G SFP+ ports which I have connected to my TP-Link switch which also has 10G SFP+ ports.
Currently TrueNAS Scale shows two links (2 ip addresses) active, one for each 10G port. I am now trying to setup Link Aggregation.
On TP Link, I have added the two TrueNAS ports to LAG1.
I donât know what I am doing wrong. I also tried with CLI - network interface create... but even after committing the changes, the bond isnât created.
What am I missing?
I also checked kernel logs and found following logs
Sep 1 16:07:53 truenas kernel: ixgbe 0000:41:00.0: registered PHC device on enp65s0f0
Sep 1 16:07:53 truenas kernel: bond10: (slave enp65s0f0): Enslaving as a backup interface with a down link
Sep 1 16:07:53 truenas kernel: ixgbe 0000:41:00.0 enp65s0f0: detected SFP+: 3
Sep 1 16:07:53 truenas kernel: ixgbe 0000:41:00.1: registered PHC device on enp65s0f1
Sep 1 16:07:53 truenas kernel: ixgbe 0000:41:00.0 enp65s0f0: NIC Link is Up 10 Gbps, Flow Control: RX/TX
Sep 1 16:07:53 truenas kernel: bond10: (slave enp65s0f1): Enslaving as a backup interface with a down link
Sep 1 16:07:53 truenas kernel: bond10: Warning: No 802.3ad response from the link partner for any adapters in the bond
Sep 1 16:07:53 truenas kernel: bond10: (slave enp65s0f0): link status definitely up, 10000 Mbps full duplex
Sep 1 16:07:53 truenas kernel: bond10: active interface up!
Sep 1 16:07:53 truenas kernel: ixgbe 0000:41:00.1 enp65s0f1: detected SFP+: 4
Sep 1 16:07:53 truenas kernel: ixgbe 0000:41:00.1 enp65s0f1: NIC Link is Up 10 Gbps, Flow Control: RX/TX
Sep 1 16:07:53 truenas kernel: bond10: (slave enp65s0f1): link status definitely up, 10000 Mbps full duplex
Sep 1 16:08:54 truenas kernel: ixgbe 0000:41:00.0: removed PHC on enp65s0f0
Sep 1 16:08:55 truenas kernel: bond10: (slave enp65s0f0): link status definitely down, disabling slave
Sep 1 16:08:55 truenas kernel: bond10: active interface up!
Sep 1 16:08:55 truenas kernel: ixgbe 0000:41:00.0: registered PHC device on enp65s0f0
Sep 1 16:08:55 truenas kernel: bond10: (slave enp65s0f0): link status definitely down, disabling slave
Sep 1 16:08:55 truenas kernel: ixgbe 0000:41:00.1: removed PHC on enp65s0f1
Sep 1 16:08:55 truenas kernel: ixgbe 0000:41:00.0 enp65s0f0: detected SFP+: 3
Sep 1 16:08:55 truenas kernel: bond10: (slave enp65s0f1): link status definitely down, disabling slave
Sep 1 16:08:55 truenas kernel: bond10: now running without any active interface!
Sep 1 16:08:55 truenas kernel: ixgbe 0000:41:00.0 enp65s0f0: NIC Link is Up 10 Gbps, Flow Control: RX/TX
Sep 1 16:08:55 truenas kernel: ixgbe 0000:41:00.1: registered PHC device on enp65s0f1
Sep 1 16:08:55 truenas kernel: bond10: (slave enp65s0f0): link status definitely up, 10000 Mbps full duplex
Sep 1 16:08:55 truenas kernel: bond10: (slave enp65s0f1): link status definitely down, disabling slave
Sep 1 16:08:55 truenas kernel: bond10: active interface up!
Sep 1 16:08:56 truenas kernel: ixgbe 0000:41:00.1 enp65s0f1: detected SFP+: 4
Sep 1 16:08:56 truenas kernel: bond10 (unregistering): (slave enp65s0f0): Removing an active aggregator
Sep 1 16:08:56 truenas kernel: bond10 (unregistering): (slave enp65s0f0): Releasing backup interface
Sep 1 16:08:56 truenas kernel: ixgbe 0000:41:00.0: removed PHC on enp65s0f0
Sep 1 16:08:56 truenas kernel: ixgbe 0000:41:00.1 enp65s0f1: NIC Link is Up 10 Gbps, Flow Control: RX/TX
Sep 1 16:08:56 truenas kernel: bond10 (unregistering): (slave enp65s0f1): Releasing backup interface
Sep 1 16:08:56 truenas kernel: ixgbe 0000:41:00.1: removed PHC on enp65s0f1
Sep 1 16:08:56 truenas kernel: bond10 (unregistering): Released all slaves
Sep 1 16:08:58 truenas kernel: tg3 0000:46:00.1 eno2: Link is up at 1000 Mbps, full duplex
Sep 1 16:08:58 truenas kernel: tg3 0000:46:00.1 eno2: Flow control is off for TX and off for RX
Sep 1 16:08:58 truenas kernel: tg3 0000:46:00.1 eno2: EEE is disabled
I tried with and without connecting the interfaces to switch. My GUI is on eno2 and the bonded interfaces are unused for the entire setup. The link aggregation still doesnât work. I followed the post you shared but I am not sure what I am missing. Can you point me to specific section I am doing wrong?
Are these DHCP assigned IPs on your interfaces or static ones?
Also is your switch really capable of layer 2 and 3 hashing? Because my rather cheap HP switches at home only support layer 2. And when I had 2 and 3 enabled in Truenas my bond was behaving weirdly when setting it up until I limited Truenas to Layer 2 only.
You canât have Multiple interfaces on the same IP subnet⌠TrueNAS is confused about which interface to use outbound.
I am not sure how to fix this without creating VLANs. But I havenât read about this in the documentation you posted in the first message either. My question is - creating LACP bond will create one IP for both interfaces combined right? How would that work when interfaces are on separate subnets? Why is creating LAG1 group on my switch not sufficient? Also why does this restriction exist when Synology is able to create LACP bonds in same subnet (just an example)?
Are these DHCP assigned IPs on your interfaces or static ones?
Right now they are assigned via DHCP. But tried using static IP as well. Didnât work
Also is your switch really capable of layer 2 and 3 hashing?
Now weâre getting closer to the problem. There shouldnât be any settings for an ethernet port at all that you want to include in in bond group.
That your wanted members get an IP shows that thereâs something completely wrong wrong with you config.
So in order to get a working bond:
Go into the settings of enp65s0f0 and clean them completely out. They should look like for one of my bond members.
When they have been cleaned up hit the save button.
Do the same for enp65s0f1.
Now that you have clean interfaces you can join them for the bond. Hit the add button next to interfaces.
Type: Link Aggregation
Name: Something like bond0
Check DHCP and Autoconfigure IPv6 if you want automatically configured IPs.
Link Aggregation Protocol: LACP
Transmit Hash Policy: Layer2 only since the data sheet of your switch mentions this only under layer 2.
LACPDU Rate: SLOW
Link Aggregation Interfaces: Now select enp65s0f0 and enp65s0f1 as members there.
Aliases: If you havenât checked an automatic configuration for Ipv4 or IPv6 earlier you can set fixed IP addresses there.
Hit the save button.
Now also empty the settings for eno2 completely and hit save.
If you have DHCP configured itâs now time to open your DHPC serverâs client table.
Click the âtest settingsâ in Truenas and you should see another IPv4 getting assigned in your DHCPâs client table.
Try to open this IP (or the fixed one if you have done this) in your browser and after logging in you should see a working bond.
Itâs been quite a while since Iâve set up mine so itâs possible that thereâs also a final apply settings button. If yes click it.
Iâm having similar difficulties to the OP. I only have three interfaces on the motherboard (Supermicro X10SRH-CF). One for the IPMI and two that are assigned to the UI. I donât really see how I can clear out the Network settings as youâve described it in the UI because when I clear out the settings for eno1 and eno2 then test, I can no longer access the UI. This leaves KVM via the IPMI interface. I pressed 1 to configure network interfaces, cleared out eno1 and eno2, persist the changes and of course the IP addresses are no longer assigned. As soon as I press n to create a new interface, down arrow to Link_aggregation for the type and press space or enter the screen goes blank followed by a quick bunch of python errors and returns to the CLI menu, so that doesnât work either.
In my case, I followed the GUI instructions (posted above) and get to test the settings, enable the Link Aggregation Group on the Switch (Zyxel GS1900-48HPv2) but I get no IP address for the GUI.
Well, Iâm a little closer (maybe). By configuring the UI with a static IP address for the Link Aggregation I then see in the KVM that itâs assigning an IPv4, but that IP address isnât responding to pings or loading in the browser.
If I run ifconfig from the linux shell it gives me
Right, I see that, but your instructions were âGo into the settings of enp65s0f0 and clean them completely out. They should look like for one of my bond members.â At this point in the instructions, there is no bond and there is no trash can for eno1 or eno2. I can either reset them to defaults or edit them to make them look like your screenshot. Are you suggesting I clear them out like your screenshot and then create the bond before clicking test?
OK, I logged into the KVM using the IPMIView and walked through your instructions. I did not create a VLAN because I havenât been usingVLANs. Instead I just configured the alias.
On my managed switch, the LAGG setup is very simple in the UI. My two server ports are 47 and 48. Next, Finish, Save, Reboot, Confirm. Unless Iâm missing something, there doesnât seem to be anything to mess up. The ports function when not in a LAGG, so I donât think itâs a hardware issue.
The CLI says the TrueNAS UI is available at 192.168.1.13 but the browser times out trying to access the UI. The SMB shares are also not available. Ideas?