Score:0

Wifi and Lan access point with netplan not working. v20.04

in flag

I'm trying to build a micro-network for some IoT wired and wireless devices using a Nuc server. So the NUC has one (or two) dedicated rj45 ports for it and the main wifi interface, and the main rj45 port (enp0s25) will be the upstream to the main lan.

So far I've installed and setup Hostapd like this:

country_code=ES
interface=wlp2s0
# bridge=br0
ssid=myssid
hw_mode=g
ieee80211n=1
wmm_enabled=1
channel=11
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=2
wpa_passphrase=**********************
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP

And then configured netplan:

network:
  version: 2
  renderer: networkd
  ethernets:
    enp0s25:
      dhcp4: false
      dhcp6: false
    enx60a4b758d49a:
      dhcp4: false
      dhcp6: false
      optional: true
    wlp2s0:
      dhcp4: false
      dhcp6: false
      optional: true
  bridges:
    br0:
      interfaces: [enp0s25,enx60a4b758d49a,wlp2s0]
      addresses: [10.1.5.33/24]
      gateway4: 10.1.5.251
      nameservers:
        addresses: [10.1.5.251]
      parameters:
        stp: true
        forward-delay: 4
      dhcp4: false
      dhcp6: false

Generated, Applied and rebooted. But it doesn't work. It publishes a wifi and I can connect a phone, but immediately disconnects. First I thought there was a problem with dhcp passthrough to enp0s25, but setting up an static IP has the same effect. Also the connection of another computer to enx... is not bridged. Any hints?

$ ip a | grep br0
2: enp0s25: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel master br0 state UP group default qlen 1000
3: enx60a4b758d49a: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel master br0 state UP group default qlen 1000
5: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    inet 10.1.5.33/24 brd 10.1.5.255 scope global br0
    inet 10.1.5.113/24 brd 10.1.5.255 scope global secondary dynamic br0

enx... seems to be getting an ip through the connected computer (that also has wifi). It's odd.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.