Hallo an Alle,
ich habe versucht nach der folgenden Anleitung einen AP aufzusetzen.
http://www.tacticalcode.de/2013/02/raspbe…lan-bridge.html
Der AP scheint zu existieren. Denn mit der Android-App <Wifi Analyser> kann ich meinen AP neben anderen AP's aus der Nachbarschaft sehen.
Mein Notebook zeigt aber nur die AP's der Nachbarschaft an, aber nicht meinen. Alle drei Geräte (Raspi, smartphon und Notebook) stehen unmittelbar zusammen, Umkreis 30cm.
Ebenso erhält der Raspi auch keine staische IP, trotz Konfiguration in der /etc/network/interface.
Könnt Ihr mir einen Tipp geben, wo der Fehler liegen kann?
Ich hänge die relevanten *.conf-Dateien mit an. Sollte eine fehlen, sagt es mir.
Bis dann ...
MfG
Günter
Code
/etc/network/interfaces
auto lo
iface lo inet loopback
iface default inet dhcp
# Bestehendes Netzwek
iface eth0 inet static
address 192.168.178.33
netmask 255.255.255.0
broadcast 192.168.178.255
gateway 192.168.178.1
dns-nameservers 192.168.178.1
# WLAN Interface / AP-Adressraum
allow-hotplug wlan0
auto wlan0
iface wlan0 inet static
address 192.168.0.1
netmask 255.255.255.0
broadcast 192.168.0.255
# vorhandene Regeln und Ketten zuerst löschen (Restart-Funktionalität)
up /sbin/iptables -F
up /sbin/iptables -X
up /sbin/iptables -t nat -F
# Maskieren der LAN-Schnittstelle, Port-Forwarding & Nat aktivieren
up iptables -A FORWARD -o eth0 -i wlan0 -s 192.168.0.0/24 -m conntrack --ctstate NEW -j ACCEPT
up iptables -A FORWARD -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
up iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
up sysctl -w net.ipv4.ip_forward=1
Alles anzeigen
Code
/etc/hostapd/hostapd.conf
# Nur fuer den Bridge-Betrieb, fuer AP auskommentieren
#bridge=br0
# Schnittstelle und Treiber
interface=wlan0
driver=nl80211
# WLAN-Konfiguration
ssid=raspi-photo
channel=6
# ESSID sichtbar
ignore_broadcast_ssid=0
# Ländereinstellungen
country_code=DE
ieee80211d=1
# Übertragungsmodus
hw_mode=g
# Optionale Einstellungen
# supported_rates=10 20 55 110 60 90 120 180 240 360 480 540
# Draft-N Modus aktivieren / optional nur für entsprechende Karten
ieee80211n=1
# wmm-Funktionalität (fuer draft-n)
wmm_enabled=1
# Übertragungsmodus / Bandbreite 40MHz / siehe iw list
# ht_capab=[HT40+][SHORT-GI-40][DSSS_CCK-40]
# Beacons
beacon_int=100
dtim_period=2
# MAC-Authentifizierung
macaddr_acl=0
# max. Anzahl der Clients
max_num_sta=20
# Größe der Datenpakete/Begrenzung
rts_threshold=2347
fragm_threshold=2346
# hostapd Log Einstellungen
logger_syslog=-1
logger_syslog_level=2
logger_stdout=-1
logger_stdout_level=2
# temporäre Konfigurationsdateien
dump_file=/tmp/hostapd.dump
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
# Authentifizierungsoptionen
auth_algs=3
# Verschlüsselung / hier rein WPA2
wpa=2
rsn_preauth=1
rsn_preauth_interfaces=wlan0
wpa_key_mgmt=WPA-PSK
rsn_pairwise=CCMP
# Schlüsselintervalle / Standardkonfiguration
wpa_group_rekey=600
wpa_ptk_rekey=600
wpa_gmk_rekey=86400
# Zugangsschlüssel (PSK) / hier in Klartext (ASCII)
wpa_passphrase=xxxxxxxxxxxx
Alles anzeigen
Code
/etc/default/hostapd
# Defaults for hostapd initscript
#
# See /usr/share/doc/hostapd/README.Debian for information about alternative
# methods of managing hostapd.
#
# Uncomment and set DAEMON_CONF to the absolute path of a hostapd configuration
# file and hostapd will be started during system boot. An example configuration
# file can be found at /usr/share/doc/hostapd/examples/hostapd.conf.gz
#
DAEMON_CONF="/etc/hostapd/hostapd.conf"
RUN_DAEMON=yes
# Additional daemon options to be appended to hostapd command:-
# -d show more debug messages (-dd for even more)
# -K include key data in debug messages
# -t include timestamps in some debug messages
#
# Note that -B (daemon mode) and -P (pidfile) options are automatically
# configured by the init.d script and must not be added to DAEMON_OPTS.
#
#DAEMON_OPTS="-dd"
Alles anzeigen