I have finally achieved lagg+wifi on bridge
2 ports wired gigabit ethernet for lagg0 to SG300-10
1 Atheros Module in hostapd mode for Wireless AP and DHCP passthru.
Bridged wlan0 and lagg0.
I fought this all day. I can not get DHCP to fire on the bridge0. SYNCDHCP either. See commented line.
Neither worked:
ifconfig_bridge0_alias0="SYNCDHCP"
Or this:
ifconfig_bridge0="addm lagg0 addm wlan0 SYNCDHCP"
Or this:
ifconfig_bridge0="addm lagg0 addm wlan0 DHCP"
The solution /etc/rc.conf as shown and added
I might have been able to use netwait. I think that the bridge was not coming up on time.
This was my first try at bridging LAGG. Usually I would just bridge LAN0 and WLAN0.
I almost gave up and went with pf NAT. I just wanted to see if I could get a bridge to work.
2 ports wired gigabit ethernet for lagg0 to SG300-10
1 Atheros Module in hostapd mode for Wireless AP and DHCP passthru.
Bridged wlan0 and lagg0.
I fought this all day. I can not get DHCP to fire on the bridge0. SYNCDHCP either. See commented line.
Code:
### Networking ###
cloned_interfaces="lagg0 bridge0"
ifconfig_igb0="up"
ifconfig_igb1="up"
ifconfig_lagg0="laggproto roundrobin laggport igb0 laggport igb1 up"
ifconfig_bridge0="addm lagg0 addm wlan0 up"
#ifconfig_bridge0_alias0="SYNCDHCP"
#
#### Wireless AP ####
wlans_ath0="wlan0"
ifconfig_wlan0="up mtu 1500"
create_args_wlan0="wlanmode hostap country US ssid apu2fs channel 149"
hostapd_enable="YES"
defaultrouter="192.168.1.1"
gateway_enable="YES"
#
Neither worked:
ifconfig_bridge0_alias0="SYNCDHCP"
Or this:
ifconfig_bridge0="addm lagg0 addm wlan0 SYNCDHCP"
Or this:
ifconfig_bridge0="addm lagg0 addm wlan0 DHCP"
The solution /etc/rc.conf as shown and added
dhclient bridge0
to /etc/rc.localI might have been able to use netwait. I think that the bridge was not coming up on time.
This was my first try at bridging LAGG. Usually I would just bridge LAN0 and WLAN0.
I almost gave up and went with pf NAT. I just wanted to see if I could get a bridge to work.