I am trying to use my Ubuntu Core-RaspberryPi as a Wifi Access point. Therefore, I am using hostapd and dnsmasq. I followed this tutorial in order to setup everything.

I start them manually - so all interfaces should be up and running when the services start.


My hostapd.conf file:


I added this line to /etc/default/hostapd:



I have the following dnsmasq.conf file:


My etc/hosts.dnsmasq file: raspbi

My etc/network/interfaces file:

auto wlan0
iface wlan0 inet static

IP Address List Logs:

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether b8:27:eb:46:24:90 brd ff:ff:ff:ff:ff:ff
    inet brd scope global dynamic eth0
       valid_lft 86207sec preferred_lft 86207sec
    inet6 fe80::ba27:ebff:fe46:2490/64 scope link 
       valid_lft forever preferred_lft forever
3: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
    link/ether b8:27:eb:13:71:c5 brd ff:ff:ff:ff:ff:ff

What I get

If I then try to start my dnsmasq by running systemctl start dnsmasq I get an error "unknown interface wlan0".

What I tried

I also tried to force start wlan0 by running sudo ifconfig up wlan0 but still get the same error message


1 Answer 1


The Tutorial you used is not up to date as it was written in 2013 and seems to be written for normal Ubuntu not Ubuntu Core.

I never used Ubuntu Core but they seem to use systemd-networkd:

By default network management on Ubuntu Core is handled by systemd's networkd and netplan. While NetworkManager has some support to handle netplan configuration files, Ethernet support is disabled by default and has to be turned on explicitly to avoid conflicts with existing network configuration. Source

So I think you could mainly follow this tutorial.

Fiddling around with /etc/network/interfaces won't ever work in this context, I think.

  • Thanks for answering jake! I have now tried the tutorial you sent me and it looks quite okay. However, I can't see my Wifi and therefore can't connect to it. All services are up and running and I don't get any error logs. Do you have any Idea what I could do? I would comment on the tutorial but I don't have enough reputation yet... :( Jul 29, 2019 at 14:37
  • @linus_hologram You could try to start hostapd manually and maybe see whats wrong there, but I think you really should try @Ingo's tutorial. Could you add the ouput of systemctl status networking systemd-networkd hostapd to your question?
    – jake
    Jul 29, 2019 at 20:06
  • Sorry If I was unprecise in my comment. I tried your tutorial and think that this is the right way to go. Unfortunately, although I followed each step of the tutorial, I do not see a raspberry-pi WIFI network on my iPhone. So, somehow, the wifi network is not created. Also, I do not get any error logs or something so I really don't know where the problem is. I did the following tutorial steps: 1) general setup; 2) Setting up a standalone access point; 3) Setting up an access point and with eth0, without routing; I followed every step mentioned precisely but dont see my wifi. Jul 30, 2019 at 10:56
  • Also, if you take a look at the "Troubleshooting" part of the tutorial, and then reference to the "wifi" section, you will find a command sudo iw dev wlan0 info which should return some information about the interface, especially type AP. If I run this command, I don't get type AP but 'managed'. Do you have any idea where I messed up or what the reason for the different type is? Jul 30, 2019 at 11:01
  • Hi, I just read about your problems. Now we are mixing up two questions. This one you used old style networking but current discussing my tutorial using systemd-networkd. To not get confused it would be better you open a short new question, something like "I followed this tutorial <link> but have this problem ...". Then I will look if I can make an answer.
    – Ingo
    Jul 30, 2019 at 11:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.