Well, that was fun.
So, here is what I have that works. Yep, it's ugly.
In
/etc/rc.conf
Code:
ifconfig_igb0="up"
ifconfig_igb1="up"
cloned_interfaces="lagg0"
ifconfig_lagg0="laggproto failover laggport igb0 laggport igb1 inet ###.###.###.###/29 up"
ifconfig_lagg0_ipv6="inet6 ####:###:####:####::###/64"
defaultrouter="###.###.###.###"
ipv6_defaultrouter="####:###:####:####::1"
Essentially everything after
laggport igb1 on the ifconfig_lagg0 line appears to be totally ignored, thus the
defaultrouter line is ignored as well. No changes I made would ever get me an IPv4 address on lagg0 if I made them in
/etc/rc.conf, it would always come up with just the IPv6 address and IPv6 default route ... so ...
I decided to try adding the IPv4 configuration via
/etc/rc.local after everything else was up and running. That does work, but like I said, it's ugly. Here is what had to be in
/etc/rc.local
Code:
/sbin/ifconfig lagg0 inet ###.###.###.###/29
/sbin/route add default ###.###.###.###
/bin/sleep 1
/sbin/pfctl -F all -f /etc/pf.conf
Bottom line is, it is doable. But I really would like a cleaner way to do this all in
/etc/rc.conf. I have about 2 weeks before I have to do this on the production server. If anyone comes up with a working configuration for this all in
/etc/rc.local before then, I would honestly like to see it. Heck, I will order a pizza delivered to the address of your choice if you wish!