ifconfig eth0 0.0.0.0 broadcast 255.255.255.255 netmask 0.0.0.0
Under 2.1 (131 and earlier), this doesn't work; it complains:
SIOCSIFBRDADDR: Cannot assign requested address
SIOCSIFNETMASK: Cannot assign requested address
Looking through net/ipv4/devinet.c, it seems that attempts to assign
the address 0.0.0.0 to an interface are silently discarded (in
inet_insert_ifa()), and an "ifconfig eth0" confirms
this. SIOCSIFBRDADDR and SIOCSIFNETMASK don't work on an interface
without any addresses, hence the errors.
(And sure enough, the machine never sees the BOOTP response. I haven't
checked whether the BOOTP request makes it onto the network or not.)
So is it broken, or does 2.1 have a new way to set this up that I
can't find?
Dave Wragg
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/