鸟哥的私房菜里面P359有个命令 /sbin/ifconfig eth0,在fedora17命令行下执行后,

提示信息如下:eth0: error fetching interface information: Device not found.

百度之,发现有博主说这个可能是因为不同系统接口不同,他的系统上为eth1,故修改命令为/sbin/ifconfig eth0,提示信息错误依旧

eth1: error fetching interface information: Device not found.

采用dmesg命令查看ip具体情况:

dmesg |grep 'eth'

仔细查看之,发现网络接口确为eth0,怎么回事呢?看到第四行,eth0: error fetching interface information: Device not found 瞬间明白。修改 /sbin/ifconfig em2

显示出正常的IP信息。