b745 lagg failover config problem using wlan and a static ip address. - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Server & Networking > Networking

Networking Network related discussions (including general TCP/IP stuff, routing, etc).

Reply
 
Thread Tools Display Modes
  #1  
Old February 14th, 2010, 01:40
aikiPupil aikiPupil is offline
Junior Member
 
Join Date: Jan 2010
Posts: 11
Thanks: 1
Thanked 0 Times in 0 Posts
Default lagg failover config problem using wlan and a static ip address.

I am unable to get the Link Aggregation and Link failover interface (LAGG) configured correctly.

I need to be able to use this interface with a static ip address. The following are the config settings I am using:

Code:
cat /boot/loader.conf

bwi_v3_ucode_load="YES"
if_bwi_load="YES"
wlan_scan_ap_load="YES"
wlan_scan_sta_load="YES"
wlan_wep_load="YES"
wlan_ccmp_load="YES"
wlan_tkip_load="YES"
if_vlan_load="YES"
if_lagg_load="YES"
Code:
cat /etc/rc.conf
hostname=mob-ss1771
sshd_enable="YES"
hald_enable="YES"
dbus_enable="YES"
tcp_extensions="YES"
wpa_supplicant_enable="YES"
wpa_supplicant_conf_file="/etc/wpa_supplicant.conf"
#Set the bwi wireless adapters MAC address to the bfe mac address for use in the lagg failover interface
ifconfig_bwi0="ether 00:0d:56:33:99:c8"
vaps_bwi0="wlan0"
wlans_bwi0="wlan0"
ifconfig_wlan0="WPA"
ifconfig_bfe0="up"
cloned_interfaces="lagg0"
ifconfig_lagg0="laggproto failover laggport bfe0 laggport wlan0 inet 192.168.0.10 netmask 255.255.255.0"
#ifconfig_lagg0_ipv4="192.168.0.10"
#ipv4_addrs_lagg0="192.168.0.10"
defaultrouter=192.168.0.1
network_interfaces=lagg0
Code:
ifconfig

bfe0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=8<VLAN_MTU>
        ether 00:0d:56:33:99:c8
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active

bwi0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 2290
        ether 00:0d:56:33:99:c8
        media: IEEE 802.11 Wireless Ethernet autoselect mode 11g
        status: associated

lagg0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=8<VLAN_MTU>
        ether 00:0d:56:33:99:c8
        media: Ethernet autoselect
        status: active
        laggproto failover
        laggport: bfe0 flags=5<MASTER,ACTIVE>
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 00:0d:56:33:99:c8
        media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
        status: no carrier
        ssid "" channel 10 (2457 Mhz 11g)
        country US authmode WPA1+WPA2/802.11i privacy ON deftxkey UNDEF
        txpower 0 bmiss 7 scanvalid 450 bgscan bgscanintvl 300 bgscanidle 250
        roam:rssi 7 roam:rate 5 protmode CTS roaming MANUAL bintval 0

A couple interesting things I see above:
1.) wlan0 shows status: no carrier
2.) There is not a second laggport declaration for the wlan0

Is there something obviously wrong with my configuration here or is there a known issue with this type of setup?

Thanks in advance for any help on this.
Reply With Quote
  #2  
Old August 15th, 2010, 17:16
arondiehl arondiehl is offline
Junior Member
 
Join Date: Aug 2010
Posts: 2
Thanks: 2
Thanked 0 Times in 0 Posts
Default

I used to have the same problem.

I followed the steps described in the handbook.

The entry in my /etc/rc.conf looks like this:
Code:
# network settings
ifconfig_wpi0="ether xx:xx:xx:xx:xx:xx"
wlans_wpi0="wlan0"
ifconfig_wlan0="WPA"
ifconfig_re0="up"
cloned_interfaces="lagg0"
ifconfig_lagg0="laggproto failover laggport re0 laggport wlan0 DHCP"
$ ifconfig
showed that an interface named lagg0 was created, but it only had re0 (ethernet) as a laggport.

The wlan0 interface was up and connected, however. Maybe wlan0 is being created after lagg0.

After executing
# ifconfig lagg0 laggport wlan0
both interfaces showed up as laggports under lagg0 and provided failover functionality as expected.

Maybe wlan0 is created after lagg0 and thus not recognized.

To have this working right after booting my laptop I added the following to /etc/crontab:
Code:
@reboot root    /sbin/ifconfig lagg0 laggport wlan0
This is only a workaround, but until someone comes up with a better (read: cleaner) solution this works for me.
Reply With Quote
  #3  
Old August 16th, 2010, 05:05
loop loop is offline
Junior Member
 
Join Date: Nov 2008
Posts: 52
Thanks: 5
Thanked 3 Times in 3 Posts
Default

This works for me:
Code:
# Setup auto failover between wired and wireless
ifconfig_em0="UP"
ifconfig_iwi0="ether 00:11:25:49:ff:60"
wlans_iwi0="wlan0"
ifconfig_wlan0="WPA"
cloned_interfaces="lagg0"
ifconfig_lagg0="laggproto failover laggport em0 laggport wlan0 DHCP up"
Reply With Quote
The Following User Says Thank You to loop For This Useful Post:
arondiehl (August 16th, 2010)
Reply

Tags
lagg, networking, static ip address, wlan

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Solved] Problem with apache config file dpalme Web & Network Services 10 December 14th, 2009 22:12
nic failover / bonding blah Networking 8 August 26th, 2009 19:56
Kernel Config Problem iic2 Installing & Upgrading 13 June 1st, 2009 23:21
bind address problem with jboss4 vlad2005 Web & Network Services 0 December 6th, 2008 20:31
Recommended solution for server failover jer Networking 3 November 25th, 2008 08:19


All times are GMT +1. The time now is 16:17.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0