<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Raspberry Pi-Router Archive - Benefit-Blog</title>
	<atom:link href="https://www.benefit-blog.de/tag/raspberry-pi-router/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.benefit-blog.de/tag/raspberry-pi-router/</link>
	<description></description>
	<lastBuildDate>Wed, 20 Dec 2023 17:49:53 +0000</lastBuildDate>
	<language>de</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>https://www.benefit-blog.de/wp-content/uploads/2019/10/favicon-32x32.png</url>
	<title>Raspberry Pi-Router Archive - Benefit-Blog</title>
	<link>https://www.benefit-blog.de/tag/raspberry-pi-router/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Raspberry Pi als AccessPoint</title>
		<link>https://www.benefit-blog.de/raspberry-pi-als-accesspoint/</link>
					<comments>https://www.benefit-blog.de/raspberry-pi-als-accesspoint/#respond</comments>
		
		<dc:creator><![CDATA[Benefit-Blog]]></dc:creator>
		<pubDate>Sun, 03 Nov 2019 09:54:18 +0000</pubDate>
				<category><![CDATA[Raspberry]]></category>
		<category><![CDATA[Access Point]]></category>
		<category><![CDATA[Raspberry Pi]]></category>
		<category><![CDATA[Raspberry Pi-Router]]></category>
		<category><![CDATA[Raspberry-Router]]></category>
		<category><![CDATA[WiFi]]></category>
		<guid isPermaLink="false">https://www.benefit-blog.de/?p=9104</guid>

					<description><![CDATA[<a href="https://www.benefit-blog.de/raspberry-pi-als-accesspoint/" title="Raspberry Pi als AccessPoint" rel="nofollow"><img width="150" height="150" src="https://www.benefit-blog.de/wp-content/uploads/2019/11/harrison-broadbent-c3YpscwJb04-unsplash-150x150.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="" style="display: block; margin: auto; margin-bottom: 5px;max-width: 100%;" link_thumbnail="1" decoding="async" srcset="https://www.benefit-blog.de/wp-content/uploads/2019/11/harrison-broadbent-c3YpscwJb04-unsplash-150x150.jpg 150w, https://www.benefit-blog.de/wp-content/uploads/2019/11/harrison-broadbent-c3YpscwJb04-unsplash-350x350.jpg 350w, https://www.benefit-blog.de/wp-content/uploads/2019/11/harrison-broadbent-c3YpscwJb04-unsplash-600x600.jpg 600w, https://www.benefit-blog.de/wp-content/uploads/2019/11/harrison-broadbent-c3YpscwJb04-unsplash-300x300.jpg 300w, https://www.benefit-blog.de/wp-content/uploads/2019/11/harrison-broadbent-c3YpscwJb04-unsplash-1024x1024.jpg 1024w" sizes="(max-width: 150px) 100vw, 150px" /></a><p>Raspberry Pi als AccessPoint </p>
<p>Als ich mal wieder mit dem Raspberry Pi etwas gemacht hatte und ich einen Sensor über WLAN anbinden wollte, bin ich auf ein Problem gestoßen. Möchte ich an den Raspberry Pi einen Sensor [...]</p>
<p>Der Beitrag <a href="https://www.benefit-blog.de/raspberry-pi-als-accesspoint/">Raspberry Pi als AccessPoint</a> erschien zuerst auf <a href="https://www.benefit-blog.de">Benefit-Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<a href="https://www.benefit-blog.de/raspberry-pi-als-accesspoint/" title="Raspberry Pi als AccessPoint" rel="nofollow"><img width="150" height="150" src="https://www.benefit-blog.de/wp-content/uploads/2019/11/harrison-broadbent-c3YpscwJb04-unsplash-150x150.jpg" class="webfeedsFeaturedVisual wp-post-image" alt="" style="display: block; margin: auto; margin-bottom: 5px;max-width: 100%;" link_thumbnail="1" decoding="async" srcset="https://www.benefit-blog.de/wp-content/uploads/2019/11/harrison-broadbent-c3YpscwJb04-unsplash-150x150.jpg 150w, https://www.benefit-blog.de/wp-content/uploads/2019/11/harrison-broadbent-c3YpscwJb04-unsplash-350x350.jpg 350w, https://www.benefit-blog.de/wp-content/uploads/2019/11/harrison-broadbent-c3YpscwJb04-unsplash-600x600.jpg 600w, https://www.benefit-blog.de/wp-content/uploads/2019/11/harrison-broadbent-c3YpscwJb04-unsplash-300x300.jpg 300w, https://www.benefit-blog.de/wp-content/uploads/2019/11/harrison-broadbent-c3YpscwJb04-unsplash-1024x1024.jpg 1024w" sizes="(max-width: 150px) 100vw, 150px" /></a><h1>Raspberry Pi als AccessPoint</h1>
<p><a href="https://www.az-delivery.de/blogs/azdelivery-blog-fur-arduino-und-raspberry-pi/raspberry-pi-als-accesspoint">Artikel von Albert Vu 18.02.2019</a></p>
<p>Als ich mal wieder mit dem <a href="https://www.amazon.de/Raspberry-Pi-ARM-Cortex-A72-Bluetooth-Micro-HDMI/dp/B07TC2BK1X?keywords=Raspberry%2BPi&amp;qid=1689662688&amp;sr=8-4&amp;th=1&amp;linkCode=sl1&amp;tag=benefitblog06-21&amp;linkId=34bf3c0c1a496f18b972fe3c744783d9&amp;language=de_DE&amp;ref_=as_li_ss_tl">Raspberry Pi*</a> etwas gemacht hatte und ich einen Sensor über WLAN anbinden wollte, bin ich auf ein Problem gestoßen. Möchte ich an den <a href="https://www.amazon.de/Raspberry-Pi-ARM-Cortex-A72-Bluetooth-Micro-HDMI/dp/B07TC2BK1X?keywords=Raspberry%2BPi&amp;qid=1689662688&amp;sr=8-4&amp;th=1&amp;linkCode=ll1&amp;tag=benefitblog0e-21&amp;linkId=bcebed3b723aa3b70f769c1df14086c8&amp;language=de_DE&amp;ref_=as_li_ss_tl">Raspberry Pi*</a> einen Sensor mit WLAN verbinden, benötige ich einen WLAN zusätzlich als Hardware. Der Raspberry Pi besitzt ein WLAN-Modul, warum nicht dies als AccessPoint verwenden und den Router einsparen?</p>
<p>Wie dies eingerichtet wird, zeigen wir euch heute hier:</p>
<p>In diesem Blog verwenden wir einen Raspberry Pi 3 B+ und eine  SD-Karte mit aktuellem Image (Raspbian Stretch Lite &#8211; Release date: 2018-10-09)</p>
<p>Um direkt ohne Bildschirm den Raspberry Pi über SSH konfigurieren können eine Datei mit dem Namen &#8222;ssh&#8220; auf der Boot Partition ablegen. Dies wird im Raspberry Pi eBook ausführlich erklärt, hier nur als kurzer Hinweis.</p>
<p><strong>Als nächstes loggen wir uns auf den Raspberry Pi ein und machen ein vollständies Update:<br />
</strong><code>sudo apt-get update &amp;&amp; sudo apt-get upgrade &amp;&amp; sudo apt-get dist-upgrade &amp;&amp; sudo apt-get autoremove &amp;&amp; sudo apt-get autoclean</code></p>
<p><strong>Nachdem unser Raspberry Pi nun aktuell ist, konfigurieren wir die WLAN-Netzwerkschnittstelle mit einer festen IP.<br />
</strong><code>sudo nano /etc/network/interfaces</code></p>
<p>In die Datei schreiben wir nun folgendes:<br />
<code># interfaces(5) file used by ifup(8) and ifdown(8)<br />
# Please note that this file is written to be used with dhcpcd<br />
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'<br />
# Include files from /etc/network/interfaces.d:<br />
source-directory /etc/network/interfaces.d<br />
# localhost<br />
auto lo<br />
iface lo inet loopback<br />
# ethernet<br />
auto eth0<br />
iface eth0 inet dhcp<br />
# WLAN-interface<br />
allow-hotplug wlan0<br />
iface wlan0 inet static<br />
address 192.168.222.1<br />
netmask 255.255.255.0<br />
</code><br />
Diese Konfiguration bewirkt, dass der Raspberry Pi nun die IP-Adresse 192.168.222.1 auf der WLAN-Schnittstelle fest bekommt und bei der LAN-Schnittstelle nach wie vor eine IP-Adresse dynamisch zugewiesen bekommt.</p>
<p><strong>Da wir den Raspberry Pi nun als &#8222;Server&#8220; verwenden möchten, müssen wir den DHCP-Client auf der WLAN-Schnittstelle deaktivieren.<br />
</strong><code>sudo nano /etc/dhcpcd.conf</code></p>
<p>Ganz am Ende der Datei ergänzen wir folgende Zeile:<br />
<code>denyinterfaces wlan0</code><br />
<strong><br />
Anschließend rebooten wir den Raspberry Pi mit:<br />
</strong><code>sudo reboot</code></p>
<p><strong>Nach dem Neustart installieren wir einen DHCP- und DNS-Server und konfigurieren diesen:<br />
</strong><code>sudo apt-get install dnsmasq</code></p>
<p><strong>Wenn man möchte kann man die alte Konfiguration sichern:</strong><br />
<code>sudo mv /etc/dnsmasq.conf /etc/dnsmasq.conf_alt</code></p>
<p><strong>Als nächstes rufen wir die Konfiguration zum Editieren auf:<br />
</strong><code>sudo nano /etc/dnsmasq.conf</code></p>
<p><strong>Folgende Konfiguration kommt nun in die Datei:</strong><br />
<code>interface=wlan0<br />
no-dhcp-interface=eth0<br />
dhcp-range=192.168.222.10,192.168.222.200,12h<br />
dhcp-option=option:dns-server,192.168.222.1</code><br />
Mit dieser Konfiguration stellt der Raspberry nun einen DNS-Server auf der 192.168.222.1 zur Verfügung und der DHCP-Server vergibt die IP-Adressen von 192.168.222.10 &#8211; 200. Auf der LAN-Netzwerkschnittstelle ist der DHCP-Server nicht aktiv.</p>
<p><strong>Wenn Ihr die Werte verändert habt und/oder testen wollt, ob die Konfiguration richtig übernommen wurde, könnt Ihr dies mit diesem Befehl testen:<br />
</strong><code>dnsmasq --test -C /etc/dnsmasq.conf</code></p>
<p>als Antwort sollte &#8222;dnsmasq: syntax check OK.&#8220; erscheinen.</p>
<p><strong>Nun legen wir noch einen Autostart an, damit in Zukunft alles automatisch bei einem Neustart anläuft:<br />
</strong><code>sudo systemctl enable dnsmasq</code></p>
<p><strong>Anschließend rebooten wir den Raspberry Pi wieder mit:<br />
</strong><code> sudo reboot</code></p>
<p><strong>Als letzten Schritt aktivieren und installieren wir einen AccessPoint:<br />
</strong><code>sudo apt-get install hostapd<br />
</code></p>
<p><strong>Nun die Konfigurationsdatei öffnen:<br />
</strong><code>sudo nano /etc/hostapd/hostapd.conf</code></p>
<p><strong>Der Konfiguratonsinhalt:</strong><br />
<code>interface=wlan0 ssid=raspberry-wlan channel=1 hw_mode=g ieee80211n=1 ieee80211d=1 country_code=DE wmm_enabled=1 auth_algs=1 wpa=2 wpa_key_mgmt=WPA-PSK rsn_pairwise=CCMP wpa_passphrase=az-delivery</code><br />
Mit dieser Konfiguraton erzeugen wir nun ein WLAN Signal auf Kanal 1, mit dem Namen &#8222;raspberry-wlan&#8220; und dem Passwort &#8222;az-delivery&#8220;.</p>
<p><strong>Wenn das WLAN nun automatisch nach einem Reboot erstellt werden soll, müssen wir das auch wieder in den Autostart aktivieren:<br />
</strong><code>sudo nano /etc/default/hostapd</code></p>
<p><strong>Wir ergänzen folgendem Dateiinhalt am ende der Datei:</strong><br />
<code>RUN_DAEMON=yes DAEMON_CONF="/etc/hostapd/hostapd.conf"</code></p>
<p><strong>Und anschließend im System aktivieren:<br />
</strong><code>sudo systemctl start hostapd<br />
sudo systemctl enable hostapd</code></p>
<p><strong>Nun können wir den Raspberry neustarten und jederzeit mit diesem Befehl den Status abrufen:<br />
</strong><code>sudo systemctl status hostapd</code></p>
<p>Nun sehen wir in unserer WLAN-Übersicht ein neues WLAN-Netz und können uns mit diesem Netzwerk verbinden:</p>
<p><img decoding="async" src="https://www.benefit-blog.de/wp-content/uploads/2019/11/WLAN_list_detected_raspberry-wlan.png" alt="" /></p>
<p>Nach der Eingabe des Passwortes:<br />
az-delivery<br />
Sind wir auch schon verbunden</p>
<p><img decoding="async" src="https://www.benefit-blog.de/wp-content/uploads/2019/11/connected_to_raspberry-wlan.png" alt="" /></p>
<p>Der DHCP-Server auf dem Raspberry läuft auch, denn er vergibt eine korrekte IP-Adresse aus dem angegebenen Bereich:</p>
<p><img decoding="async" src="https://www.benefit-blog.de/wp-content/uploads/2019/11/DHCP-Server_running_IP_addresses_raspberry_pi.png" alt="" /></p>
<p>Nun können wir den Raspberry als Router verwenden und weitere Projekte erstellen.</p>
<p><strong>Wir wünschen euch viel Spaß und lasst uns wissen, wofür ihr den &#8222;Raspberry-Router&#8220; einsetzt.</strong></p>
<p><a href="https://www.az-delivery.de/">AZ-Delivery.de</a></p>
<p>Beitragsbild: von Harrison Broadbent on <a href="https://unsplash.com/s/photos/raspberry-pi?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></p>
<p class="wpss_copy">Inhalt abgerufen von: <a href="https://www.az-delivery.de/blogs/azdelivery-blog-fur-arduino-und-raspberry-pi/raspberry-pi-als-accesspoint" target="_blank" rel="noopener noreferrer">https://www.az-delivery.de/blogs/azdelivery-blog-fur-arduino-und-raspberry-pi/raspberry-pi-als-accesspoint</a>.</p>
<p>Der Beitrag <a href="https://www.benefit-blog.de/raspberry-pi-als-accesspoint/">Raspberry Pi als AccessPoint</a> erschien zuerst auf <a href="https://www.benefit-blog.de">Benefit-Blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.benefit-blog.de/raspberry-pi-als-accesspoint/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
