Re: Failover Mode between ether/wlan panics
- In reply to: Mario Lobo : "Re: Failover Mode between ether/wlan panics"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 01 Aug 2022 16:55:49 UTC
On Mon, Aug 1, 2022 at 1:30 PM Mario Lobo <lobo@bsd.com.br> wrote:
>
>
> On Mon, Aug 1, 2022, 11:01 Nuno Teixeira <eduardo@freebsd.org> wrote:
>
>> Hi,
>>
>> Something is wrong about getting ether and wlan mac adresses.
>> dmesg shows the same address:
>> ---
>> iwlwifi0: Detected Intel(R) Wi-Fi 6 AX201 160MHz, REV=0x351
>> iwlwifi0: base HW address: 6c:6a:77:df:09:21
>> (...)
>> re0: <RealTek 8168/8111 B/C/CP/D/DP/E/F/G PCIe Gigabit Ethernet> port
>> 0x3000-0x30ff mem 0xb4204000-0xb4204fff,0xb4200000-0xb4203fff at device 0.0
>> on pci3
>> re0: Ethernet address: 6c:6a:77:df:09:21
>> ---
>> and ifconfig shows:
>> ---
>> re0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
>>
>> options=8209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>
>> ether 6c:6a:77:df:09:21
>> media: Ethernet autoselect (100baseTX <full-duplex>)
>> status: active
>> nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
>> lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
>> options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
>> inet6 ::1 prefixlen 128
>> inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
>> inet 127.0.0.1 netmask 0xff000000
>> groups: lo
>> nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
>> wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu
>> 1500
>> ether 6c:6a:77:df:09:21
>> inet 192.168.1.74 netmask 0xffffff00 broadcast 192.168.1.255
>> groups: wlan
>> ssid MEO-3637C0 channel 1 (2412 MHz 11g) bssid 00:06:91:36:37:c0
>> regdomain ETSI country PT authmode WPA2/802.11i privacy ON
>> deftxkey UNDEF AES-CCM 2:128-bit txpower 30 bmiss 7 scanvalid 60
>> protmode CTS wme roaming MANUAL
>> parent interface: iwlwifi0
>> media: IEEE 802.11 Wireless Ethernet OFDM/24Mbps mode 11g
>> status: associated
>> nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
>> ---
>>
>> I disabled wireless at bios and same mac address for ethernet.
>> I don't see a possibility of both cards sharing same mac address...
>>
>> Cheers
>>
>> Mario Lobo <lobo@bsd.com.br> escreveu no dia segunda, 1/08/2022 à(s)
>> 13:15:
>>
>>>
>>> On Sun, Jul 31, 2022, 21:05 Nuno Teixeira <eduardo@freebsd.org> wrote:
>>>
>>>> Hello,
>>>>
>>>> I'm trying to setup a failover mode ethernet/wireless as shown in
>>>> https://docs.freebsd.org/en/books/handbook/book/#networking-lagg-wired-and-wireless
>>>> and I got a panic.
>>>>
>>>> /etc/rc.conf:
>>>> ---
>>>> ifconfig_re0="ether <wlan0 mac address>"
>>>> wlans_iwlwifi0="wlan0"
>>>> ifconfig_wlan0="WPA"
>>>> create_args_wlan0="country PT"
>>>> cloned_interfaces="lagg0"
>>>> ifconfig_lagg0="up laggproto failover laggport re0 laggport wlan0 DHCP"
>>>> ---
>>>>
>>>> Any ideas of what's wrong?
>>>> BTW, no kernel dump and I have dumpdev="AUTO" in /etc/rc.conf...
>>>>
>>>> Thanks in advance,
>>>> Nuno Teixeira
>>>>
>>>
>>> Hi.
>>>
>>> For this to work, you'll have to clone your wifi MAC to your eth MAC.
>>>
>>
> Your lagg0 interface is missing.
>
>>
Here is my ifconfig:
[~]>ifconfig
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=80088<VLAN_MTU,VLAN_HWCSUM,LINKSTATE>
ether f8:94:c2:26:f3:54
hwaddr fc:45:96:fb:3d:82
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
inet 127.0.0.1 netmask 0xff000000
groups: lo
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
vboxnet0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 0a:00:27:00:00:00
media: Ethernet autoselect
status: active
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
wlan0: flags=8c43<UP,BROADCAST,RUNNING,OACTIVE,SIMPLEX,MULTICAST> metric 0
mtu 1500
ether f8:94:c2:26:f3:54
groups: wlan
ssid "" channel 1 (2412 MHz 11g)
regdomain FCC country US authmode WPA1+WPA2/802.11i privacy MIXED
deftxkey UNDEF powersavemode CAM powersavesleep 100 txpower 30
bmiss 10 scanvalid 60 protmode CTS wme roaming MANUAL
parent interface: iwm0
media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
status: no carrier
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
lagg0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether f8:94:c2:26:f3:54
inet6 fe80::fa94:c2ff:fe26:f354%lagg0 prefixlen 64 scopeid 0x5
inet 10.17.12.215 netmask 0xffffff00 broadcast 10.17.12.255
laggproto failover lagghash l2,l3,l4
laggport: re0 flags=5<MASTER,ACTIVE>
laggport: wlan0 flags=0<>
groups: lagg
media: Ethernet autoselect
status: active
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
And here is my rc.conf:
ifconfig_wlan0="mode autoselect WPA powersave up"
wlans_iwm0="wlan0"
wpa_supplicant_enable="YES"
wpa_supplicant_program="/usr/local/sbin/wpa_supplicant"
wpa_supplicant_flags="-dd"
ifconfig_re0="media 1000baseTX mediaopt full-duplex up"
ifconfig_re0="ether f8:94:c2:26:f3:54"
ifconfig_lagg0="up laggproto failover laggport re0 laggport wlan0 DHCP"
cloned_interfaces="lagg0"
--
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since version 2.2.8 [not Pro-Audio.... YET!!]