PDA

View Full Version : ifconfig problem in KNOPPIX 3.8.1



johnnybhoy67
11-08-2005, 04:48 PM
Hi All,

I have a problem trying to set up my eth0 with ifconfig command as follows:

ifconfig -a eth0 add xxx.xxx.xx.xxx netmask 255.255.255.0

Coming back with error message "SIOCSIFNETMASK: Cannot assign requested address"

If I try to set it up with command:

ifconfig eth0 xxx.xxx.xxx.xxx/24

I get a new error message.

"192.168.12.112/24 Host Name Lookup Failure"

Ideas?

J
_________________

angor
11-09-2005, 08:32 AM
The man page for ifconfig says that "add" is used to add an IPv6 address to an interface, but you obviously want IPv4.

Try this (as root):
<code>
ifconfig eth0 192.168.0.1 netmask 255.255.255.0 broadcast 192.168.0.255
</code>

or use the Koppix-menu to configure an ethernet card.

johnnybhoy67
11-10-2005, 05:31 PM
Thanks angor....that done it.

J