(OK) 手动 添加 删除 bridge tap — tunctl — brctl



bridge="br_a_5"
tap="tap_a_5"

tunctl -t ${tap}
ifconfig ${tap} up
brctl addbr ${bridge}
brctl addif ${bridge} ${tap}
ifconfig ${bridge} up

+++++++++++++++++++++++++++++++++++++++++++++++++

bridge="br_a_1"
tap="tap_a_1"

ifconfig ${bridge} down
brctl delif ${bridge} ${tap}
brctl delbr ${bridge}

ifconfig ${tap} down
tunctl -d ${tap}

+++++++++++++++++++++++++++++++++++++++++++++++++

tcpdump -vv -n -i br_a_1

+++++++++++++++++++++++++++++++++++++++++++++++++

ifconfig tap_d_1 promisc up
ifconfig tap_d_2 promisc up
ifconfig tap_d_3 promisc up
ifconfig tap_d_4 promisc up
ifconfig tap_d_5 promisc up
ifconfig tap_d_6 promisc up
ifconfig tap_d_7 promisc up
ifconfig tap_d_8 promisc up
ifconfig tap_d_9 promisc up
ifconfig tap_d_10 promisc up
ifconfig tap_d_11 promisc up
ifconfig tap_d_12 promisc up
ifconfig tap_d_13 promisc up
ifconfig tap_d_14 promisc up
ifconfig tap_d_15 promisc up
ifconfig tap_d_16 promisc up
ifconfig tap_d_17 promisc up
ifconfig tap_d_18 promisc up
ifconfig tap_d_19 promisc up
ifconfig tap_d_20 promisc up
ifconfig tap_d_21 promisc up
ifconfig tap_d_22 promisc up
ifconfig tap_d_23 promisc up
ifconfig tap_d_24 promisc up
ifconfig tap_d_25 promisc up








原文地址:https://www.cnblogs.com/ztguang/p/12646160.html