#!/bin/bash

sudo ip link add name br0 type bridge
sudo ip link set dev br0 up

sudo ip tuntap add dev tap0 mode tap user `whoami`
sudo ip link set tap0 up
sudo ip link set tap0 master br0

sudo ip address add 192.168.0.62/24 dev br0
sudo ip route append default via 192.168.0.1 dev br0
sudo ip link set ens33 master br0
sudo ip address del 192.168.0.62/24 dev ens33
