Solved [Solved] cannot create lagg Failover Mode

Dear all,

I have 4 network card on my server and I wanted to set a Failover Mode.. but got the following error:
Code:
ifconfig: SIOCIFCREATE2: Invalid argument
To set it up here is what I did:
echo 'if_lagg_load=”YES”' >> /boot/loader.conf
shutdown -r now
Code:
root@trinity:~ # ifconfig bce0 up
root@trinity:~ # ifconfig bce1 up
root@trinity:~ # ifconfig lagg0 create

I'm not sure why this is happening. Do you have to have specific hardware setup to do this?
I use the home virgin superhub router.

Thank you
 
Re: cannot create lagg Failover Mode

I have a custom kernel that didn't include the lagg(). I recompiled the kernel with
Code:
device lagg
and managed to create my lagg0.
Could anyone tell me what IP I need to enter here:
Code:
ifconfig lagg0 up laggproto failover laggport bce0 laggport bce1 whatIPGoesHERE
 
SirDice said:
You assign the IP address to the lagg(4) interface, not the member interfaces.

Thank you SirDIce, I have set up the lagg and it is all working now.
If you don't mind me asking, does the member interfaces also need an IP address?
As far as my jails goes, In /etc/rc.conf, do I do
Code:
ifconfig_lagg0_alias0="inet 192.168.0.125 netmask 255.255.255.0"
OR
Code:
ifconfig_bce0_alias1="inet 192.168.0.130 netmask 255.255.255.0"

In /etc/pf.conf, Do I set
Code:
ext_if="bce0"
OR
Code:
ext_if="lagg0"

So far, none of my member interfaces has got an IP address and my etc/pf.conf is not yet setup but I would think it will be lagg0.

I'm only asking confirmation that my understanding is correct.

Fred
 
Back
Top