As headline stated: I am looking for instructions on how to setup an access point using netplan, including setting up a bridge between eth0 and wlan0. DHCP Server would be my router, to which the system is connected via eth0. I am running Ubuntu Server 18.04. (I used to be able to do it following examples using ifupdown and hostapd, but now I need to stay with netplan..)
- What packages need to be installed for this?
- Beside setting up a yaml file, what needs to be done?
- where is the bridge (i.e.br0) defined?
- where are credentails like ssid and password set?
- Could you share an example yaml file (i.e. with eth0 wlan0) for the above scenario? (I need a solution without using iptables, as this can not be used in my system)
As I am far from being an expert, the more detailed the instructions, the better....
I got it to work with the help of these links: 1, 2, 3, 4
This is the sequence, which worked for me (WiFi in n-Mode, static IP):
apt-get update
,apt-get install hostapd
sudo systemctl unmask hostapd
,sudo systemctl enable hostapd
DAEMON_CONF="/etc/hostapd/hostapd.conf"
(Testing to verify is AP is visible i.e. on phone:
sudo service hostapd start
; thensudo service hostapd stop
again to continue setup)sudo netplan generate
,sudo netplan apply