How to change default IP for hostapd ?
I read:
and use default
/etc/hostapd.conf
interface=uap0
ssid=access-point
hw_mode=g
channel=1
own_ip_addr=192.168.8.1
/etc/systemd/network/hostapd.network
[Match]
Name=wlan0 uap0
WLANInterfaceType=ap
[Network]
Address=192.168.8.1/24
DHCPServer=true
IPMasquerade=yes
IPForward=ipv4
[DHCPServer]
PoolOffset=100
PoolSize=20
EmitDNS=yes
DNS=9.9.9.9
It works OK !
If I change IP to 192.168.18.1
/etc/hostapd.conf
interface=uap0
ssid=access-point
hw_mode=g
channel=1
own_ip_addr=192.168.18.1
/etc/systemd/network/hostapd.network
[Match]
Name=wlan0 uap0
WLANInterfaceType=ap
[Network]
Address=192.168.18.1/24
DHCPServer=true
IPMasquerade=yes
IPForward=ipv4
[DHCPServer]
PoolOffset=100
PoolSize=20
EmitDNS=yes
DNS=9.9.9.9
In files I have 192.168.18.1
But Linux has always 192.168.8.1
It is BUG or feature ?