zoukankan      html  css  js  c++  java
  • busybox filesystem ifup

    /********************************************************************
     *                   busybox filesystem ifup
     * 声明:
     *     本文主要是记录busybox文件系统中ifup使用报错的解决方式。
     *
     *                                 2016-1-24 深圳 南山平山村 曾剑锋
     *******************************************************************/
    
    一、错误处理1:
        1. 现象:
            udevd version 126 started
            zengjf login: root
            login[1423]: 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=1:00, irq=-1)
            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
        2. 解决办法:
            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: 1. 现象: [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]# 2. 解决方法: cd /etc/network mkdir if-down.d if-post-down.d if-pre-up.d if-up.d mkdir /var/run 三、错误处理3: 1. 现象: [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 ]# 2. 解决办法: 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
  • 相关阅读:
    GB/T 38879-2020 颗粒 粒度分析 彩色图像分析法
    GB/T 30431-2020 实验室气相色谱仪
    GB/T 50165-2020 古建筑木结构维护与加固技术标准
    GB/T 51405-2019 船厂总体设计标准
    GB/T 38922-2020 35kV及以下标准化继电保护装置通用技术要求
    GB/T 38953-2020 微电网继电保护技术规定
    GB/T 38886-2020 高温轴承钢等最新国家标准(2020-6-19)
    pytest_02(使用pychar执行pytest)
    pytest-01(安装pytest及运行规则)
    python-05(关于map函数的使用)
  • 原文地址:https://www.cnblogs.com/zengjfgit/p/5154714.html
Copyright © 2011-2022 走看看