[BusyBox] ifup, ifdown applets

Michael Sternberg mishka at sdf.lonestar.org
Sun Nov 17 06:16:03 UTC 2002


Busybox from latest CVS (2002.11.17-11:36+0000).

~> cat /etc/network/interfaces
auto lo
iface lo inet loopback
#
auto eth0
iface eth0 inet static
address 172.17.4.105
netmask 255.255.0.0
gateway 172.17.1.10
~> ifconfig
~> ifup -n -v -a
ifup: Configuring interface lo=lo (inet)
ifup: ifconfig lo 127.0.0.1 up
ifup: Configuring interface eth0=eth0 (inet)
ifup: ifconfig eth0 172.17.4.105 netmask 255.255.0.0             up
ifup:  route add default gw 172.17.1.10 eth0 
~> ifup -v -a
ifup: Configuring interface lo=lo (inet)
ifup: ifconfig lo 127.0.0.1 up
~> ifconfig
lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 iB)  TX bytes:0 (0.0 iB)
~> ifup -v -a
ifup: interface lo already configured
ifup: Configuring interface eth0=eth0 (inet)
ifup: ifconfig eth0 172.17.4.105 netmask 255.255.0.0             up
eth0: config: auto-negotiation on, 100HDX, 10HDX.
eth0: status: link down.
ifup:  route add default gw 172.17.1.10 eth0 
eth0: status: link up, 100 Mbps Half Duplex, auto-negotiation complete.
~>

Problem: "ifup -a" should set up all interfaces...



More information about the busybox mailing list