发现自己机子没法获取IP时,我想重新激活下。
可当我在机子里面输入ifdown eht0时 出现错误提示
/sbin/ifdown:line 2:vm :command not found
/sbin/ifdown:line 2:vm :command not found
/etc/sysconfig/network-scpripts/ifdown-post:line 2 :vm :command not found
/etc/sysconfig/network-scpripts/ifdown-post:line 2 :vm :command not found
英语的意思大概是提示命令无法找到
我用vi 进/etc/sysconfig/network-scpripts/ifdown-post 检查第二行
里面的内容是
#!/bin/sh
# This should be called whenever an interface goes down,not just when
# it is brought down explictitly
cd /etc/sysconfig/network-scripts
. network-functions
CONFIG=$1
source_config