Skip to content

Instantly share code, notes, and snippets.

@DirtyJerz
Last active March 2, 2019 15:45
Show Gist options
  • Save DirtyJerz/3d8289e5f77d779e13f3959bd381381a to your computer and use it in GitHub Desktop.
Save DirtyJerz/3d8289e5f77d779e13f3959bd381381a to your computer and use it in GitHub Desktop.
Bridge configuration for double hop piZero
~~~Pi3B+ /etc/dhcpcd.conf
interface eth0
static ip_address=10.20.16.100/24
static routers=10.20.16.1
interface usb0
static ip_address=10.20.16.101/24
static routers=10.20.16.1
interface usb1
static ip_address=10.20.16.102/24
static routers=10.20.16.1
interface usb2
static ip_address=10.20.16.103/24
static routers=10.20.16.1
interface usb3
static ip_address=10.20.16.104/24
static routers=10.20.16.1
~~~Pi3B+ /etc/network/interfaces
source-directory /etc/network/interfaces.d
auto br0
iface br0 inet static
address 10.20.16.100
netmask 255.255.255.0
bridge_ports eth0 usb0 usb1 usb2 usb3
bridge_stp off
bridge_fd 0
bridge_waitport 0
~~~Camera1 /etc/dhcpcd.conf
static ip_address=10.20.16.111/24
static routers=10.20.16.1
~~~Camera2 /etc/dhcpcd.conf
static ip_address=10.20.16.112/24
static routers=10.20.16.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment