Hallo liebe Community,
ich möchte gerne mehrere Wlan Access Points auf meinem Raspberry Pi betreiben.
Leider funktioniert es nicht wirklich.
sudo nano /etc/network/interfaces
Code
auto wlan0
#allow-hotplug wlan0
iface wlan0 inet static
address 10.11.12.1
netmask 255.255.255.0
auto wlan1
iface wlan1 inet static
address 11.12.13.1
netmask 255.255.255.0
Alles anzeigen
sudo nano /etc/hostapd/hostapd.conf
Code
interface=wlan0
#hw_mode=g
channel=10
ieee80211d=1
country_code=DE
ieee80211n=1
wmm_enabled=1
driver=rtl871xdrv
# First AP
bss=wlan0
ssid=Small-Size-Server-Cube
auth_algs=1
wpa=2
wpa_key_mgmt=WPA-PSK
rsn_pairwise=CCMP
wpa_passphrase=7GU8BUX5
# Seconf AP
bss=wlan1
ssid=Wlan-Access-Point
auth_algs=1
rsn_pairwise=CCMP
wpa=1
wpa_key_mgmt=WPA-PSK
wpa_passphrase=Q9H6G8DV
Alles anzeigen
sudo nano /etc/dhcp3/dhcpd.conf
Code
ddns-update-style none;
authoritative;
log-facility local7;
subnet 10.11.12.0 netmask 255.255.255.0 {
option routers 10.11.12.1;
option subnet-mask 255.255.255.0;
option broadcast-address 10.11.12.255;
option domain-name-servers 10.11.12.1;
option domain-name-servers 8.8.8.8, 8.8.4.4;
option domain-name "wlan0";
default-lease-time 600;
max-lease-time 7200;
range 10.11.12.2 10.11.12.11;
}
subnet 11.12.13.0 netmask 255.255.255.0 {
option routers 11.12.13.1;
option subnet-mask 255.255.255.0;
option broadcast-address 11.12.13.255;
option domain-name-servers 11.12.13.1;
option domain-name-servers 8.8.8.8, 8.8.4.4;
option domain-name "wlan1";
default-lease-time 600;
max-lease-time 7200;
range 11.12.13.2 11.12.13.250;
}
Alles anzeigen
sudo nano /etc/default/isc-dhcp-server
Code
# 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/dhcp3/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="wlan0 wlan1"
Alles anzeigen
Ich hoffe einer kennt sich mit der Problematik aus.
Gruß,
Alexander