up
来自「LINUX网络代码详解,好东西!不能错过哟!」· 代码 · 共 23 行
TXT
23 行
START=$1
STOP=$2
NUM=`expr $STOP - $START`
NUM=`expr $NUM + 1`
TEMP=${START}
if [ $1 -lt "1" ]; then
exit
fi
echo "Setting interface eth0 promisc mode"
ifconfig eth0 promisc
echo "Launch vmeth drive...."
insmod vmeth.o card_num=${NUM}
sleep 10
echo "Copying interface config file to sys directory"
while [ $TEMP -le $STOP ]
do
cp -f ./ifcfg/ifcfg-eth${TEMP} /etc/sysconfig/network-scripts
TEMP=`expr $TEMP + 1`
done
dhclient
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?