IP estático para wlan0 não funciona com systemd-networkd

1

Eu preciso de um IP estático para um Linux que rode em Poky (Yocto Project Reference Distro) 1.7.3.

Tudo funciona com o DHCP. Agora eu tento usar a configuração de rede para wlan0 para obter IP estático, mas não funciona. Eu sigo os exemplos aqui: link Minha wlan0.network é assim:

[Match]
Name=wlan0

[Network]
Address=192.168.10.111
Gateway=192.168.10.1

Após a reinicialização, ainda recebo IP por DHCP (102.168.10.102, por exemplo).

Ele funciona se eu faço: ifconfig wlan0 192.168.10.111

O que poderia estar errado, por que não funciona com o arquivo de configuração da rede?

journalctl | grep wlan

dá:

Jul 13 13:07:33 reach kernel: vwlan gpio 96
Jul 13 13:07:33 reach kernel: vwlan: 1800 mV 
Jul 13 13:07:33 reach kernel: found wifi platform device wlan
Jul 13 13:07:34 reach kernel: Register interface [wlan0]  MAC: 00:00:00:00:00:00
Jul 13 13:07:38 reach systemd-networkd[186]:            wlan0: gained carrier
Jul 13 13:07:38 reach systemd-networkd[186]:            wlan0: could not set route: Network is unreachable
Jul 13 13:07:38 reach systemd-networkd[186]:            wlan0: link configured
Jul 13 13:07:38 reach mDNSResponder[227]: mDNSPlatformSendUDP got error 99 (Cannot assign requested address) sending packet to FF02:0000:0000:0000:0000:0000:0000:00FB on interface FE80:0000:0000:0000:92B6:86FF:FE06:D3F3/wlan0/3
Jul 13 13:07:38 reach mDNSResponder[227]: mDNSPlatformSendUDP got error 99 (Cannot assign requested address) sending packet to FF02:0000:0000:0000:0000:0000:0000:00FB on interface FE80:0000:0000:0000:92B6:86FF:FE06:D3F3/wlan0/3
Jul 13 13:07:38 reach mDNSResponder[227]: mDNSPlatformSendUDP got error 99 (Cannot assign requested address) sending packet to FF02:0000:0000:0000:0000:0000:0000:00FB on interface FE80:0000:0000:0000:92B6:86FF:FE06:D3F3/wlan0/3
Jul 13 13:07:45 reach systemd[1]: wpa_supplicant_wlan0_event.service: main process exited, code=exited, status=255/n/a
Jul 13 13:07:45 reach wpa_cli[312]: Failed to connect to non-global ctrl_ifname: wlan0  error: No such file or directory
Jul 13 13:07:45 reach systemd[1]: Unit wpa_supplicant_wlan0_event.service entered failed state.
Jul 13 13:07:46 reach systemd-networkd[186]:            wlan0: lost carrier
Jul 13 13:07:46 reach wpa_cli[317]: Failed to connect to non-global ctrl_ifname: p2p-dev-wlan0  error: No such file or directory
Jul 13 13:07:46 reach systemd[1]: wpa_supplicant_wlan0_event.service holdoff time over, scheduling restart.
Jul 13 13:07:50 reach systemd-networkd[186]:            wlan0: gained carrier
    
por Ago 13.07.2017 / 15:21

0 respostas