On Monday 12 November 2007 03:19, Rajeev Bansal wrote:
> Hi All,
>
> I am using the Busybox (v1.7.1) in my root file system, I need to
> configure some default IP addresses to all my connected Ethernet
> interfaces when my system comes up. To achieve  this I have done the
> following:
>
> I have created a file "/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
>
> When I run ifup -a, it shows me
> ifup: interface lo already configured
> ifup: interface eth0 already configured
>
> But there is no IP address is assigned to the interfaces, do I need to
> do something else also? When I assign the IP address manually to my
> interfaces it works fine.

I'm afraid you will need to dig deeper here, I do not use ifup
(it's badly designed and doesn't meet my needs). It doesn't
mean that I an unwilling to apply fixes to it, but someone
else needs to produce the patches.

Start here:

networking/ifupdown.c

                if (!FORCE) {
                        llist_t *state_list = read_iface_state();
                        const llist_t *iface_state = 
find_iface_state(state_list, iface);

                        if (cmds == iface_up) {
                                /* ifup */
                                if (iface_state) {
                                        bb_error_msg("interface %s already 
configured", iface);
                                        continue;
                                }
                        } else {
...
                        }
                        llist_free(state_list, free);
                }

Looks into find_iface_state() and find out why it is returning non-NULL.


> One more doubt, when I run, ifconfig eth0 up, I get the following outcome.
>
> # ifconfig eth0 up
> [  120.552835] e1000: eth0: e1000_request_irq: Unable to allocate MSI
> interrupt
> Error: -22

It's a kernel message. You probably have some problem with klogd/syslogd
and kernel messages are printed to console.
--
vda
_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox

Reply via email to