busybox filesystem ifup
/********************************************************************
* 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的更多相关文章
- busybox filesystem httpd php-5.5.31 sqlite3 webserver
/******************************************************************** * busybox filesystem httpd php ...
- busybox filesystem udhcpc 原理
/******************************************************************** * busybox filesystem udhcpc 原理 ...
- busybox filesystem ts_config: No such file or directory
/******************************************************************** * busybox filesystem ts_config ...
- busybox filesystem add ldd function
/******************************************************************** * busybox filesystem add ldd f ...
- busybox filesystem matrix-gui-2.0 undefined function json_encode()
/******************************************************************************** * matrix-gui-2.0 u ...
- BusyBox ifup udhcpc后台运行
/********************************************************************** * BusyBox ifup udhcpc后台运行 * ...
- Linux根文件系统分析之init和busybox
Hi,大家好!我是CrazyCatJack.今天给大家讲解Linux根文件系统的init进程和busybox的配置及编译. 先简单介绍一下,作为一个嵌入式系统,要想在硬件上正常使用的话.它的软件组成大 ...
- 给Android系统安装busybox
转自:http://blog.csdn.net/lxgwm2008/article/details/38925051 busybox号称Linux平台的瑞士军刀,它集成了100多个最常用的Linux命 ...
- 基于 debootstrap 和 busybox 构建 mini ubuntu
基于 debootstrap 和 busybox 构建 mini ubuntu 最近的工作涉及到服务器自动安装和网络部署操作系统,然后使用 ansible 和 saltsatck 进行配置并安装 op ...
随机推荐
- BestCoder Round #2
TIANKENG’s restaurant http://acm.hdu.edu.cn/showproblem.php?pid=4883 竟然暴力1.44*10^7 还要*T=100 竟然过了 # ...
- 如何监控业务的响应速度?Cloud Insight SDK 实践分享
一直在说 Cloud Insight 是数据聚合平台,可以用 SDK 和 API 实现业务监控,如今不拿出点实践人们恐怕是不能信服.那今天本文就先简单介绍一下 SDK 可以应用在哪些方面,再举个真实用 ...
- hdu 1596 find the safest road(最短路,模版题)
题目 这是用Dijsktra做的,稍加改动就好,1000ms..好水.. #define _CRT_SECURE_NO_WARNINGS #include<string.h> #inclu ...
- java基础知识回顾之javaIO类---FileWriter和FileReader
FileWriter类的构造方法定义如下: 1.public FileWriter(File file)throws IOException 字符流的操作比字节流操作好在一点,就是可以直接输出字符串了 ...
- 看来要学 Asp.Net 了
C#大部分招聘都要这个:对个人用而言,太庞大了,所以对其的感观一直不咋,也就没想学了.
- 02 - Tomcat配置
Tomcat配置 本文内容 介绍 Windows UNIX daemon 1.介绍 首选看Tomcat目录下的RUNNING.TXT 2.Windows平台下 可以选择下载windows instal ...
- 将集成spring的项目从tomcat上移植到weblogic下存在的问题
当在weblogic下部署时, 1.需要jersey-servlet-xx.jar,jersey-core-xx.jar,jersey-server-xx.jar: 2.在web.xml中全局参数co ...
- ios7新增基础类库以及OC新特性
新特性: Modules:用XCode5新建工程默认支持modules编译,老项目需在Build Settings里查找modules,找到的Enable Modules选项设置为YES. 对应新增语 ...
- Spring Data JPA教程, 第三部分: Custom Queries with Query Methods(翻译)
在本人的Spring Data JPA教程的第二部分描述了如何用Spring Data JPA创建一个简单的CRUD应用,本博文将描述如何在Spring Data JPA中使用query方法创建自定义 ...
- PHP Redis 普通封装类
class redisInit { private $redis; //redis对象 /** * 初始化Redis * $config = array( * 'server' => '127. ...