error in post, should not use "inet" keyword
SirDice said:
You need to add some options to
/etc/rc.conf:
Code:
ifconfig_em1="up"
ifconfig_em0="up"
cloned_interfaces="lagg0"
ifconfig_lagg0="laggproto failover laggport em0 laggport em1 [B]inet[/B] 1.2.3.4 netmask 255.255.255.224"
There is a severe error here, that cost me some time. If you put the "inet" keyword in there, failovers don't seem to ever happen. I tried it with "failover", "lacp" and "loadbalance", and with "inet" in there, it always failed. Without "inet" in there, I was happy with the result.
(Can a moderator edit the above post?)
See this thread, which is full of examples and never uses the "inet" keyword.
http://forums.freebsd.org/showthread.php?t=16718
If I included the word "inet" in there, it would always do something like this:
Starts up saying one (failover) or more (lacp/loadbalance) laggports are active. The ip address shown in ifconfig shows up as 67.215.77.132 (which is not what I set, but it matches the OpenDNS annoying lie value returned by any bogus dns query... not sure why this ip is there). But I can ping the IP I configured (to my surprise, since it is not listed in ifconfig). Then if I unplug the network cable, I can no longer ping, even when other interfaces are shown to be active in ifconfig.
When I remove "inet", it seems to work fine, although no matter which laggproto I use, there is a delay of a few seconds in between the disconnection and the next successful attempt. (I don't know if that is normal)
So I would correct the above to:
Code:
ifconfig_em1="up"
ifconfig_em0="up"
cloned_interfaces="lagg0"
ifconfig_lagg0="laggproto failover laggport em0 laggport em1 1.2.3.4 netmask 255.255.255.224"
It is a shame that the handbook page
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-aggregation.html does not have any static ip examples.