busybr
来自「linux network bridge application tool」· 代码 · 共 24 行
TXT
24 行
#! /bin/shBR=${1:-"br549"}ETH0=${1:-"eth0"}ETH1=${1:-"eth1"}# fetch ip of working br0IP=`/sbin/ifconfig $BR | sed -n -e 's/^.*inet addr:\([0-9][0-9\.]*\).*$/\1/p'`echo "Using IP address $IP"while true;do ifconfig $BR down brctl delbr $BR ifconfig $ETH0 $IP ifconfig $ETH0 0.0.0.0 brctl addbr $BR brctl addif $BR $ETH0 brctl addif $BR $ETH1 ifconfig $BR $IP sleep 10done
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?