lagg0 setup with usb interface

I have a Lenovo X390, and sometimes connect a docking station with wired Ethernet via USB-C. I have followed the handbook to setup the lagg0 interface to give me failover for the wifi and this usb network connection, but I am struggling to get the usb connection recognised. This is what I have in my /etc/rc.conf:
Code:
# Set up lagg0 interface for wifi/ethernet fail over
ifconfig_ue0="ether 58:96:1d:5a:01:90"  # Set the MAC to equal wlan0 interface
wlans_iwm0="wlan0"                      # Configure the wlan0 interface
ifconfig_wlan0="WPA"
create_args_wlan0="country GB regdomain ETSI"  # Based in the UK

cloned_interfaces="lagg0"               # failover interface
ifconfig_lagg0="up laggproto failover laggport ue0 laggport wlan0 DHCP"

ifconfig lagg gives:
Code:
lagg0: flags=1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500
    options=0
    ether 58:96:1d:5a:01:90
    hwaddr 00:00:00:00:00:00
    inet 10.1.1.167 netmask 0xffffff00 broadcast 10.1.1.255
    laggproto failover lagghash l2,l3,l4
    laggport: wlan0 flags=5<MASTER,ACTIVE>
    groups: lagg
    media: Ethernet autoselect
    status: active
    nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>

So you can see the lagg0 interface only has the wlan0 interface listed.
If I run ifconfig ue0, I get this:
Code:
ue0: flags=1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500
    options=68009b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
    ether 58:96:1d:5a:01:90
    hwaddr 48:2a:e3:6f:aa:a5
    media: Ethernet autoselect (1000baseT <full-duplex>)
    status: active
    nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
- it seems to be up and active.

Have I missed something significant in my setup? I have read, and re-read and checked the handbook before posting, so would appreciate your comments!

Many thanks!
 
Have you tried to destroy lagg0 and recreate one named lagg1 with the same?
ifconfig lagg1 up laggproto failover laggport ue0 laggport wlan0
Then: dhclient lagg1

Did ue0 exist when lagg0 was being configured during startup, that's the question.
It's exactly what I was thinking.
 
Thanks gentlemen - that worked:
Code:
# ifconfig lagg0 destroy
# ifconfig lagg1 create
# ifconfig lagg1 up laggproto failover laggport ue0 laggport wlan0
# dhclient lagg1
DHCPDISCOVER on lagg1 to 255.255.255.255 port 67 interval 8
DHCPOFFER from 10.1.1.1
DHCPREQUEST on lagg1 to 255.255.255.255 port 67
DHCPACK from 10.1.1.1
bound to 10.1.1.167 -- renewal in 3600 seconds.

Then ifconfig lagg1 shows:
Code:
lagg1: flags=1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500
    options=0
    ether 58:96:1d:5a:01:90
    hwaddr 00:00:00:00:00:00
    inet 10.1.1.167 netmask 0xffffff00 broadcast 10.1.1.255
    laggproto failover lagghash l2,l3,l4
    laggport: wlan0 flags=0<>
    laggport: ue0 flags=5<MASTER,ACTIVE>
    groups: lagg
    media: Ethernet autoselect
    status: active
    nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
I do also see the wifi has not reconnected:
Code:
wlan0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
    options=0
    ether 58:96:1d:5a:01:90
    groups: wlan
    ssid "" channel 40 (5200 MHz 11a)
    regdomain ETSI country GB authmode WPA2/802.11i privacy ON
    deftxkey UNDEF AES-CCM 2:128-bit AES-CCM 3:128-bit txpower 17 bmiss 10
    mcastrate 6 mgmtrate 6 scanvalid 60 wme roaming MANUAL
    parent interface: iwm0
    media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
    status: no carrier
    nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
ue0: flags=1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500
    options=80088<VLAN_MTU,VLAN_HWCSUM,LINKSTATE>
    ether 58:96:1d:5a:01:90
    hwaddr 48:2a:e3:6f:aa:a5
    media: Ethernet autoselect (1000baseT <full-duplex>)
    status: active
    nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
but I am not sure of the relevance of that, nor whether I can connect it in the usual manner once it is part of the lagg?

How can I make sure ue0 exists when the lagg0 interface is created? This interface is over the usb to the docking station, but the cable was in when the computer was booted. I do know that there is no interface existing if the cable is not connected, so I guess that would also be a problem if the computer is booted with the cable disconnected. There is a "permanent" wired ethernet port, but it isn't using an RJ45 socket. I have ordered the adaptor from a supplier so I can connect an RJ45 in the future. However, I quite like the docking station convenience when using the laptop on a desk, so it would be good to get this working even if the cable is not connected at boot time.
 
Actually, my problem is also discussed here. It looks like the solution is to restart the lagg0 interface after networking is up. I just need to clarify when the ue0 interface is available for aggregation, and dee how I can run it when the ue0 is created if the cable is plugged in at a later time.
 
Back
Top