ich habe Debian 5.0 installiert und wollte alle Dienste, die ich bisher verwendet habe wieder einrichten.
Jetzt macht mir dnsmasq in Verbindung mit hostapd ein paar Probleme.
Die WLAN-Verbindung funktioniert soweit, aber dnsmasq schreibt folgende Fehlermeldungen nach /var/log/daemon.log:
Die Konfigurationsdateien sehen wie folgt aus (mit Debian 4.0 hat es ohne Probleme damit funktioniert):...
server dnsmasq[2059]: started, version 2.45 cachesize 150
server dnsmasq[2059]: compile time options: IPv6 GNU-getopt no-ISC-leasefile DBus I18N TFTP
server dnsmasq[2059]: warning: interface ath0 does not currently exist
server dnsmasq[2059]: DHCP, IP range 192.168.1.4 -- 192.168.1.9, lease time 1h
server dnsmasq[2059]: DHCP, IP range 192.168.1.20 -- 192.168.1.29, lease time 1h
server dnsmasq[2059]: reading /etc/resolv.conf
dnsmasq[2059]: using nameserver 192.168.178.1#53
server dnsmasq[2059]: read /etc/hosts - 8 addresses
...
server dnsmasq[2059]: no address range available for DHCP request via ath0
/etc/hostapd/hostapd.conf
Code: Alles auswählen
interface=ath0
driver=madwifi
logger_syslog=-1
logger_syslog_level=2
logger_stdout=-1
logger_stdout_level=2
debug=0
dump_file=/tmp/hostapd.dump
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
ssid=rwap_bkp
country_code=DE
hw_mode=g
channel=60
beacon_int=100
dtim_period=2
max_num_sta=255
rts_threshold=2347
fragm_threshold=2346
macaddr_acl=0
auth_algs=2
ignore_broadcast_ssid=0
wme_enabled=0
wme_ac_bk_cwmin=4
wme_ac_bk_cwmax=10
wme_ac_bk_aifs=7
wme_ac_bk_txop_limit=0
wme_ac_bk_acm=0
wme_ac_be_aifs=3
wme_ac_be_cwmin=4
wme_ac_be_cwmax=10
wme_ac_be_txop_limit=0
wme_ac_be_acm=0
wme_ac_vi_aifs=2
wme_ac_vi_cwmin=3
wme_ac_vi_cwmax=4
wme_ac_vi_txop_limit=94
wme_ac_vi_acm=0
wme_ac_vo_aifs=2
wme_ac_vo_cwmin=2
wme_ac_vo_cwmax=3
wme_ac_vo_txop_limit=47
wme_ac_vo_acm=0
eapol_key_index_workaround=0
eap_server=0
own_ip_addr=192.168.1.1
wpa=2
wpa_passphrase=phrase
wpa_key_mgmt=WPA-PSK
Code: Alles auswählen
interface=ath0
dhcp-range=ath0,192.168.1.20,192.168.1.29,255.255.255.0,1h
dhcp-range=192.168.1.4,192.168.1.9,255.255.255.0,1h
dhcp-option=ath0,42,ptbtime1.ptb.de,ptbtime2.ptb.de
Code: Alles auswählen
# The loopback network interface
auto lo
iface lo inet loopback
# Kabelmodem
allow-hotplug eth0
iface eth0 inet static
address 192.168.100.2
netmask 255.255.255.0
network 192.168.100.0
broadcast 192.168.100.255
# LAN
allow-hotplug eth1
iface eth1 inet static
address 192.168.178.2
netmask 255.255.255.0
network 192.168.178.0
broadcast 192.168.178.255
gateway 192.168.178.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 192.168.178.1
dns-search robertwagner.homeip.net
auto ath0
iface ath0 inet static
pre-up wlanconfig ath0 destroy
pre-up wlanconfig ath0 create wlandev wifi0 wlanmode ap bssid
pre-up iwconfig ath0 mode master
#pre-up iwpriv ath0 mode 11g
pre-up iwpriv ath0 hide_ssid 0
wireless-rate 54M auto
# http://de.wikipedia.org/wiki/Wireless_LAN#Frequenzen_und_Kan.C3.A4le
wireless-channel 7 auto
address 192.168.1.1
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
Ausgabe von ifconfig ath0 nach dem Start:
Wenn ich nun ath0 eine IP mit "ifconfig ath0 192.168.1.1" zuweise und dnsmasq neu starte funktionert alles einwandfrei.ath0 Link encap:Ethernet Hardware Adresse 06:11:95:bb:31:8d
inet6-Adresse: fe80::411:95ff:febb:318d/64 Gültigkeitsbereich:Verbindung
UP BROADCAST RUNNING MULTICAST MTU:2290 Metrik:1
RX packets:70 errors:0 dropped:0 overruns:0 frame:0
TX packets:40 errors:0 dropped:0 overruns:0 carrier:0
Kollisionen:0 Sendewarteschlangenlänge:0
RX bytes:12700 (12.4 KiB) TX bytes:6595 (6.4 KiB)
Hoffe es weiß jemand, was ich an den Konfigurationsdateien ändern muss?
Danke im vorraus und Gruß
Robert