Unable to configure a static wifi adapter without access point

Bug #1838341 reported by KGCybeX
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Netplan
New
Undecided
Unassigned

Bug Description

Reviewing examples configurations described here [https://netplan.io/examples], I noticed that one is unable to configure a Wireless interface without an access point.

This is a severe limitation, in the case of sharing ethernet over wifi or extending , one is unable to configure a static IP address for the WiFi adapter.

(One can configure a network bridge as this is an option, however this does not work in many cases)

With the current configuration limitations of netplan, I am only able to share Wifi to ethernet and not wifi to wifi. A sample configuration of what I would like to achieve (emulating wifi shared to WiFi and Ethernet).

// Network adapter facing internet
network:
  version: 2
  renderer: networkd
  wifis:
    wlp2s0b1:
      addresses: [192.168.8.254/24] // address of internet facing adapter
      gateway4: 192.168.0.1 // gateway of network
      nameservers:
        addresses: [127.0.0.1] // using local DNS
      access-points:
        "network_ssid_name":
          password: "**********"

// Network adapter acting as AP
network:
  version: 2
  renderer: networkd
  wifis:
    wlp2s0b2:
      addresses: [192.168.1.1/24] // address of interface with 192.168.0.1/24 subnet
      gateway4: 192.168.8.254 // internet facing wifi adapter as gateway
      nameservers:
        addresses: [127.0.0.1] // locally running DNS service

// Ethernet Network adapter
network:
  version: 2
  renderer: networkd
  ethernets:
    enp3s0:
      addresses:
        - 192.168.0.1/24 // address of interface with 192.168.0.1/24
      gateway4: 192.168.8.254 // internet facing wifi adapter as gateway
      nameservers:
          addresses: [127.0.0.1] // locally running DNS service

Tags: wifi wireless
Revision history for this message
Tolya Borisenkov (hbars-2) wrote :

I have so far solved this problem only through ifupdown.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.