Creating a network bridge

creating the bridge

sudo ip link add name bridget type bridge

bring it up

sudo ip link set bridget up

assign ip to bridge with new subnet: ip a add 10.0.0.1/24 dev bridget attach tap interface to bridge : sudo ip link set tap0 master bridget

give guest vm a ip within host subnet: ip a add 10.0.0.2/24 dev ens3 bring interface up: ip link set ens3 up add route in guest (default -> host ip) : ip route add default via 10.0.0.1

enable routing on host echo 1 > /proc/sys/net/ipv4/ip_forward