lagg problems

Markus Hoenicka markus.hoenicka at mhoenicka.de
Mon Jan 28 10:38:28 UTC 2013


Hi,

[I've posted this to the freebsd-questions list previously but the  
problem was not resolved. In any case my apologies if you see this  
request twice]

I'd like to use both ethernet and wlan, whichever is available, with
my laptop. In many cases I prefer wlan at home as I'm not tethered and
performance is good enough. However, in some cases I prefer to connect
to a switch via ethernet to have faster connection to a desktop PC.

I followed these instructions:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-aggregation.html

Specifically, I use the rc.conf entries mentioned in the box at the
very bottom on the page, except that my ethernet interface is re0
instead of bge0. The lagg module is loaded during boot using an
appropriate entry in /boot/loader.conf.

Things almost work:

boot with ethernet plugged in, ethernet still in: connected via ethernet
boot with ethernet plugged in, ethernet out: connected via wlan
boot with ethernet unplugged, ethernet still out: connected via wlan
boot with ethernet unplugged, ethernet in: no connection

What bothers me is the last scenario: this would force me to boot with
ethernet plugged in whenever I intend to use ethernet in the same
session.  Is this expected behaviour? Is there a way to fix this?

The relevant config files are attached below.

regards,
Markus

/boot/loader.conf:

verbose_loading="YES" # print verbose loader output during boot
coretemp_load="YES" # intel temp sensor support
hw.psm.synaptics_support="1" # improved touchpad support
atapicam_load="YES" # access CD drive through SCSI subsystem
cuse4bsd_load="YES" # required for webcamd
sem_load="YES" # required by firefox for displaying HTML5
if_lagg_load="YES" #link aggregation


/etc/rc.conf:

hostname="wombat.mininet"
ifconfig_re0="up"
ifconfig_iwn0="ether 00:1e:33:26:4c:3e"
wlans_iwn0="wlan0"
ifconfig_wlan0="WPA"
cloned_interfaces="lagg0"
ifconfig_lagg0="laggproto failover laggport re0 laggport wlan0 DHCP"
sshd_enable="YES"
moused_enable="NO"
powerd_enable="YES"
powerd_flags="-a max -b adaptive -i 90"
cupsd_enable="YES"
mysql_enable="YES"
linux_enable="YES"
dbus_enable="YES"
hald_enable="NO"
anacron_enable="YES"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="NO"
# -- sysinstall generated deltas -- # Thu Feb 16 22:33:22 2012
rpcbind_enable="YES"
rpc_statd_enable="YES"
rpc_lockd_enable="YES"
nfs_server_enable="YES"
nfs_client_enable="YES"
devfs_system_ruleset="localrules"
fusefs_enable="YES"

-- 
Markus Hoenicka
http://www.mhoenicka.de
AQ score 38




More information about the freebsd-mobile mailing list