/******************************************************************** * BusyBox filesystem ifup * Statement: * This article is mainly to record BusyBox file system in Ifup use error resolution method. * 2016-1-24 Shenzhen Nanshan Ping Shan village Zengjianfeng *************************************************************** ****/First, error handling 1:1. Symptom: UDEVD version126started ZENGJF login:root login[1423]: Root Login on'ttymxc0'udhcpc (v1.24.1) started Setting IP address0.0.0.0On eth0 eth0:freescale FEC PHY driver [Generic PHY] (mii_bus:phy_addr=1:xx, irq=-1) Sending Discover ... Sending Discover ... Sending Discover ... No lease, forking to background [[email protected]~]# Ifup-a Ifup:can'T Open'/etc/network/interfaces': No Such file or directory 2. Workaround: Cat/etc/network/Interfaces # LoopbackInterface. Auto Lo iface lo inet loopback # DHCP auto eth0 iface eth0 inet dh CP #fixedAuto eth1 iface eth1 inetStaticAddress192.168.1.254netmask255.255.255.0Broadcast192.168.1.255Second, error handling 2:1. Symptom: [[email protected] 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[email protected] network]#2. Workaround: CD/etc/Network mkdirif-down.dif-post-down.dif-pre-up.dif-UP.D mkdir/var/run three, error handling 3:1. Symptom: [[email protected]]# ifup-a ip:rtnetlink answers:file exists udhcpc (v1.24.1) started Setting IP address0.0.0.0On eth0 Sending Discover ... Sending Discover ... Sending Discover ... No lease, failing Ip:can't Find device'Eth1'ip:SIOCGIFFLAGS:No such device [[email protected]]#2. Workaround: Cat/etc/network/Interfaces # LoopbackInterface. Auto Lo iface lo inet loopback # DHCP auto eth0 iface eth0 inet dh CP #fixed#auto eth1 #iface eth1 inetStatic# Address192.168.1.254# netmask255.255.255.0# Broadcast192.168.1.255
BusyBox filesystem Ifup