I'm trying to setup a Wifi Hotspot on my Linux Machine. After failing to achieve it through the GUI app, linux-wifi-hotspot, I followed this guide, which was going smoothly until the last step of starting DHCP (so it can issue IPs for the Wifi clients).
My machine is connected to ethernet on interface enp5s0 and I would like to use wifi interface wlp6s0 to create a hotspot.
My /etc/dhcp/dhcpd.conf:
option domain-name "example.org";
option domain-name-servers ns1.example.org, ns2.example.org;
default-lease-time 600;
max-lease-time 7200;
authoritative;
subnet 192.168.0.0 netmask 255.255.255.0 {
interface wlp6s0;
range 192.168.1.100 192.168.1.105;
option routers 192.168.0.1;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.0.255;
}
My /etc/default/isc-dhcp-server:
INTERFACESv4="wlp6s0"
INTERFACESv6="wlp6s0"
My /etc/network/interfaces:
auto lo
iface lo inet loopback
iface enp5s0 inet static
address 192.168.10.101
netmask 255.255.255.0
broadcast 192.168.10.255
network 192.168.10.0
gateway 192.168.10.254
dns-nameservers 192.168.10.254
iface wlp6s0 inet dhcp
Running dhcpd -t /etc/dhcp/dhcpd.conf gives:
/etc/dhcp/dhcpd.conf: interface name too long (is 20)
isc-dhcp-server.service won't start.
I see the hotspot but cannot connect to it.
I suspect my /etc/network/interfaces is wrong but I don't actually know what it should look like.
PS: I have also tried ifconfig wlp6s0 192.168.1.100