LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 02-26-2006, 02:28 PM   #1
aspinnler
Member
 
Registered: Mar 2005
Location: College Station, TX
Distribution: Debian, Ubuntu 5.10
Posts: 38

Rep: Reputation: 15
failed to bring up eth0


Hi, I have both Debian x86 and Ubuntu x86_64 installed on my computer.

Just today, Debian suddenly cannot setup my ethernet interface.
However, Ubuntu doesn't have any problem.
Also, I have an on-board gigabit NIC.

when I run the 'route' command in debian I get no output in comparison to the command being run in Ubuntu:
PHP Code:
Destination  Gateway    Genmask         Flags Metric Ref    UseIface
128.194.69.0    
*       255.255.255.0   U     0      0        0 eth0
default      hend-2-mcin-nb0.0.0.0    UG    0      0        0 eth0 
Also, here's my output from 'ifup eth0' in Debian:
PHP Code:
dhcp-128-194-69-142:/home/alex# ifup eth0
Internet Software Consortium DHCP Client 2.0pl5
Copyright 1995
1996199719981999 The Internet Software Consortium.
All rights reserved.

Please contribute if you find this software useful.
For 
infoplease visit http://www.isc.org/dhcp-contrib.html

sit0unknown hardware address type 776
eth0
unknown hardware address type 24
sit0
unknown hardware address type 776
eth0
unknown hardware address type 24
Listening on LPF
/eth0/<null>
Sending on   LPF/eth0/<null>
Sending on   Socket/fallback/fallback-net
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 10
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 16
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 21
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 2
No DHCPOFFERS received
.
No working leases in persistent database.

Exiting.

Failed to bring up eth0
I'm really lost about how networks work......
 
Old 02-26-2006, 08:05 PM   #2
DaneM
Member
 
Registered: Oct 2003
Location: Chico, CA, USA
Distribution: Linux Mint
Posts: 881

Rep: Reputation: 130Reputation: 130
Hello.

All I can figure out from those messages is that somehow it's not getting an IP address automatically.

Please post the output of "ifconfig eth0" in both Ubuntu and Debian.

Have you tried giving it a static IP address?

Hope this helps.

--Dane
 
Old 02-26-2006, 08:39 PM   #3
dracae
Member
 
Registered: Feb 2006
Location: Oklahoma
Distribution: Debian Sid and Etch
Posts: 423

Rep: Reputation: 30
Have you tried ifup eth1? The modules might be loading in a different order.
 
Old 02-26-2006, 09:20 PM   #4
aspinnler
Member
 
Registered: Mar 2005
Location: College Station, TX
Distribution: Debian, Ubuntu 5.10
Posts: 38

Original Poster
Rep: Reputation: 15
From Ubuntu-- 'ifconfig eth0'
PHP Code:
alex@dhcp-128-194-69-142:~$ sudo ifconfig eth0
eth0      Link encap
:Ethernet  HWaddr 00:0D:61:7C:53:AD
          inet addr
:128.194.69.142  Bcast:128.194.69.255  Mask:255.255.255.0
          inet6 addr
fe80::20d:61ff:fe7c:53ad/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU
:1500  Metric:1
          RX packets
:54388 errors:0 dropped:0 overruns:0 frame:0
          TX packets
:3970 errors:0 dropped:0 overruns:0 carrier:0
          collisions
:0 txqueuelen:1000
          RX bytes
:15368227 (14.6 MiB)  TX bytes:512596 (500.5 KiB)
          
Interrupt:19 
From Debian-- 'ifconfig eth0'
Also, now when Debian boots up it successfully configures the ethernet
interface, or so it says. But the output below shows dropped pakets.
PHP Code:
eth0      Link encap:UNSPEC  HWaddr 00-0D-61-00-00-79-78-16-00-00-00-00-00-00-0$          
      
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets
:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets
:0 errors:5 dropped:5 overruns:0 carrier:0
          collisions
:0 txqueuelen:1000
          RX bytes
:(0.0 b)  TX bytes:(0.0 b
Alright, from Ubuntu:
PHP Code:
alex@dhcp-128-194-69-142:~$ sudo ifup eth1
Password
:
Ignoring unknown interface eth1=eth1
 
Old 02-26-2006, 09:27 PM   #5
dracae
Member
 
Registered: Feb 2006
Location: Oklahoma
Distribution: Debian Sid and Etch
Posts: 423

Rep: Reputation: 30
In debian run
ifconfig eth1 0.0.0.0 && dhclient eth1

I have two ethernet cards also. They seem to randomly load in different order from time to time.

Last edited by dracae; 02-26-2006 at 09:28 PM.
 
Old 02-26-2006, 09:52 PM   #6
aspinnler
Member
 
Registered: Mar 2005
Location: College Station, TX
Distribution: Debian, Ubuntu 5.10
Posts: 38

Original Poster
Rep: Reputation: 15
Well, I don't have two ethernet cards......actually.
 
Old 02-26-2006, 10:54 PM   #7
dracae
Member
 
Registered: Feb 2006
Location: Oklahoma
Distribution: Debian Sid and Etch
Posts: 423

Rep: Reputation: 30
Ohh, I read

Also, I have an on-board gigabit NIC.

as an additional nic.

On debian make sure you have in /etc/network/interfaces

iface eth0 inet dhcp

then run ifup eth0

ifconfig eth0 will not invoke the dhcp client.
 
Old 02-27-2006, 01:23 AM   #8
aspinnler
Member
 
Registered: Mar 2005
Location: College Station, TX
Distribution: Debian, Ubuntu 5.10
Posts: 38

Original Poster
Rep: Reputation: 15
Down another path...........

Yeah, yeah.

I looked at my etc/network/interfaces files in Ubuntu to compare it to Debian when this problem first arose.

Anyways, I already had the iface....lines in the files.

I've also tried running the ifup eth0 command from Debian-->my first post has the output from that there.

**I asked a friend of mine what he thought about my problem. I used modprobe for my marvell ethernet adapter-- sk98lin. Now I think maybe need to change the permissions (chmod) of something, like say that modules.??? Does this make sense?

Anyways here is lsmod output, just in case:
PHP Code:
Module                  Size  Used by
rfcomm                 37168  0
l2cap                  24328  5 rfcomm
bluetooth              48964  4 rfcomm
,l2cap
powernow_k8            10512  0
cpufreq_userspace       5584  1
cpufreq_stats           5896  0
freq_table              5384  2 powernow_k8
,cpufreq_stats
cpufreq_powersave       2432  0
cpufreq_ondemand        7212  0
cpufreq_conservative     8236  0
video                  17416  0
tc1100_wmi              8200  0
sony_acpi               6296  0
pcc_acpi               13696  0
hotkey                 10696  0
dev_acpi               14980  0
i2c_acpi_ec             6528  0
button                  7968  0
battery                10760  0
container               5248  0
ac                      5768  0
ipv6                  246400  6
af_packet              22668  2
analog                 10976  0
gameport               16392  1 analog
floppy                 62840  0
pcspkr                  4176  0
ohci1394               32844  0
shpchp                 87976  0
pci_hotplug            28008  1 shpchp
snd_intel8x0           34816  3
snd_ac97_codec         87000  1 snd_intel8x0
snd_pcm_oss            51232  0
snd_mixer_oss          17664  1 snd_pcm_oss
snd_pcm                91020  4 snd_intel8x0
,snd_ac97_codec,snd_pcm_oss
snd_timer              24200  2 snd_pcm
snd                    55784  10 snd_intel8x0
,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer
soundcore              10912  1 snd
snd_page_alloc         11408  2 snd_intel8x0
,snd_pcm
i2c_nforce2             7808  0
i2c_core               22936  2 i2c_acpi_ec
,i2c_nforce2
dm_mod                 54904  1
tsdev                   8960  0
evdev                  10496  0
sr_mod                 17188  0
sbp2                   24328  0
ieee1394              101880  2 ohci1394
,sbp2
rtc                    13448  0
psmouse                27908  0
mousedev               12260  1
parport_pc             36328  1
lp                     13576  0
parport                38540  2 parport_pc
,lp
md                     43904  0
ext3                  127632  3
jbd                    54960  1 ext3
thermal                15120  0
processor              25684  2 powernow_k8
,thermal
fan                     5384  0
sd_mod                 18456  0
sata_sil               11268  0
skge                   37008  0
ehci_hcd               31752  0
ohci_hcd               20228  0
ide_cd                 40608  0
cdrom                  36520  2 sr_mod
,ide_cd
ide_disk               17152  5
ide_generic             1920  0
sata_nv                10756  0
libata                 52744  2 sata_sil
,sata_nv
scsi_mod              143984  4 sr_mod
,sbp2,sd_mod,libata
amd74xx                15024  1
ide_core              148932  4 ide_cd
,ide_disk,ide_generic,amd74xx
unix                   28728  637
vesafb                  9252  0
capability              6152  0
commoncap               8448  1 capability
vga16fb                12288  1
vgastate                9216  1 vga16fb
softcursor              2944  2 vesafb
,vga16fb
cfbimgblt               3200  2 vesafb
,vga16fb
cfbfillrect             4736  2 vesafb
,vga16fb
cfbcopyarea             4352  2 vesafb
,vga16fb
fbcon                  36480  72
tileblit                2944  1 fbcon
font                    9216  1 fbcon
bitblit                 5760  1 fbcon 
And yes, I should remove the unused modules.

And yeah I don't see the sk98li module in the above list. I guess Ubuntu is using something else for my ethernet nic.(?)

Last edited by aspinnler; 02-27-2006 at 01:25 AM.
 
Old 02-27-2006, 01:26 AM   #9
DaneM
Member
 
Registered: Oct 2003
Location: Chico, CA, USA
Distribution: Linux Mint
Posts: 881

Rep: Reputation: 130Reputation: 130
I think dracae is in the right track, but if you can't get that to work, let's try doing a static IP.

Comment out the line in /etc/network/interfaces (by putting a # in front of it):

Code:
iface eth0 inet dhcp
...and put this in:

Code:
iface eth0 inet static
address 128.194.69.142
netmask 255.255.255.0
then do "ifup eth0".

--Dane
 
Old 02-27-2006, 01:38 AM   #10
DaneM
Member
 
Registered: Oct 2003
Location: Chico, CA, USA
Distribution: Linux Mint
Posts: 881

Rep: Reputation: 130Reputation: 130
Is sk98lin the module name? If so I don't see it listed. Do you get an error message when you try to modprobe it? If so, please post it.

--Dane
 
Old 02-27-2006, 01:43 AM   #11
aspinnler
Member
 
Registered: Mar 2005
Location: College Station, TX
Distribution: Debian, Ubuntu 5.10
Posts: 38

Original Poster
Rep: Reputation: 15
Nope, no error message during modprobe.

Also, using static ip address wasn't successful.

**Ya know in the time I've spent on this problem I could have just reinstalled Debian...

Last edited by aspinnler; 02-27-2006 at 01:50 AM.
 
Old 02-27-2006, 09:20 AM   #12
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
so are there any errors showing in /var/log/dmesg in relation to detecting the ethernet controller ?

the reason I ask is that when you show ifconfig for the debian box the encapsulation is UNSPECIFIED and the MAC address for he card is borked (wrong).. it looks as though the system is not detecting your hardware properly.. you can set all the static IP's you want and renew DHCP all day long and it's not going to work until you fix the fundamental problem of the hardware not being detected properly..

Quote:
Ubuntu
Link encap:Ethernet HWaddr 00:0D:61:7C:53:AD
Debian
Link encap:UNSPEC HWaddr 00-0D-61-00-00-79-78-16-00-00-00-00-00-00-0$
Those HW addresses should be identical.. not just he manufacturer ID portion (the first three octets)

What does lspci show ? (does it list the correct network card in your machine ?

Is the proper module for that card being loaded ?

is your system detecting a firewire port as an network interface controller and your ethernet controller has moved from eth0 to eth1 ? (happened to me on Debian already.. )

Review /var/log/dmesg for entries related to the Network card detection. post any relevant lines
 
Old 02-27-2006, 11:41 AM   #13
aspinnler
Member
 
Registered: Mar 2005
Location: College Station, TX
Distribution: Debian, Ubuntu 5.10
Posts: 38

Original Poster
Rep: Reputation: 15
Here's what was in /var/log/dmesg:
Code:
ieee1394: Initialized config rom entry `ip1394'
ohci1394: $Rev: 1223 $ Ben Collins <bcollins@debian.org>
...
ohci1394: fw-host0: OHCI-1394 1.1 (PCI): IRQ=[225]
MMIO=[fb008000-fb0087ff]  Max Packet=[2048]
...
ieee1394: Host added: ID:BUS[0-00:1023]  GUID[000d610000797816]
ip1394: $Rev: 1224 $ Ben Collins <bcollins@debian.org>
ip1394: eth0: IEEE-1394 IPv4 over 1394 Ethernet (fw-host0)
As for lspci, yes, this is correct:
Code:
0000:02:0b.0 Ethernet controller: Marvell Technology Group Ltd. Yukon
Gigabit Ethernet 10/100/1000Base-T Adapter (rev 13)
 
Old 02-27-2006, 11:56 AM   #14
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
eth0 = ieee1394 = FIREWIRE port there is your issue..

the system thinks the Firewire port is eth0 so you need to figure out what module is actually needed for your NIC and ensure it is being loded. at which point the Marvel controller should come up as eth1.

Looks like DaneM hit it on the head with the module needed.. sk8lin

Just curious what kernels you are running in the 2 OS's is Debian using an older kernel or are you up to 2.6.15 ? that may explain why Ubuntu can use it but Debian isn't.

Linux driver for sk8lin in case you need it..
http://www.skd.de/e_en/support/drive...ystem=bs.Linux

Last edited by farslayer; 02-27-2006 at 11:57 AM.
 
Old 02-27-2006, 12:20 PM   #15
aspinnler
Member
 
Registered: Mar 2005
Location: College Station, TX
Distribution: Debian, Ubuntu 5.10
Posts: 38

Original Poster
Rep: Reputation: 15
Ok, so went into Debian and..

1) modprobe sk98lin
--no errors, all good
2) ifup eth1
--Ignoring unknown interface eth1=eth1.

Do I need to put the module in some script that loads at boot?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
failed to bring up eth0 aspinnler Debian 0 02-26-2006 01:59 PM
ifup eth0 failed, failed to bring eth0 MKSrivastava Debian 1 12-07-2005 10:35 AM
Failed to bring eth0 up in SuSe 8.1 copter Linux - Newbie 1 03-06-2004 09:05 PM
failed to bring eth0 up k_brother Linux - Newbie 2 10-17-2003 10:30 AM
Failed to bring eth0 up amphibious Linux - Newbie 1 09-25-2003 04:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 02:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration