Score:0

Fixed ip in WiFi adapter via netplan

fi flag

I want to establish a fixed ip to my WiFi adapter in Ubuntu 20.04 from netplan but I always get an error "No access points defined" when I run "netplan try". Is it possible to do this from netplan?


Finally I managed to do it. This is my netplan file:

network:
  version: 2
  renderer: NetworkManager
  wifis:
    wlp3s0:
      dhcp4: no
      addresses:
        - 192.168.212.100/24
      access-points:
        wifiName:
          password: wifiPassword
user535733 avatar
cn flag
Are you defining an access point? Including your complete YAML in the question above would help us to understand.
Raúl avatar
fi flag
I try to do several things but that will go into another more detailed query. For now I am only trying to be able to assign a fixed IP when connecting to a Wi-Fi network from netplan. Ubuntu 20.04.
chili555 avatar
cn flag
Your netplan file says the renderer is NetworkManager. If you are running NM, that is the place to set a static IP address, not netplan. Please clarify. Welcome to Ask Ubuntu.
Raúl avatar
fi flag
I don't quite understand your comment. It works with that file.
chili555 avatar
cn flag
Glad it's working. You're all set.
I sit in a Tesla and translated this thread with Ai:

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.