khuedoan-homelab/infrastructure/bridge.sh
2020-10-28 19:03:59 +07:00

11 lines
228 B
Bash

#!/bin/sh
ip link add type veth
ip link set dev veth0 up
ip link set dev veth1 up
ip link add name uplinkbr type bridge
ip link set uplinkbr up
ip link set veth0 up
ip link set veth0 master uplinkbr
ip link set dev uplinkbr up