Hi All,
I am currently using BusyBox v1.10.2
# busybox
BusyBox v1.10.2 (2009-03-03 16:51:05 PST) multi-call binary
Copyright (C) 1998-2007 Erik Andersen, Rob Landley, Denys Vlasenko
and others. Licensed under GPLv2.
See source distribution for full notice.
Usage: busybox [function] [arguments]...
or: function [arguments]...
BusyBox is a multi-call binary that combines many common Unix
utilities into a single executable. Most people will create a
link to busybox for each function they wish to use and BusyBox
will act like whatever it was invoked as!
Currently defined functions:
[, [[, addgroup, adduser, ash, awk, basename, cat, chgrp,
chmod, chown, chroot, cmp, cp, cut, date, dd, delgroup,
deluser, df, dirname, dmesg, du, echo, egrep, env, expr,
false, fgrep, free, getty, grep, gunzip, gzip, halt, head,
hostid, hostname, id, ifconfig, ifdown, ifup, init, insmod,
ip, ipaddr, iplink, iproute, kill, killall, linuxrc, ln,
logger, ls, lsmod, makedevs, md5sum, mdev, mkdir, mkfifo,
mknod, mkswap, mktemp, modprobe, more, mount, mv, nice,
nslookup, ping, ping6, pivot_root, poweroff, printf, ps,
pwd, reboot, reset, rm, rmdir, rmmod, route, run-parts,
sed, sh, sleep, sort, start-stop-daemon, stty, sulogin,
swapoff, swapon, switch_root, sync, syslogd, tail, tar,
test, top, touch, tr, true, udhcpc, umount, uname, uniq,
uptime, usleep, vconfig, wc, wget, which, whoami, xargs,
yes, zcat
The interafaces file on my system looks like this
# cat /etc/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
iface eth0 inet6 static
address fd20:8b1e:b255:202::1234
netmask 64
gateway fd20:8b1e:b255:202::1
I am using udhcpc for IPv4 DHCP configuration on my system. And with
this configuration, whenever I run "ifup eth0" it fails with the message
"route: SIOCADDRT: Invalid argument"
Here is the detailed output ..
# ifdown eth0
# echo $?
0
# ifup eth0
### adapter index 1
### adapter hardware addreseth0: link is up, 100 FDX
s 00:a1:93:41:e3:b8
udhcpc (v1.10.2) started
### vfork'ing and execle'ing /usr/share/udhcpc/default.script
### entering raw listen mode
### opening raw socket on ifindex 1
### got raw socket fd 5
### attached filter to raw socket fd 5
### bound to raw socket fd 5
### adding option 0x35
### adding option 0x3d
### adding option 0x3c
### adding option 0x39
Sending discover...
### Waiting on select...
### Got valid DHCP packet
### adding option 0x35
### adding option 0x3d
### adding option 0x3c
### adding option 0x32
### adding option 0x36
Sending select for 172.22.131.162...
### Waiting on select...
### Got valid DHCP packet
Lease of 172.22.131.162 obtained, lease time 86400
### vfork'ing and execle'ing /usr/share/udhcpc/default.script
### entering none listen mode
route: SIOCADDRT: Invalid argument
But when I dont have the IPv6 information under the interfaces file, but
IPv4 is still configured for DHCP, I dont see this failure
# cat /etc/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
# ifdown eth0
# echo $?
0
# ifup eth0
### adapter index 1
### adapter hardware address 00:a1:93:41:e3:b8
udhcpc (v1.10.2) started
### vfork'ing and execle'ing /usr/share/udhcpc/default.script
### entering raw listen mode
### opening raw socket on ifindex 1
### got raw socket fd 5
### attached filter to raw socket fd 5
### bound to raw socket fd 5
### adding option 0x35
### adding option 0x3d
### adding option 0x3c
### adding option 0x39
Sending discover...
### Waiting on select...
### Got valid DHCP packet
### adding option 0x35
### adding option 0x3d
### adding option 0x3c
### adding option 0x32
### adding option 0x36
Sending select for 172.22.131.162...
### Waiting on select...
### Got valid DHCP packet
Lease of 172.22.131.162 obtained, lease time 86400
### vfork'ing and execle'ing /usr/share/udhcpc/default.script
### entering none listen mode
# echo $?
0
Is there anything obvious that I am missing?
Thanks,
Sreen
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox