Last active
April 5, 2022 09:18
-
-
Save kohlerdominik/12006028a487342bd84f5003e7484499 to your computer and use it in GitHub Desktop.
Raspberry Pi with Raspbian Stretch: use bridge interfaces
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get update && sudo apt-get install bridge-utils | |
sudo nano /etc/network/interfaces | |
iface eth0 inet manual | |
iface eth1 inet manual | |
auto eth0 | |
iface br0 inet manual | |
bridge_ports eth0 eth1 | |
sudo nano /etc/dhcpcd.conf | |
denyinterfaces eth0 eth1 | |
interface br0 | |
static ip_address=192.168.8.99/24 | |
static routers=192.168.8.1 | |
static domain_name_servers=8.8.8.8 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @kohlerdominik
I would recommend changing one line in your network interface settings..
Current
auto eth0
iface br0 inet manual
bridge_ports eth0 eth1
Recommended
auto eth0
iface br0 inet dhcp
bridge_ports eth0 eth1