zoukankan      html  css  js  c++  java
  • (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








  • 相关阅读:
    go学习中的零散笔记
    git reset --hard与git reset --soft的区别
    php必学必会
    gdb 解core
    php学习
    高仿京东到家APP引导页炫酷动画效果
    RxHttp
    SVN回滚文件
    遍历枚举
    python3 多线程
  • 原文地址:https://www.cnblogs.com/ztguang/p/12646160.html
Copyright © 2011-2022 走看看