/********************************************************************
* busybox filesystem ifup
* 声明:
* 本文主要是记录busybox文件系统中ifup使用报错的解决方式。
*
* 2016-1-24 深圳 南山平山村 曾剑锋
*******************************************************************/ 一、错误处理1:
. 现象:
udevd version started
zengjf login: root
login[]: root login on 'ttymxc0'
udhcpc (v1.24.1) started
Setting IP address 0.0.0.0 on eth0
eth0: Freescale FEC PHY driver [Generic PHY] (mii_bus:phy_addr=:, irq=-)
Sending discover...
Sending discover...
Sending discover...
No lease, forking to background
[zengjf@root ~]# ifup -a
ifup: can't open '/etc/network/interfaces': No such file or directory
. 解决办法:
cat /etc/network/interfaces
# Loopback interface.
auto lo
iface lo inet loopback # dhcp
auto eth0
iface eth0 inet dhcp # fixed
auto eth1
iface eth1 inet static
address 192.168.1.254
netmask 255.255.255.0
broadcast 192.168.1.255
            gateway 192.168.1.1 二、错误处理2:
. 现象:
[zengjf@root network]# ifup -a
run-parts: /etc/network/if-pre-up.d: No such file or directory
run-parts: /etc/network/if-up.d: No such file or directory
ifup: can't open '/var/run/ifstate': No such file or directory
[zengjf@root network]#
. 解决方法:
cd /etc/network
mkdir if-down.d if-post-down.d if-pre-up.d if-up.d
mkdir /var/run 三、错误处理3:
. 现象:
[zengjf@root ]# ifup -a
ip: RTNETLINK answers: File exists
udhcpc (v1.24.1) started
Setting IP address 0.0.0.0 on eth0
Sending discover...
Sending discover...
Sending discover...
No lease, failing
ip: can't find device 'eth1'
ip: SIOCGIFFLAGS: No such device
[zengjf@root ]#
. 解决办法:
cat /etc/network/interfaces
# Loopback interface.
auto lo
iface lo inet loopback # dhcp
auto eth0
iface eth0 inet dhcp # fixed
#auto eth1
#iface eth1 inet static
# address 192.168.1.254
# netmask 255.255.255.0
# broadcast 192.168.1.255
# gateway 192.168.1.1

最新文章

  1. jvm性能参数与调优
  2. 2. Android系统启动流程
  3. dom自定义属性 兼容 index值获取
  4. mysql数据库---同时插入两个表以上的数据
  5. 存储过程优点&缺点
  6. ios app的真机调试与发布配置
  7. Java-->类的成员
  8. Notes of the scrum meeting(11/3)
  9. IE如何兼容placeholder属性
  10. [开心IT面试题] realloc用法
  11. Zookeeper实践方案:(4)命名服务
  12. 如何在Ubuntu 11.10上连接L2TP VPN
  13. mysql 创建数据 utf8
  14. 纯代码实现WordPress评论回复自动添加@评论者的功能
  15. SpringBoot简单打包部署(附工程)
  16. Windows 支持 OpenSSH 了!
  17. James Munkres Topology: Sec 18 Exer 12
  18. 【读书笔记】iOS-更改编辑器键的绑定
  19. (转)VS2010反编译dll之后存在的resource修改为resx
  20. spring MVC 使用 hibernate validator验证框架,国际化配置

热门文章

  1. Wmware Center安装过程记录
  2. BestCoder Round #3
  3. POJ 2771 Guardian of Decency(求最大点独立集)
  4. hdu 4586 Play the Dice
  5. OPenGL中三维图形的矩阵变换
  6. Sina App Engine(SAE)入门教程(7)- Storage使用
  7. 英特尔Intel
  8. 让Windows蓝屏死机
  9. C#中SaveFileDialog 和OpenFileDialog 的用法
  10. *windows下安装以及配置nginx