Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
laggdiskless [2020/08/21 21:30] – Note wlan changes have broken this. peterjeremylaggdiskless [2020/08/21 22:32] (current) – Document updated lagg configuration. peterjeremy
Line 1: Line 1:
 ====== Using lagg(4) with diskless booting ====== ====== Using lagg(4) with diskless booting ======
- 
-Note that the following instructions rely on the visibility of a network device associated with the WiFi adapter (ath0 below).  Recent changes to the WiFi subsystem 
-have hidden that device and so the following wired/WiFi lagg setup no longer works. 
  
 The lagg interface enables transparent failover between (eg) wired & wifi interfaces - making it trivial to combine the flexibility of walking around the house without any cables with the throughput of a wired interface by simply connecting and disconnecting the LAN cable. The lagg interface enables transparent failover between (eg) wired & wifi interfaces - making it trivial to combine the flexibility of walking around the house without any cables with the throughput of a wired interface by simply connecting and disconnecting the LAN cable.
  
-For a normal boot environment, this is as simple as placing something like the following in ''/etc/rc.conf'':+For a normal boot environment, this is as simple as placing something like the following in ''/etc/rc.conf'' (old wlan software):
   ifconfig_re0="up"   ifconfig_re0="up"
   ifconfig_ath0="ether 00:1e:68:aa:bb:cc"  # Set WiFi MAC address to match wired MAC address   ifconfig_ath0="ether 00:1e:68:aa:bb:cc"  # Set WiFi MAC address to match wired MAC address
Line 14: Line 11:
   ifconfig_lagg0="SYNCDHCP laggproto failover laggport re0 laggport wlan0"   ifconfig_lagg0="SYNCDHCP laggproto failover laggport re0 laggport wlan0"
  
-If you have multiple boxes available, supporting diskless booting provides a convenient way to install, upgrade or recover systems.  It can also provide a convenient way to test a planned upgrade without installing the upgrade onto the target host.  One downside of diskless booting is that the root filesystem is NFS mounted via the boot interface and it's not possible to PXE boot from a WiFi or lagg interface.  Whilst you would typically want the performance of a wired interface for installing/upgrading/recovering, lagg support is important for regression testing and can make installing/upgrading/recovering more convenient.  Following some experimentation, I came up with the following configuration:+With recent wlan software, ath0 is no longer visible so it's necessary to instead attach the WiFi MAC address to the wired NIC 
 +and explicitly use the WiFi MAC address as the lagg address: 
 +  ifconfig_re0="ether 00:1e:68:aa:bb:cc"   # Set Wired MAC address to match WiFi adapter 
 +  wlans_ath0="wlan0" 
 +  ifconfig_wlan0="WPA" 
 +  cloned_interfaces="lagg0" 
 +  create_args_lagg0="ether 00:1e:68:aa:bb:cc laggproto failover" 
 +  ifconfig_lagg0="SYNCDHCP laggport re0 laggport wlan0" 
 + 
 + 
 +If you have multiple boxes available, supporting diskless booting provides a convenient way to install, upgrade or recover systems.  It can also provide a convenient way to test a planned upgrade without installing the upgrade onto the target host.  One downside of diskless booting is that the root filesystem is NFS mounted via the boot interface and it's not possible to PXE boot from a WiFi or lagg interface.  Whilst you would typically want the performance of a wired interface for installing/upgrading/recovering, lagg support is important for regression testing and can make installing/upgrading/recovering more convenient.  Following some experimentation, I came up with the following configuration.  Whilst I haven't tried this since updating to the new wlan software, making changes equivalent to 
 +the above should work:
  
 Host configuration for ISC dhcpd 3.1: Host configuration for ISC dhcpd 3.1:
laggdiskless.txt · Last modified: 2020/08/21 22:32 by peterjeremy
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki