DHCP Não esta distribuindo os IPs (hostapd + isc-dhcp-server)

1. DHCP Não esta distribuindo os IPs (hostapd + isc-dhcp-server)

Joao Carlos Dias
joaokolisium

(usa Ubuntu)

Enviado em 04/04/2016 - 11:30h

Ola pessoal, eu estou tentando configurar uma rede wifi, eu configurei o hostapd e o dhcpd porem quando tento conectar na rede o meu android so ficar obtendo endereço ip, entao quer dizer que o dhcp nao esta transmitindo o ip para o dispositivo?
Configurações:
/etc/hostapd/hostapd.conf :
[spoiler]
interface=wlan0
driver=nl80211
hw_mode=b
ssid=DCOMP
channel=9

macaddr_acl=0
ignore_broadcast_ssid=0
logger_syslog=-1
logger_syslog_level=2
logger_stdout=-1
logger_stdout_level=1
debug=0
dump_file=/tmp/hostapd.dump
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
auth_algs=1
[/spoiler]

Configuração dhcpd:
/etc/dhcpd/dhcpd.conf :
[spoiler]
# /etc/dhcp/dhcpd.conf
ddns-update-style none;
default-lease-time 600;
max-lease-time 7200;
authoritative;
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.100 192.168.1.250;
option routers 192.168.1.1;
option domain-name-servers 8.8.8.8,8.8.4.4;
option broadcast-address 192.168.1.255;


host Win2003 {
hardware ethernet 09:0F:B0:FF:EA:10;
fixed-address 192.168.1.2;
}
}
[/spoiler]

/etc/default/isc-dhcp-server :
[spoiler]
# Defaults for isc-dhcp-server initscript
# sourced by /etc/init.d/isc-dhcp-server
# installed at /etc/default/isc-dhcp-server by the maintainer scripts

#
# This is a POSIX shell fragment
#

# Path to dhcpd's config file (default: /etc/dhcp/dhcpd.conf).
#DHCPD_CONF=/etc/dhcp/dhcpd.conf

# Path to dhcpd's PID file (default: /var/run/dhcpd.pid).
#DHCPD_PID=/var/run/dhcpd.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".
INTERFACES="eth0"
[/spoiler]

Monitorando o syslog (sudo tail -f /var/log/syslog):
[spoiler]
Apr 4 11:18:32 joaoPC avahi-daemon[560]: Interface wlan0.IPv6 no longer relevant for mDNS.
Apr 4 11:18:32 joaoPC avahi-daemon[560]: Leaving mDNS multicast group on interface wlan0.IPv6 with address fe80::5ec9:d3ff:fe19:adad.
Apr 4 11:18:32 joaoPC avahi-daemon[560]: Withdrawing address record for fe80::5ec9:d3ff:fe19:adad on wlan0.
^Cjoao@joaoPC:~sudo tail -f /var/log/syslog
Apr 4 11:17:01 joaoPC CRON[11483]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Apr 4 11:17:37 joaoPC hostapd: wlan0: STA 44:80:eb:58:39:c6 IEEE 802.11: authenticated
Apr 4 11:17:37 joaoPC hostapd: wlan0: STA 44:80:eb:58:39:c6 IEEE 802.11: associated (aid 1)
Apr 4 11:17:37 joaoPC hostapd: wlan0: STA 44:80:eb:58:39:c6 RADIUS: starting accounting session 5702771B-00000000
Apr 4 11:18:17 joaoPC dhcpd: DHCPREQUEST for 192.168.1.101 from 68:76:4f:e8:0f:44 via eth0: unknown lease 192.168.1.101.
Apr 4 11:18:17 joaoPC dhcpd: DHCPREQUEST for 192.168.1.101 from 68:76:4f:e8:0f:44 (android-ebf24dcf607c8321) via eth0
Apr 4 11:18:17 joaoPC dhcpd: DHCPACK on 192.168.1.101 to 68:76:4f:e8:0f:44 (android-ebf24dcf607c8321) via eth0
Apr 4 11:18:32 joaoPC avahi-daemon[560]: Interface wlan0.IPv6 no longer relevant for mDNS.
Apr 4 11:18:32 joaoPC avahi-daemon[560]: Leaving mDNS multicast group on interface wlan0.IPv6 with address fe80::5ec9:d3ff:fe19:adad.
Apr 4 11:18:32 joaoPC avahi-daemon[560]: Withdrawing address record for fe80::5ec9:d3ff:fe19:adad on wlan0.
^Cjoao@joaoPC:~sudo tail -f /var/log/syslog
Apr 4 11:17:01 joaoPC CRON[11483]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Apr 4 11:17:37 joaoPC hostapd: wlan0: STA 44:80:eb:58:39:c6 IEEE 802.11: authenticated
Apr 4 11:17:37 joaoPC hostapd: wlan0: STA 44:80:eb:58:39:c6 IEEE 802.11: associated (aid 1)
Apr 4 11:17:37 joaoPC hostapd: wlan0: STA 44:80:eb:58:39:c6 RADIUS: starting accounting session 5702771B-00000000
Apr 4 11:18:17 joaoPC dhcpd: DHCPREQUEST for 192.168.1.101 from 68:76:4f:e8:0f:44 via eth0: unknown lease 192.168.1.101.
Apr 4 11:18:17 joaoPC dhcpd: DHCPREQUEST for 192.168.1.101 from 68:76:4f:e8:0f:44 (android-ebf24dcf607c8321) via eth0
Apr 4 11:18:17 joaoPC dhcpd: DHCPACK on 192.168.1.101 to 68:76:4f:e8:0f:44 (android-ebf24dcf607c8321) via eth0
Apr 4 11:18:32 joaoPC avahi-daemon[560]: Interface wlan0.IPv6 no longer relevant for mDNS.
Apr 4 11:18:32 joaoPC avahi-daemon[560]: Leaving mDNS multicast group on interface wlan0.IPv6 with address fe80::5ec9:d3ff:fe19:adad.
Apr 4 11:18:32 joaoPC avahi-daemon[560]: Withdrawing address record for fe80::5ec9:d3ff:fe19:adad on wlan0.
Apr 4 11:21:38 joaoPC dhcpd: DHCPREQUEST for 192.168.1.12 from 18:89:5b:07:7c:9e via eth0: unknown lease 192.168.1.12.
Apr 4 11:21:38 joaoPC dhcpd: DHCPREQUEST for 192.168.1.12 from 18:89:5b:07:7c:9e (android-6d6ebfc7d99f5a3c) via eth0
Apr 4 11:21:38 joaoPC dhcpd: DHCPACK on 192.168.1.12 to 18:89:5b:07:7c:9e (android-6d6ebfc7d99f5a3c) via eth0
Apr 4 11:23:06 joaoPC dhcpd: DHCPREQUEST for 192.168.1.101 from 68:76:4f:e8:0f:44 via eth0: unknown lease 192.168.1.101.
Apr 4 11:23:06 joaoPC dhcpd: DHCPREQUEST for 192.168.1.101 from 68:76:4f:e8:0f:44 (android-ebf24dcf607c8321) via eth0
Apr 4 11:23:06 joaoPC dhcpd: DHCPACK on 192.168.1.101 to 68:76:4f:e8:0f:44 (android-ebf24dcf607c8321) via eth0
Apr 4 11:26:19 joaoPC AptDaemon: INFO: Quitting due to inactivity
Apr 4 11:26:19 joaoPC AptDaemon: INFO: Quitting was requested
Apr 4 11:26:19 joaoPC dbus[429]: [system] Activating service name='org.debian.apt' (using servicehelper)
Apr 4 11:26:20 joaoPC AptDaemon: INFO: Initializing daemon
Apr 4 11:26:20 joaoPC dbus[429]: [system] Successfully activated service 'org.debian.apt'
Apr 4 11:26:20 joaoPC AptDaemon.PackageKit: INFO: Initializing PackageKit compat layer
Apr 4 11:26:27 joaoPC dhcpd: DHCPREQUEST for 192.168.1.12 from 18:89:5b:07:7c:9e via eth0: unknown lease 192.168.1.12.
Apr 4 11:26:27 joaoPC dhcpd: Can't create new lease file: Permission denied
Apr 4 11:26:27 joaoPC dhcpd: DHCPREQUEST for 192.168.1.12 from 18:89:5b:07:7c:9e (android-6d6ebfc7d99f5a3c) via eth0
Apr 4 11:26:27 joaoPC dhcpd: DHCPACK on 192.168.1.12 to 18:89:5b:07:7c:9e (android-6d6ebfc7d99f5a3c) via eth0
Apr 4 11:27:55 joaoPC dhcpd: DHCPREQUEST for 192.168.1.101 from 68:76:4f:e8:0f:44 via eth0: unknown lease 192.168.1.101.
Apr 4 11:27:55 joaoPC dhcpd: DHCPREQUEST for 192.168.1.101 from 68:76:4f:e8:0f:44 (android-ebf24dcf607c8321) via eth0
Apr 4 11:27:55 joaoPC dhcpd: DHCPACK on 192.168.1.101 to 68:76:4f:e8:0f:44 (android-ebf24dcf607c8321) via eth0
^Cjoao@joaoPC:~sudo tail -f /var/log/syslog
Apr 4 11:29:42 joaoPC hostapd: wlan0: STA 18:89:5b:07:7c:9e RADIUS: starting accounting session 57027A4C-00000000
Apr 4 11:30:13 joaoPC hostapd: wlan0: STA 18:89:5b:07:7c:9e IEEE 802.11: disassociated
Apr 4 11:30:15 joaoPC hostapd: wlan0: STA 18:89:5b:07:7c:9e IEEE 802.11: authenticated
Apr 4 11:30:15 joaoPC hostapd: wlan0: STA 18:89:5b:07:7c:9e IEEE 802.11: associated (aid 1)
Apr 4 11:30:15 joaoPC hostapd: wlan0: STA 18:89:5b:07:7c:9e RADIUS: starting accounting session 57027A4C-00000001
Apr 4 11:30:46 joaoPC hostapd: wlan0: STA 18:89:5b:07:7c:9e IEEE 802.11: disassociated
Apr 4 11:30:47 joaoPC hostapd: wlan0: STA 18:89:5b:07:7c:9e IEEE 802.11: deauthenticated due to inactivity (timer DEAUTH/REMOVE)
Apr 4 11:30:47 joaoPC dhcpd: DHCPREQUEST for 192.168.1.12 from 18:89:5b:07:7c:9e via eth0: unknown lease 192.168.1.12.
Apr 4 11:30:47 joaoPC dhcpd: DHCPREQUEST for 192.168.1.12 from 18:89:5b:07:7c:9e (android-6d6ebfc7d99f5a3c) via eth0
Apr 4 11:30:47 joaoPC dhcpd: DHCPACK on 192.168.1.12 to 18:89:5b:07:7c:9e (android-6d6ebfc7d99f5a3c) via eth0
[/spoiler]


  






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts