my current configuration is as follows:
I recieve Internet from the house I live in. It comes via Ethernet and has a DHCP running. The Problem is, that it is MAC-Adress limited to one device. Therefore I got my RPi 3B v1.2 configured as Wifi Router, wich is working fine. So the configuration is:
House-Internet --eth0--> Pi --wlan0--> Laptop
IP Ranges are:
Here is a link to my interfaces-configuration: https://bit.ly/2DZ6DgX
DHCP for wlan0 is made by dnsmasq with standard settings.
What I want to do: I want to configure a second ethernet-adapter to use the same network as wlan0. The eth1 dongle is a generic usb ethernet adapter. So the internet (coming from eth0 and the same network/iprange as wlan0).
I tried creating a bridge between eth1 and wlan0 with brctl. As soon as I plugin a device on eth1, I won't get internet connection on both wlan0 and eth1.
Hope you can help me.
# Localhost auto lo iface lo inet loopback # Ethernet auto eth0 allow-hotplug eth0 iface eth0 inet manual auto eth1 allow-hotplug eth1 iface eth1 inet static address 192.168.1.2 netmask 255.255.255.0 auto br0 iface br0 inet dhcp bridge_ports eth1 wlan0 bridge_fd 0 bridge_stp off # WLAN-Interface auto wlan0 allow-hotplug wlan0 iface wlan0 inet static address 192.168.1.1 netmask 255.255.255.0 # NAT und Masquerading aktivieren up /sbin/iptables -A FORWARD -o eth0 -i wlan0 -m conntrack --ctstate NEW -j ACCEPT up /sbin/iptables -A FORWARD -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT up /sbin/iptables -t nat -F POSTROUTING up /sbin/iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE # IP-Forwarding aktivieren up sysctl -w net.ipv4.ip_forward=1 up sysctl -w net.ipv6.conf.all.forwarding=1 # hostapd und dnsmasq neu starten up service hostapd restart up service dnsmasq restart