FreeBSD/jails/config/vm/create_taps.sh

40 lines
829 B
Bash
Executable File

#!/bin/sh
# Copyright (c) 2018-2020, diyIT.org
# All rights reserved.
#
# BSD 2-Clause License ("Simplified BSD License" or "FreeBSD License")
# https://diyit.org/license/
#
#
ifconfig tap81 create
ifconfig bridge1 addm tap81 up
ifconfig tap81 up
ifconfig tap81 inet6 auto_linklocal
ifconfig tap82 create
ifconfig bridge1 addm tap82 up
ifconfig tap82 up
ifconfig tap82 inet6 auto_linklocal
ifconfig tap83 create
ifconfig bridge1 addm tap83 up
ifconfig tap83 up
ifconfig tap83 inet6 auto_linklocal
ifconfig tap84 create
ifconfig bridge1 addm tap84 up
ifconfig tap84 up
ifconfig tap84 inet6 auto_linklocal
ifconfig tap90 create
ifconfig bridge1 addm tap90 up
ifconfig tap90 up
ifconfig tap90 inet6 auto_linklocal
ifconfig tap190 create
ifconfig bridge2 addm tap190 up
ifconfig tap190 up
ifconfig tap190 inet6 auto_linklocal