Skip to content

Instantly share code, notes, and snippets.

View thomas-maurice's full-sized avatar

Thomas Maurice thomas-maurice

View GitHub Profile
@thomas-maurice
thomas-maurice / setup-net.sh
Last active March 20, 2024 20:52
Setup the openwrt networks
#!/bin/bash
set -eo pipefail
# List of bridges to create space delimited
bridges="sw-r0-eth0 sw-r0-eth1 sw-r0-eth2 sw-r0-eth3"
# Veths peirs to create with the following format, space delimited
# <veth dev 1>[|options]:<veth dev 1>[|options]
# where options are a comma delimited key=values pair
# options: master=<master bridge> or dhcp