Well first of all i would check if the eth0 is connected and is known to the OS.
Try:
#mii-tool
see if it says link ok.
if not try:
lsmod and see if the driver for the nic is listed (if not...feagure out which one you got and try modprobe to install it (check the man for info)).
if you got link then try:
#ifconfig eth0 <IP> netmask <netmask> up
#route add default gw <GW-IP>
that will fix you up with a static ip.
Meni
On 6/14/05, Alan Chandler <[EMAIL PROTECTED]> wrote:
I am having a strange problem setting my ip address on my only (eth0)
ethernet connection.
If I use either a static or dhcp iface stanza in /etc/network/interfaces it
fails.
Here is the output from the dhcp version.
---------------------------------------------
Internet Software Consortium DHCP Client 2.0pl5
Copyright 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium.
All rights reserved.
Please contribute if you find this software useful.
For info, please visit http://www.isc.org/dhcp-contrib.html
sit0: unknown hardware address type 776
sit0: unknown hardware address type 776
Listening on LPF/eth0/00:50:da:cf:a5:06
Sending on LPF/eth0/00:50:da:cf:a5:06
Sending on Socket/fallback/fallback-net
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPACK from 192.168.0.20
SIOCSIFADDR: File exists
bound to 192.168.0.21 -- renewal in 10800 seconds.
RTNETLINK answers: Cannot assign requested address
-------------------------------------
What are the following?
a) Reference to device sit0 - where did this come from
b) What is this error message? "SIOCSIFADDR: File exists"
c) RTNETLINK answers: Cannot assign requested address
The ip address I end up with is 169.254.50.3 (which I am guessing is some
default in the device driver code).
But I can't see what I am doing wrong. Any advice to get more info, or even
to fix it?
(I am running Debian Unstable)
--
Alan Chandler
[EMAIL PROTECTED]
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
--
--
Meni Szapiro