Damus
Justine Smithies profile picture
Justine Smithies
@Justine Smithies
I've got a weird issue on my #FreeBSD ThinkPad. Since setting up lagg yesterday which worked fine. I powered off last night and then switched it on this morning. I noticed that I had no network access on either the re1 interface or wlan0. I powered off and on and it worked. I have since discovered that if it doesn't work if I just doas service netif restart it starts to work again.

This is my lagg setup in /etc/rc.conf

# WiFi
wlans_iwlwifi0="wlan0"
ifconfig_wlan0="WPA SYNCDHCP"
cloned_interfaces="lagg0"
ifconfig_lagg0="up laggproto failover laggport re1 laggport wlan0 DHCP"
This is the output of ifconfig when it's working:

re0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>
ether 8c:8c:aa:bd:bb:f0
media: Ethernet autoselect (none)
status: no carrier
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
re1: flags=1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500
options=80088<VLAN_MTU,VLAN_HWCSUM,LINKSTATE>
ether 8c:8c:aa:bd:bb:ef
inet 192.168.0.194 netmask 0xffffff00 broadcast 192.168.0.255
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
lo0: flags=1008049<UP,LOOPBACK,RUNNING,MULTICAST,LOWER_UP> metric 0 mtu 16384
options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
inet 127.0.0.1 netmask 0xff000000
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
groups: lo
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
wlan0: flags=1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500
options=0
ether 8c:8c:aa:bd:bb:ef
hwaddr 70:9c:d1:af:ad:93
inet 192.168.0.194 netmask 0xffffff00 broadcast 192.168.0.255
groups: wlan
ssid Smithies channel 40 (5200 MHz 11a vht/80-) bssid f0:9f:c2:ab:8d:c3
regdomain FCC country US authmode WPA2/802.11i privacy ON
deftxkey UNDEF AES-CCM 2:128-bit AES-CCM ucast:128-bit txpower 17
bmiss 7 mcastrate 6 mgmtrate 6 scanvalid 60 ampdulimit 64k
ampdudensity 8 -amsdutx amsdurx shortgi -ldpctx ldpcrx -uapsd vht
vht40 vht80 vht160 -vht80p80 wme roaming MANUAL
parent interface: iwlwifi0
media: IEEE 802.11 Wireless Ethernet VHT mode 11ac
status: associated
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
lagg0: flags=1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500
options=0
ether 8c:8c:aa:bd:bb:ef
hwaddr 00:00:00:00:00:00
inet 192.168.0.194 netmask 0xffffff00 broadcast 192.168.0.255
laggproto failover lagghash l2,l3,l4
laggport: re1 flags=5<MASTER,ACTIVE>
laggport: wlan0 flags=0<>
groups: lagg
media: Ethernet autoselect
status: active
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
This is the output when not working on first boot:

lo0: flags=8048<LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
groups: lo
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
re0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>
ether 8c:8c:aa:bd:bb:f0
media: Ethernet autoselect (none)
status: no carrier
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
re1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=80088<VLAN_MTU,VLAN_HWCSUM,LINKSTATE>
ether 8c:8c:aa:bd:bb:ef
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
wlan0: flags=8c02<BROADCAST,DRV_OACTIVE,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=0
ether 8c:8c:aa:bd:bb:ef
hwaddr 70:9c:d1:af:ad:93
groups: wlan
ssid "" channel 40 (5200 MHz 11a vht/80-)
regdomain FCC country US authmode OPEN privacy OFF txpower 17 bmiss 7
mcastrate 6 mgmtrate 6 scanvalid 60 ampdulimit 8k -amsdutx amsdurx
shortgi -ldpctx ldpcrx -uapsd vht vht40 vht80 vht160 -vht80p80 wme
parent interface: iwlwifi0
media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
status: no carrier
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
lagg0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=0
ether 8c:8c:aa:bd:bb:ef
hwaddr 00:00:00:00:00:00
laggproto failover lagghash l2,l3,l4
laggport: re1 flags=1<MASTER>
laggport: wlan0 flags=0<>
groups: lagg
media: Ethernet autoselect
status: no carrier
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>

Any ideas ??
3
Justine Smithies · 4w
I have noticed that if I run doas service netif restart once it's working it then fails with network is down. But restarting netif gets it going again ????? Very strange.
TomAoki · 4w
nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpqw65rptwmg7gr50yqjdmje49s8kfk4e95hwqgzr2zqpfynjzt29lq9thl5m I'm not configuring #lagg for years, so things could be changed, but when I've configured lagg for failover before, MAC addresses of all member interfaces needed to be exactly the same....
KaiXin · 4w
nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpqw65rptwmg7gr50yqjdmje49s8kfk4e95hwqgzr2zqpfynjzt29lq9thl5m nostr:nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpqwmcv79gukwrgy8msjddzuy63tsfuxqvtupyc62la8l2590evqz5qyhmp2a https://mastodon.bsd.cafe/users/evgandr/statuses/115985853500057386 Cou...