?? down
字號(hào):
START=$1
STOP=$2
NUM=`expr $STOP - $START`
TEMP=${START}
if [ $1 -lt "1" ]; then
exit
fi
echo "shut down ethernet interface, and remvoe config file from sysconfig dir..."
#dhclient -r
while [ $TEMP -le $STOP ]
do
if [ -f /etc/sysconfig/network-scripts/ifcfg-eth${TEMP} ]; then
dhclient -r eth${TEMP}
# ifconfig eth${TEMP} down
rm -f /etc/sysconfig/network-scripts/ifcfg-eth${TEMP}
fi
TEMP=`expr $TEMP + 1`
done
sleep 2
echo "remove module vmeth...."
rmmod vmeth
echo "remove interface eth promisc mode"
ifconfig eth0 -promisc
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -