Connection issues, Raspberry Pi Wifi Hotspot
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
0
down vote
favorite
I am trying to use my Raspberry Pi as a Wifi hot spot and have been following the following guide: Pi as wifi hotspot. However I have run into several issues, possibly related, that weren't completely solved through other similar questions asked on here when it comes to connecting an external device to the wifi.
Just to note, currently my pi is plugged into an ethernet cable which goes to a hub that is fed from another ethernet cable connected to the router. The Pi 3B+ is using the built in wifi
Starting the hostapd service would seem to be fine and comes up on my phone as an available network:
pi@raspberrypi:~ $ sudo /usr/sbin/hostapd /etc/hostapd/hostapd.conf
Configuration file: /etc/hostapd/hostapd.conf
Failed to create interface mon.wlan0: -95 (Operation not supported)
wlan0: interface state UNINITIALIZED->COUNTRY_UPDATE
wlan0: Could not connect to kernel driver
Using interface wlan0 with hwaddr b8:27:eb:43:56:bc and ssid "Stuxnet"
wlan0: interface state COUNTRY_UPDATE->ENABLED
wlan0: AP-ENABLED
However, when attempting to start the isc-dhcp-server I get the following:
pi@raspberrypi:~ $ sudo service isc-dhcp-server start
Job for isc-dhcp-server.service failed because the control process exited
with error code.
See "systemctl status isc-dhcp-server.service" and "journalctl -xe" for
details.
journalctl -xe spits out the following:
pi@raspberrypi:~ $ journalctl -xe
Apr 09 00:23:34 raspberrypi dhcpd[2265]: Not configured to listen on any
interfa
Apr 09 00:23:34 raspberrypi dhcpd[2265]:
Apr 09 00:23:34 raspberrypi dhcpd[2265]: If you think you have received
this mes
Apr 09 00:23:34 raspberrypi dhcpd[2265]: than a configuration issue
please read
Apr 09 00:23:34 raspberrypi dhcpd[2265]: bugs on either our web page at
www.isc.
Apr 09 00:23:34 raspberrypi dhcpd[2265]: before submitting a bug. These
pages e
Apr 09 00:23:34 raspberrypi dhcpd[2265]: process and the information we
find hel
Apr 09 00:23:34 raspberrypi dhcpd[2265]:
Apr 09 00:23:34 raspberrypi dhcpd[2265]: exiting.
Apr 09 00:23:36 raspberrypi isc-dhcp-server[2253]: Starting ISC DHCPv4
server: d
Apr 09 00:23:36 raspberrypi isc-dhcp-server[2253]: failed!
Apr 09 00:23:36 raspberrypi systemd[1]: isc-dhcp-server.service: Control
process
Apr 09 00:23:36 raspberrypi systemd[1]: Failed to start LSB: DHCP server.
-- Subject: Unit isc-dhcp-server.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit isc-dhcp-server.service has failed.
--
-- The result is failed.
Apr 09 00:23:36 raspberrypi systemd[1]: isc-dhcp-server.service: Unit
entered fa
Apr 09 00:23:36 raspberrypi systemd[1]: isc-dhcp-server.service: Failed
with res
Apr 09 00:23:36 raspberrypi sudo[2225]: pam_unix(sudo:session): session
closed f
lines 1901-1923/1923 (END)
Apr 09 00:23:34 raspberrypi dhcpd[2265]: Not configured to listen on any
interfaces!
Apr 09 00:23:34 raspberrypi dhcpd[2265]:
Apr 09 00:23:34 raspberrypi dhcpd[2265]: If you think you have received
this message due to a bug rather
Apr 09 00:23:34 raspberrypi dhcpd[2265]: than a configuration issue
please read the section on submitting
Apr 09 00:23:34 raspberrypi dhcpd[2265]: bugs on either our web page at
www.isc.org or in the README file
Apr 09 00:23:34 raspberrypi dhcpd[2265]: before submitting a bug. These
pages explain the proper
Apr 09 00:23:34 raspberrypi dhcpd[2265]: process and the information we
find helpful for debugging..
Apr 09 00:23:34 raspberrypi dhcpd[2265]:
Apr 09 00:23:34 raspberrypi dhcpd[2265]: exiting.
Apr 09 00:23:36 raspberrypi isc-dhcp-server[2253]: Starting ISC DHCPv4
server: dhcpdcheck syslog for diagnostics. ... failed!
Apr 09 00:23:36 raspberrypi isc-dhcp-server[2253]: failed!
Apr 09 00:23:36 raspberrypi systemd[1]: isc-dhcp-server.service: Control
process exited, code=exited status=1
Apr 09 00:23:36 raspberrypi systemd[1]: Failed to start LSB: DHCP server.
-- Subject: Unit isc-dhcp-server.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit isc-dhcp-server.service has failed.
--
-- The result is failed.
Apr 09 00:23:36 raspberrypi systemd[1]: isc-dhcp-server.service: Unit
entered failed state.
Apr 09 00:23:36 raspberrypi systemd[1]: isc-dhcp-server.service: Failed
with result 'exit-code'.
Apr 09 00:23:36 raspberrypi sudo[2225]: pam_unix(sudo:session): session
closed for user root
My config files are as follows,
dhcp [truncated]:
# If this DHCP server is the official DHCP server for the local
# network, the authoritative directive should be uncommented.
authoritative;
# deny members of "foo";
# range 10.0.29.10 10.0.29.230;
# }
#}
subnet 192.168.42.0 netmask 255.255.255.0
range 192.168.42.10 192.168.42.50;
option broadcast-address 192.168.42.255;
option routers 192.168.42.1;
default-lease-time 600;
max-lease-time 7200;
option domain-name "local";
option domain-name-servers 8.8.8.8, 8.8.4.4;
/etc/default/isc-dhcp-server:
# Defaults for isc-dhcp-server (sourced by /etc/init.d/isc-dhcp-server)
# Path to dhcpd's config file (default: /etc/dhcp/dhcpd.conf).
#DHCPDv4_CONF=/etc/dhcp/dhcpd.conf
#DHCPDv6_CONF=/etc/dhcp/dhcpd6.conf
# Path to dhcpd's PID file (default: /var/run/dhcpd.pid).
#DHCPDv4_PID=/var/run/dhcpd.pid
#DHCPDv6_PID=/var/run/dhcpd6.pid
# Additional options to start dhcpd with.
# Don't use options -cf or -pf here; use DHCPD_CONF/ DHCPD_PID instead
#OPTIONS=""
# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
# Separate multiple interfaces with spaces, e.g. "eth0 eth1".
INTERFACESv4="wlan0"
INTERFACESv6="wlan0"
/etc/network/interfaces:
# interfaces(5) file used by ifup(8) and ifdown(8)
# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
auto lo
iface lo inet loopback
auto eth0
allow-hotplug eth0
iface eth0 inet dhcp
allow-hotplug wlan0
iface wlan0 inet static
address 192.168.42.1
netmask 225.225.225.0
I attempted some things from other questions on here such as starting with ifup wlan0:
pi@raspberrypi:~ $ sudo ifup wlan0
Error: inet prefix is expected rather than "192.168.42.1/225.225.225.0".
ifup: failed to bring up wlan0
Phones will connect to the spot but without a connection -- it gets to the handshake and then holds:
wlan0: STA 90:60:f1:b2:fc:96 IEEE 802.11: associated
wlan0: AP-STA-CONNECTED 90:60:f1:b2:fc:96
wlan0: STA 90:60:f1:b2:fc:96 RADIUS: starting accounting session
5ACAC8C4-00000000
wlan0: STA 90:60:f1:b2:fc:96 WPA: pairwise key handshake completed (RSN)
Hopefully it's just a typo I missed somewhere but I can't quite figure it out. This is a fresh install as well.
networking server ethernet dhcp raspberrypi
add a comment |Â
up vote
0
down vote
favorite
I am trying to use my Raspberry Pi as a Wifi hot spot and have been following the following guide: Pi as wifi hotspot. However I have run into several issues, possibly related, that weren't completely solved through other similar questions asked on here when it comes to connecting an external device to the wifi.
Just to note, currently my pi is plugged into an ethernet cable which goes to a hub that is fed from another ethernet cable connected to the router. The Pi 3B+ is using the built in wifi
Starting the hostapd service would seem to be fine and comes up on my phone as an available network:
pi@raspberrypi:~ $ sudo /usr/sbin/hostapd /etc/hostapd/hostapd.conf
Configuration file: /etc/hostapd/hostapd.conf
Failed to create interface mon.wlan0: -95 (Operation not supported)
wlan0: interface state UNINITIALIZED->COUNTRY_UPDATE
wlan0: Could not connect to kernel driver
Using interface wlan0 with hwaddr b8:27:eb:43:56:bc and ssid "Stuxnet"
wlan0: interface state COUNTRY_UPDATE->ENABLED
wlan0: AP-ENABLED
However, when attempting to start the isc-dhcp-server I get the following:
pi@raspberrypi:~ $ sudo service isc-dhcp-server start
Job for isc-dhcp-server.service failed because the control process exited
with error code.
See "systemctl status isc-dhcp-server.service" and "journalctl -xe" for
details.
journalctl -xe spits out the following:
pi@raspberrypi:~ $ journalctl -xe
Apr 09 00:23:34 raspberrypi dhcpd[2265]: Not configured to listen on any
interfa
Apr 09 00:23:34 raspberrypi dhcpd[2265]:
Apr 09 00:23:34 raspberrypi dhcpd[2265]: If you think you have received
this mes
Apr 09 00:23:34 raspberrypi dhcpd[2265]: than a configuration issue
please read
Apr 09 00:23:34 raspberrypi dhcpd[2265]: bugs on either our web page at
www.isc.
Apr 09 00:23:34 raspberrypi dhcpd[2265]: before submitting a bug. These
pages e
Apr 09 00:23:34 raspberrypi dhcpd[2265]: process and the information we
find hel
Apr 09 00:23:34 raspberrypi dhcpd[2265]:
Apr 09 00:23:34 raspberrypi dhcpd[2265]: exiting.
Apr 09 00:23:36 raspberrypi isc-dhcp-server[2253]: Starting ISC DHCPv4
server: d
Apr 09 00:23:36 raspberrypi isc-dhcp-server[2253]: failed!
Apr 09 00:23:36 raspberrypi systemd[1]: isc-dhcp-server.service: Control
process
Apr 09 00:23:36 raspberrypi systemd[1]: Failed to start LSB: DHCP server.
-- Subject: Unit isc-dhcp-server.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit isc-dhcp-server.service has failed.
--
-- The result is failed.
Apr 09 00:23:36 raspberrypi systemd[1]: isc-dhcp-server.service: Unit
entered fa
Apr 09 00:23:36 raspberrypi systemd[1]: isc-dhcp-server.service: Failed
with res
Apr 09 00:23:36 raspberrypi sudo[2225]: pam_unix(sudo:session): session
closed f
lines 1901-1923/1923 (END)
Apr 09 00:23:34 raspberrypi dhcpd[2265]: Not configured to listen on any
interfaces!
Apr 09 00:23:34 raspberrypi dhcpd[2265]:
Apr 09 00:23:34 raspberrypi dhcpd[2265]: If you think you have received
this message due to a bug rather
Apr 09 00:23:34 raspberrypi dhcpd[2265]: than a configuration issue
please read the section on submitting
Apr 09 00:23:34 raspberrypi dhcpd[2265]: bugs on either our web page at
www.isc.org or in the README file
Apr 09 00:23:34 raspberrypi dhcpd[2265]: before submitting a bug. These
pages explain the proper
Apr 09 00:23:34 raspberrypi dhcpd[2265]: process and the information we
find helpful for debugging..
Apr 09 00:23:34 raspberrypi dhcpd[2265]:
Apr 09 00:23:34 raspberrypi dhcpd[2265]: exiting.
Apr 09 00:23:36 raspberrypi isc-dhcp-server[2253]: Starting ISC DHCPv4
server: dhcpdcheck syslog for diagnostics. ... failed!
Apr 09 00:23:36 raspberrypi isc-dhcp-server[2253]: failed!
Apr 09 00:23:36 raspberrypi systemd[1]: isc-dhcp-server.service: Control
process exited, code=exited status=1
Apr 09 00:23:36 raspberrypi systemd[1]: Failed to start LSB: DHCP server.
-- Subject: Unit isc-dhcp-server.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit isc-dhcp-server.service has failed.
--
-- The result is failed.
Apr 09 00:23:36 raspberrypi systemd[1]: isc-dhcp-server.service: Unit
entered failed state.
Apr 09 00:23:36 raspberrypi systemd[1]: isc-dhcp-server.service: Failed
with result 'exit-code'.
Apr 09 00:23:36 raspberrypi sudo[2225]: pam_unix(sudo:session): session
closed for user root
My config files are as follows,
dhcp [truncated]:
# If this DHCP server is the official DHCP server for the local
# network, the authoritative directive should be uncommented.
authoritative;
# deny members of "foo";
# range 10.0.29.10 10.0.29.230;
# }
#}
subnet 192.168.42.0 netmask 255.255.255.0
range 192.168.42.10 192.168.42.50;
option broadcast-address 192.168.42.255;
option routers 192.168.42.1;
default-lease-time 600;
max-lease-time 7200;
option domain-name "local";
option domain-name-servers 8.8.8.8, 8.8.4.4;
/etc/default/isc-dhcp-server:
# Defaults for isc-dhcp-server (sourced by /etc/init.d/isc-dhcp-server)
# Path to dhcpd's config file (default: /etc/dhcp/dhcpd.conf).
#DHCPDv4_CONF=/etc/dhcp/dhcpd.conf
#DHCPDv6_CONF=/etc/dhcp/dhcpd6.conf
# Path to dhcpd's PID file (default: /var/run/dhcpd.pid).
#DHCPDv4_PID=/var/run/dhcpd.pid
#DHCPDv6_PID=/var/run/dhcpd6.pid
# Additional options to start dhcpd with.
# Don't use options -cf or -pf here; use DHCPD_CONF/ DHCPD_PID instead
#OPTIONS=""
# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
# Separate multiple interfaces with spaces, e.g. "eth0 eth1".
INTERFACESv4="wlan0"
INTERFACESv6="wlan0"
/etc/network/interfaces:
# interfaces(5) file used by ifup(8) and ifdown(8)
# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
auto lo
iface lo inet loopback
auto eth0
allow-hotplug eth0
iface eth0 inet dhcp
allow-hotplug wlan0
iface wlan0 inet static
address 192.168.42.1
netmask 225.225.225.0
I attempted some things from other questions on here such as starting with ifup wlan0:
pi@raspberrypi:~ $ sudo ifup wlan0
Error: inet prefix is expected rather than "192.168.42.1/225.225.225.0".
ifup: failed to bring up wlan0
Phones will connect to the spot but without a connection -- it gets to the handshake and then holds:
wlan0: STA 90:60:f1:b2:fc:96 IEEE 802.11: associated
wlan0: AP-STA-CONNECTED 90:60:f1:b2:fc:96
wlan0: STA 90:60:f1:b2:fc:96 RADIUS: starting accounting session
5ACAC8C4-00000000
wlan0: STA 90:60:f1:b2:fc:96 WPA: pairwise key handshake completed (RSN)
Hopefully it's just a typo I missed somewhere but I can't quite figure it out. This is a fresh install as well.
networking server ethernet dhcp raspberrypi
Can you able to connect through ssh to your Pi ?
â Keval Mehta
Apr 9 at 5:45
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I am trying to use my Raspberry Pi as a Wifi hot spot and have been following the following guide: Pi as wifi hotspot. However I have run into several issues, possibly related, that weren't completely solved through other similar questions asked on here when it comes to connecting an external device to the wifi.
Just to note, currently my pi is plugged into an ethernet cable which goes to a hub that is fed from another ethernet cable connected to the router. The Pi 3B+ is using the built in wifi
Starting the hostapd service would seem to be fine and comes up on my phone as an available network:
pi@raspberrypi:~ $ sudo /usr/sbin/hostapd /etc/hostapd/hostapd.conf
Configuration file: /etc/hostapd/hostapd.conf
Failed to create interface mon.wlan0: -95 (Operation not supported)
wlan0: interface state UNINITIALIZED->COUNTRY_UPDATE
wlan0: Could not connect to kernel driver
Using interface wlan0 with hwaddr b8:27:eb:43:56:bc and ssid "Stuxnet"
wlan0: interface state COUNTRY_UPDATE->ENABLED
wlan0: AP-ENABLED
However, when attempting to start the isc-dhcp-server I get the following:
pi@raspberrypi:~ $ sudo service isc-dhcp-server start
Job for isc-dhcp-server.service failed because the control process exited
with error code.
See "systemctl status isc-dhcp-server.service" and "journalctl -xe" for
details.
journalctl -xe spits out the following:
pi@raspberrypi:~ $ journalctl -xe
Apr 09 00:23:34 raspberrypi dhcpd[2265]: Not configured to listen on any
interfa
Apr 09 00:23:34 raspberrypi dhcpd[2265]:
Apr 09 00:23:34 raspberrypi dhcpd[2265]: If you think you have received
this mes
Apr 09 00:23:34 raspberrypi dhcpd[2265]: than a configuration issue
please read
Apr 09 00:23:34 raspberrypi dhcpd[2265]: bugs on either our web page at
www.isc.
Apr 09 00:23:34 raspberrypi dhcpd[2265]: before submitting a bug. These
pages e
Apr 09 00:23:34 raspberrypi dhcpd[2265]: process and the information we
find hel
Apr 09 00:23:34 raspberrypi dhcpd[2265]:
Apr 09 00:23:34 raspberrypi dhcpd[2265]: exiting.
Apr 09 00:23:36 raspberrypi isc-dhcp-server[2253]: Starting ISC DHCPv4
server: d
Apr 09 00:23:36 raspberrypi isc-dhcp-server[2253]: failed!
Apr 09 00:23:36 raspberrypi systemd[1]: isc-dhcp-server.service: Control
process
Apr 09 00:23:36 raspberrypi systemd[1]: Failed to start LSB: DHCP server.
-- Subject: Unit isc-dhcp-server.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit isc-dhcp-server.service has failed.
--
-- The result is failed.
Apr 09 00:23:36 raspberrypi systemd[1]: isc-dhcp-server.service: Unit
entered fa
Apr 09 00:23:36 raspberrypi systemd[1]: isc-dhcp-server.service: Failed
with res
Apr 09 00:23:36 raspberrypi sudo[2225]: pam_unix(sudo:session): session
closed f
lines 1901-1923/1923 (END)
Apr 09 00:23:34 raspberrypi dhcpd[2265]: Not configured to listen on any
interfaces!
Apr 09 00:23:34 raspberrypi dhcpd[2265]:
Apr 09 00:23:34 raspberrypi dhcpd[2265]: If you think you have received
this message due to a bug rather
Apr 09 00:23:34 raspberrypi dhcpd[2265]: than a configuration issue
please read the section on submitting
Apr 09 00:23:34 raspberrypi dhcpd[2265]: bugs on either our web page at
www.isc.org or in the README file
Apr 09 00:23:34 raspberrypi dhcpd[2265]: before submitting a bug. These
pages explain the proper
Apr 09 00:23:34 raspberrypi dhcpd[2265]: process and the information we
find helpful for debugging..
Apr 09 00:23:34 raspberrypi dhcpd[2265]:
Apr 09 00:23:34 raspberrypi dhcpd[2265]: exiting.
Apr 09 00:23:36 raspberrypi isc-dhcp-server[2253]: Starting ISC DHCPv4
server: dhcpdcheck syslog for diagnostics. ... failed!
Apr 09 00:23:36 raspberrypi isc-dhcp-server[2253]: failed!
Apr 09 00:23:36 raspberrypi systemd[1]: isc-dhcp-server.service: Control
process exited, code=exited status=1
Apr 09 00:23:36 raspberrypi systemd[1]: Failed to start LSB: DHCP server.
-- Subject: Unit isc-dhcp-server.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit isc-dhcp-server.service has failed.
--
-- The result is failed.
Apr 09 00:23:36 raspberrypi systemd[1]: isc-dhcp-server.service: Unit
entered failed state.
Apr 09 00:23:36 raspberrypi systemd[1]: isc-dhcp-server.service: Failed
with result 'exit-code'.
Apr 09 00:23:36 raspberrypi sudo[2225]: pam_unix(sudo:session): session
closed for user root
My config files are as follows,
dhcp [truncated]:
# If this DHCP server is the official DHCP server for the local
# network, the authoritative directive should be uncommented.
authoritative;
# deny members of "foo";
# range 10.0.29.10 10.0.29.230;
# }
#}
subnet 192.168.42.0 netmask 255.255.255.0
range 192.168.42.10 192.168.42.50;
option broadcast-address 192.168.42.255;
option routers 192.168.42.1;
default-lease-time 600;
max-lease-time 7200;
option domain-name "local";
option domain-name-servers 8.8.8.8, 8.8.4.4;
/etc/default/isc-dhcp-server:
# Defaults for isc-dhcp-server (sourced by /etc/init.d/isc-dhcp-server)
# Path to dhcpd's config file (default: /etc/dhcp/dhcpd.conf).
#DHCPDv4_CONF=/etc/dhcp/dhcpd.conf
#DHCPDv6_CONF=/etc/dhcp/dhcpd6.conf
# Path to dhcpd's PID file (default: /var/run/dhcpd.pid).
#DHCPDv4_PID=/var/run/dhcpd.pid
#DHCPDv6_PID=/var/run/dhcpd6.pid
# Additional options to start dhcpd with.
# Don't use options -cf or -pf here; use DHCPD_CONF/ DHCPD_PID instead
#OPTIONS=""
# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
# Separate multiple interfaces with spaces, e.g. "eth0 eth1".
INTERFACESv4="wlan0"
INTERFACESv6="wlan0"
/etc/network/interfaces:
# interfaces(5) file used by ifup(8) and ifdown(8)
# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
auto lo
iface lo inet loopback
auto eth0
allow-hotplug eth0
iface eth0 inet dhcp
allow-hotplug wlan0
iface wlan0 inet static
address 192.168.42.1
netmask 225.225.225.0
I attempted some things from other questions on here such as starting with ifup wlan0:
pi@raspberrypi:~ $ sudo ifup wlan0
Error: inet prefix is expected rather than "192.168.42.1/225.225.225.0".
ifup: failed to bring up wlan0
Phones will connect to the spot but without a connection -- it gets to the handshake and then holds:
wlan0: STA 90:60:f1:b2:fc:96 IEEE 802.11: associated
wlan0: AP-STA-CONNECTED 90:60:f1:b2:fc:96
wlan0: STA 90:60:f1:b2:fc:96 RADIUS: starting accounting session
5ACAC8C4-00000000
wlan0: STA 90:60:f1:b2:fc:96 WPA: pairwise key handshake completed (RSN)
Hopefully it's just a typo I missed somewhere but I can't quite figure it out. This is a fresh install as well.
networking server ethernet dhcp raspberrypi
I am trying to use my Raspberry Pi as a Wifi hot spot and have been following the following guide: Pi as wifi hotspot. However I have run into several issues, possibly related, that weren't completely solved through other similar questions asked on here when it comes to connecting an external device to the wifi.
Just to note, currently my pi is plugged into an ethernet cable which goes to a hub that is fed from another ethernet cable connected to the router. The Pi 3B+ is using the built in wifi
Starting the hostapd service would seem to be fine and comes up on my phone as an available network:
pi@raspberrypi:~ $ sudo /usr/sbin/hostapd /etc/hostapd/hostapd.conf
Configuration file: /etc/hostapd/hostapd.conf
Failed to create interface mon.wlan0: -95 (Operation not supported)
wlan0: interface state UNINITIALIZED->COUNTRY_UPDATE
wlan0: Could not connect to kernel driver
Using interface wlan0 with hwaddr b8:27:eb:43:56:bc and ssid "Stuxnet"
wlan0: interface state COUNTRY_UPDATE->ENABLED
wlan0: AP-ENABLED
However, when attempting to start the isc-dhcp-server I get the following:
pi@raspberrypi:~ $ sudo service isc-dhcp-server start
Job for isc-dhcp-server.service failed because the control process exited
with error code.
See "systemctl status isc-dhcp-server.service" and "journalctl -xe" for
details.
journalctl -xe spits out the following:
pi@raspberrypi:~ $ journalctl -xe
Apr 09 00:23:34 raspberrypi dhcpd[2265]: Not configured to listen on any
interfa
Apr 09 00:23:34 raspberrypi dhcpd[2265]:
Apr 09 00:23:34 raspberrypi dhcpd[2265]: If you think you have received
this mes
Apr 09 00:23:34 raspberrypi dhcpd[2265]: than a configuration issue
please read
Apr 09 00:23:34 raspberrypi dhcpd[2265]: bugs on either our web page at
www.isc.
Apr 09 00:23:34 raspberrypi dhcpd[2265]: before submitting a bug. These
pages e
Apr 09 00:23:34 raspberrypi dhcpd[2265]: process and the information we
find hel
Apr 09 00:23:34 raspberrypi dhcpd[2265]:
Apr 09 00:23:34 raspberrypi dhcpd[2265]: exiting.
Apr 09 00:23:36 raspberrypi isc-dhcp-server[2253]: Starting ISC DHCPv4
server: d
Apr 09 00:23:36 raspberrypi isc-dhcp-server[2253]: failed!
Apr 09 00:23:36 raspberrypi systemd[1]: isc-dhcp-server.service: Control
process
Apr 09 00:23:36 raspberrypi systemd[1]: Failed to start LSB: DHCP server.
-- Subject: Unit isc-dhcp-server.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit isc-dhcp-server.service has failed.
--
-- The result is failed.
Apr 09 00:23:36 raspberrypi systemd[1]: isc-dhcp-server.service: Unit
entered fa
Apr 09 00:23:36 raspberrypi systemd[1]: isc-dhcp-server.service: Failed
with res
Apr 09 00:23:36 raspberrypi sudo[2225]: pam_unix(sudo:session): session
closed f
lines 1901-1923/1923 (END)
Apr 09 00:23:34 raspberrypi dhcpd[2265]: Not configured to listen on any
interfaces!
Apr 09 00:23:34 raspberrypi dhcpd[2265]:
Apr 09 00:23:34 raspberrypi dhcpd[2265]: If you think you have received
this message due to a bug rather
Apr 09 00:23:34 raspberrypi dhcpd[2265]: than a configuration issue
please read the section on submitting
Apr 09 00:23:34 raspberrypi dhcpd[2265]: bugs on either our web page at
www.isc.org or in the README file
Apr 09 00:23:34 raspberrypi dhcpd[2265]: before submitting a bug. These
pages explain the proper
Apr 09 00:23:34 raspberrypi dhcpd[2265]: process and the information we
find helpful for debugging..
Apr 09 00:23:34 raspberrypi dhcpd[2265]:
Apr 09 00:23:34 raspberrypi dhcpd[2265]: exiting.
Apr 09 00:23:36 raspberrypi isc-dhcp-server[2253]: Starting ISC DHCPv4
server: dhcpdcheck syslog for diagnostics. ... failed!
Apr 09 00:23:36 raspberrypi isc-dhcp-server[2253]: failed!
Apr 09 00:23:36 raspberrypi systemd[1]: isc-dhcp-server.service: Control
process exited, code=exited status=1
Apr 09 00:23:36 raspberrypi systemd[1]: Failed to start LSB: DHCP server.
-- Subject: Unit isc-dhcp-server.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit isc-dhcp-server.service has failed.
--
-- The result is failed.
Apr 09 00:23:36 raspberrypi systemd[1]: isc-dhcp-server.service: Unit
entered failed state.
Apr 09 00:23:36 raspberrypi systemd[1]: isc-dhcp-server.service: Failed
with result 'exit-code'.
Apr 09 00:23:36 raspberrypi sudo[2225]: pam_unix(sudo:session): session
closed for user root
My config files are as follows,
dhcp [truncated]:
# If this DHCP server is the official DHCP server for the local
# network, the authoritative directive should be uncommented.
authoritative;
# deny members of "foo";
# range 10.0.29.10 10.0.29.230;
# }
#}
subnet 192.168.42.0 netmask 255.255.255.0
range 192.168.42.10 192.168.42.50;
option broadcast-address 192.168.42.255;
option routers 192.168.42.1;
default-lease-time 600;
max-lease-time 7200;
option domain-name "local";
option domain-name-servers 8.8.8.8, 8.8.4.4;
/etc/default/isc-dhcp-server:
# Defaults for isc-dhcp-server (sourced by /etc/init.d/isc-dhcp-server)
# Path to dhcpd's config file (default: /etc/dhcp/dhcpd.conf).
#DHCPDv4_CONF=/etc/dhcp/dhcpd.conf
#DHCPDv6_CONF=/etc/dhcp/dhcpd6.conf
# Path to dhcpd's PID file (default: /var/run/dhcpd.pid).
#DHCPDv4_PID=/var/run/dhcpd.pid
#DHCPDv6_PID=/var/run/dhcpd6.pid
# Additional options to start dhcpd with.
# Don't use options -cf or -pf here; use DHCPD_CONF/ DHCPD_PID instead
#OPTIONS=""
# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
# Separate multiple interfaces with spaces, e.g. "eth0 eth1".
INTERFACESv4="wlan0"
INTERFACESv6="wlan0"
/etc/network/interfaces:
# interfaces(5) file used by ifup(8) and ifdown(8)
# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
auto lo
iface lo inet loopback
auto eth0
allow-hotplug eth0
iface eth0 inet dhcp
allow-hotplug wlan0
iface wlan0 inet static
address 192.168.42.1
netmask 225.225.225.0
I attempted some things from other questions on here such as starting with ifup wlan0:
pi@raspberrypi:~ $ sudo ifup wlan0
Error: inet prefix is expected rather than "192.168.42.1/225.225.225.0".
ifup: failed to bring up wlan0
Phones will connect to the spot but without a connection -- it gets to the handshake and then holds:
wlan0: STA 90:60:f1:b2:fc:96 IEEE 802.11: associated
wlan0: AP-STA-CONNECTED 90:60:f1:b2:fc:96
wlan0: STA 90:60:f1:b2:fc:96 RADIUS: starting accounting session
5ACAC8C4-00000000
wlan0: STA 90:60:f1:b2:fc:96 WPA: pairwise key handshake completed (RSN)
Hopefully it's just a typo I missed somewhere but I can't quite figure it out. This is a fresh install as well.
networking server ethernet dhcp raspberrypi
networking server ethernet dhcp raspberrypi
edited Apr 9 at 2:05
asked Apr 9 at 0:44
Question_asker
11
11
Can you able to connect through ssh to your Pi ?
â Keval Mehta
Apr 9 at 5:45
add a comment |Â
Can you able to connect through ssh to your Pi ?
â Keval Mehta
Apr 9 at 5:45
Can you able to connect through ssh to your Pi ?
â Keval Mehta
Apr 9 at 5:45
Can you able to connect through ssh to your Pi ?
â Keval Mehta
Apr 9 at 5:45
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1023192%2fconnection-issues-raspberry-pi-wifi-hotspot%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Can you able to connect through ssh to your Pi ?
â Keval Mehta
Apr 9 at 5:45