add 2nd card for failover with same IP

webstyler

Explorer
Joined
May 16, 2012
Messages
56
Hello

we would add 2nd network card and use for failover.

network will be connect to 2 different switch.

truenas can manage this but with 1 single IP for both, and manage as active/passive ?

Thanks
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
Yes.

You'll need to understand what you're doing quite well first, but adding a Link Aggregation interface under Network | Interfaces is what you'll be doing.

It should go something like this:

Code:
Physical NIC 1 --\
                   --LAGG Interface -- VLAN(s) if you're going to have them -- Bridge (with IP Address)
Physical NIC 2 --/


You would select the LAGG type to be Failover to get what you're asking for.

You need to make sure the switches support what you're doing and are set correctly for the ports you use.

You should use identical NICs.
 

webstyler

Explorer
Joined
May 16, 2012
Messages
56
Yes.

You'll need to understand what you're doing quite well first, but adding a Link Aggregation interface under Network | Interfaces is what you'll be doing.

It should go something like this:

Code:
Physical NIC 1 --\
                   --LAGG Interface -- VLAN(s) if you're going to have them -- Bridge (with IP Address)
Physical NIC 2 --/


You would select the LAGG type to be Failover to get what you're asking for.

You need to make sure the switches support what you're doing and are set correctly for the ports you use.

You should use identical NICs.
Thanks sretalla, it's exactly what we need.

Only a question about "the switches support what you're doing and are set correctly for the ports you use"..
We ohter solutions we manage failover on the source, and not on the switches.

Ex.
nic0 -> switch0
nic1 -> switch1

if nic0 failed all traffic go on nic1
if switch0 failed all traffic go on nic2

so this may be managed by truenas, with primary nic (nic0).. if failed (nic or switch) go on nic1

this the scenario :)

thanks
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
It may well be that in failover mode the switch can be "unaware" of the Link Aggregation going on... I'm not sure though, so do your research or at least test it before relying on it.
 
Top