/********************************************************************
* 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

busybox filesystem ifup的更多相关文章

  1. busybox filesystem httpd php-5.5.31 sqlite3 webserver

    /******************************************************************** * busybox filesystem httpd php ...

  2. busybox filesystem udhcpc 原理

    /******************************************************************** * busybox filesystem udhcpc 原理 ...

  3. busybox filesystem ts_config: No such file or directory

    /******************************************************************** * busybox filesystem ts_config ...

  4. busybox filesystem add ldd function

    /******************************************************************** * busybox filesystem add ldd f ...

  5. busybox filesystem matrix-gui-2.0 undefined function json_encode()

    /******************************************************************************** * matrix-gui-2.0 u ...

  6. BusyBox ifup udhcpc后台运行

    /********************************************************************** * BusyBox ifup udhcpc后台运行 * ...

  7. Linux根文件系统分析之init和busybox

    Hi,大家好!我是CrazyCatJack.今天给大家讲解Linux根文件系统的init进程和busybox的配置及编译. 先简单介绍一下,作为一个嵌入式系统,要想在硬件上正常使用的话.它的软件组成大 ...

  8. 给Android系统安装busybox

    转自:http://blog.csdn.net/lxgwm2008/article/details/38925051 busybox号称Linux平台的瑞士军刀,它集成了100多个最常用的Linux命 ...

  9. 基于 debootstrap 和 busybox 构建 mini ubuntu

    基于 debootstrap 和 busybox 构建 mini ubuntu 最近的工作涉及到服务器自动安装和网络部署操作系统,然后使用 ansible 和 saltsatck 进行配置并安装 op ...

随机推荐

  1. AFNetworking VS ASIHTTPRequest

    AFNetworking和ASIHTTPRequest,大致如下: 使用上:AFN是用上较ASI略简单,但扩展不如ASI;AFN能按普通的block写法直接用闭包的写法,但是ASI不行,这样ASI的代 ...

  2. SVN检出资源文件

    一.选择new,输入svn,点击“从SVN检出项目” 二.选择“创建新的资源库位置”或“使用现有的资源库位置”(如果是新建,则需要地址和用户名.密码) 三.从现有的资源库选中项目

  3. C++ 面试题整理

    我和朋友们面到的c++试题整理 虚表 static const sizeof 可构造不可继承的类 stl Iterator失效 map vector vector的removed_if 优化 ---- ...

  4. Aizu 2325 Mysterious Maze

    走迷宫 ~ 不同的是题目给了你转向的方向序列 dis[x][y]表示到(x,y) 使用了最少的转向次数 #include<cstdio> #include<cstring> # ...

  5. uva 11627

    二分 #include <cstdio> #include <cstdlib> #include <cmath> #include <map> #inc ...

  6. LA 4329

    第一次敲树状数组  因为一个小错误 wa了 n 多遍  终于ac  太不容易了 /*********************************************************** ...

  7. Searching a 2D Sorted Matrix Part I

    Write an efficient algorithm that searches for a value in an n x m table (two-dimensional array). Th ...

  8. POJ3764 The xor-longest path Trie树

    代码写了不到30分钟,改它用了几个小时.先说题意,给你一颗树,边上有权,两点间的路径上的路径的边权抑或起来就是路径的xor值,要求的是最大的这样的路径是多少.讲到树上的两点的xor,一个常用的手段就是 ...

  9. poj 3083 Children of the Candy Corn (广搜,模拟,简单)

    题目 靠墙走用 模拟,我写的是靠左走,因为靠右走相当于 靠左走从终点走到起点. 最短路径 用bfs. #define _CRT_SECURE_NO_WARNINGS #include<stdio ...

  10. Android 近百个项目的源代码

    Android 近百个项目的源代码 Android PDF 阅读器 http://sourceforge.net/projects/andpdf/files/个人记账工具 OnMyMeans http ...