LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   No eth0 interface (https://www.linuxquestions.org/questions/linux-networking-3/no-eth0-interface-4175430206/)

shansen5 10-03-2012 12:13 AM

No eth0 interface
 
There's no wired interface. Wireless is working fine. Ubuntu 10.04. (Can't go more recent than that, because the Intel wireless driver won't work in newer versions.)
Code:

steve@steve-VAIO:/etc/udev/rules.d$ ifconfig -a
lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:12 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:720 (720.0 B)  TX bytes:720 (720.0 B)

wlan0    Link encap:Ethernet  HWaddr 74:e5:0b:6f:a2:16 
          inet addr:192.168.0.149  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::76e5:bff:fe6f:a216/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:9400 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5256 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:5703641 (5.7 MB)  TX bytes:905685 (905.6 KB)

Code:

steve@steve-VAIO:/etc/udev/rules.d$ sudo ifup eth0
[sudo] password for steve:
Ignoring unknown interface eth0=eth0.

lshw contains the following:
Code:

          *-network UNCLAIMED
                description: Ethernet controller
                product: Atheros Communications
                vendor: Atheros Communications
                physical id: 0
                bus info: pci@0000:09:00.0
                version: c0
                width: 64 bits
                clock: 33MHz
                capabilities: bus_master cap_list
                configuration: latency=0
                resources: memory:d1400000-d143ffff ioport:2000(size=128)

Code:

steve@steve-VAIO:/etc/udev/rules.d$ sudo /etc/init.d/networking restart
 * Reconfiguring network interfaces...                                          Ignoring unknown interface wlan0=wlan0.
Internet Systems Consortium DHCP Client V3.1.3
Copyright 2004-2009 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

SIOCSIFADDR: No such device
eth1: ERROR while getting interface flags: No such device
eth1: ERROR while getting interface flags: No such device
Bind socket to interface: No such device
Failed to bring up eth1.

I added the last two lines in this next bit. First used eth0, then eth1.
Code:

steve@steve-VAIO:/etc/udev/rules.d$ cat /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth1
iface eth1 inet dhcp


nugat 10-03-2012 12:23 AM

Hi,

What does this command tell you?

Code:

lspci|egrep -i 'eth|net'
and this one:
Code:

cat /proc/net/dev
Also, what is your hardware (make/model)?

fortran 10-03-2012 02:13 AM

Run in terminal
Code:

ifconfig -a | grep 'eth'
Now it shows your current using 'eth'

Enable this eth,(Suppose it is eth4)
Code:

ifconfig eth4 up
Code:

dhclient eth4

shansen5 10-03-2012 01:43 PM

nugat,

This is a Sony VAIO Model PCG61A14L.

Code:

steve@steve-VAIO:~$ lspci | egrep -i 'eth|net'
02:00.0 Network controller: Intel Corporation WiFi Link 1000 Series
09:00.0 Ethernet controller: Atheros Communications Device 1083 (rev c0)

Code:

steve@steve-VAIO:~$ cat /proc/net/dev
Inter-|  Receive                                                |  Transmit
 face |bytes    packets errs drop fifo frame compressed multicast|bytes    packets errs drop fifo colls carrier compressed
    lo:    720      12    0    0    0    0          0        0      720      12    0    0    0    0      0          0
 wlan0:26326053  54570    0    0    0    0          0        0  3380823  17877    0    0    0    0      0          0

pavi_kanetkar,

The output of ifconfig -a is in my first post. There is no eth device shown.

Thanks for your help. (Background--I first installed Mint Cinnamon 13, where wired, eth0, was working but no wireless. There's a thread over in the Laptops forum about that. Trying SUSE and Fedora disks I had from a recent conference, with many suggestions I got from that forum, I eventually had to go back to this Ubuntu 10.04 version to get wireless to work. Now I have wireless but not wired with this version, which overall would be my preference if I can only have one. But I'm trying to get both working.)

Steve

jefro 10-03-2012 02:32 PM

Seems to lead you to some links that may help here. http://www.linuxquestions.org/questi...1083-a-930325/

shansen5 10-03-2012 03:51 PM

Thanks for the link. I read through that thread and tried some of the suggestions. It ends with someone saying they solved it, but not telling how!

Code:

steve@steve-VAIO:~$ lsmod
Module                  Size  Used by
atl1c                  27955  0
binfmt_misc            6587  1
...

I get the same response below from both 'networking restart' and 'ifup eth0'
Code:

steve@steve-VAIO:~$ sudo /etc/init.d/networking restart
 * Reconfiguring network interfaces...                                        Internet Systems Consortium DHCP Client V3.1.3
Copyright 2004-2009 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

SIOCSIFADDR: No such device
eth0: ERROR while getting interface flags: No such device
eth0: ERROR while getting interface flags: No such device
Bind socket to interface: No such device
Failed to bring up eth0.

I mentioned that I had also installed Mint Cinnamon 13, where I had wired but no wireless. I went to that installation, looked at /etc/udev/rules.d/70-persistent-net.rules, and copied this into my Ubuntu 10.04:

Code:

# PCI device 0x1969:/sys/devices/pci0000:00/0000:00:1c.3/0000:09:00.0 (atl1c)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="78:84:3c:ac:17:a4", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

I'm going to reboot to see if this does anything, so I need to post what I've accumulated here or lose it.

Thanks again for suggestions.

nugat 10-03-2012 08:23 PM

Quote:

Originally Posted by shansen5 (Post 4796292)
nugat,

This is a Sony VAIO Model PCG61A14L.

Code:

steve@steve-VAIO:~$ lspci | egrep -i 'eth|net'
02:00.0 Network controller: Intel Corporation WiFi Link 1000 Series
09:00.0 Ethernet controller: Atheros Communications Device 1083 (rev c0)


According to this, that Atheros chip is supported by Linux kernels >= 2.6.38, which is probably more recent than a 10.04 kernel. Is that so? You can try getting a more recent kernel via PPA sources described here.

Or you could just download a more recent version of Ubuntu, run it in Live mode, and see if the Atheros NIC works. That would tell you if the kernel driver is the culprit.

fortran 10-04-2012 12:32 AM

Can you please post output of
dmesg | grep 'eth'

Method -II
**********
Run following commands

modprobe -r tg3
modprobe broadcom
modprobe tg3
ifconfig

shansen5 10-04-2012 12:36 AM

Code:

steve@steve-VAIO:~/Documents$ uname -a
Linux steve-VAIO 2.6.32-43-generic #97-Ubuntu SMP Wed Sep 5 16:43:09 UTC 2012 i686 GNU/Linux

So if the chip is supported at 2.6.38, I'm just a little behind. The thing is that I know my Intel wireless device stops working somewhere between 10.04 and 12.04. Maybe 10.10 is my sweet spot?

shansen5 10-04-2012 12:48 AM

The dmesg command returns nothing, . I thought I had posted that earlier, but don't see it.
Code:

steve@steve-VAIO:~/Documents$ dmesg | grep 'eth'
steve@steve-VAIO:~/Documents$


nugat 10-04-2012 12:55 AM

Quote:

Originally Posted by shansen5 (Post 4796688)
So if the chip is supported at 2.6.38, I'm just a little behind. The thing is that I know my Intel wireless device stops working somewhere between 10.04 and 12.04. Maybe 10.10 is my sweet spot?

that would suck. but maybe if you try an updated kernel, just to see if the Atheros Chip works, maybe you'll get lucky with the wireless, too?

shansen5 10-04-2012 02:12 AM

The instructions were:

To install kernel 2.6.38:

sudo add-apt-repository ppa:kernel-ppa/ppa
sudo apt-get update
sudo apt-get install linux-headers-2.6.38-1-generic linux-image-2.6.38-1-generic

I ended up with: E: Couldn't find package linux-headers-2.6.38-1-generic

See anything wrong with what I did here?

Code:

steve@steve-VAIO:~$ sudo apt-get update
Get:1 http://ppa.launchpad.net lucid Release.gpg [316B]
Get:2 http://security.ubuntu.com lucid-security Release.gpg [198B]           
Ign http://ppa.launchpad.net/kernel-ppa/ppa/ubuntu/ lucid/main Translation-en_CA
Ign http://security.ubuntu.com/ubuntu/ lucid-security/main Translation-en_CA 
Ign http://security.ubuntu.com/ubuntu/ lucid-security/restricted Translation-en_CA
Ign http://security.ubuntu.com/ubuntu/ lucid-security/universe Translation-en_CA
Ign http://security.ubuntu.com/ubuntu/ lucid-security/multiverse Translation-en_CA
Hit http://ca.archive.ubuntu.com lucid Release.gpg
Hit http://ca.archive.ubuntu.com/ubuntu/ lucid/main Translation-en_CA
Hit http://ca.archive.ubuntu.com/ubuntu/ lucid/restricted Translation-en_CA
Hit http://ca.archive.ubuntu.com/ubuntu/ lucid/universe Translation-en_CA
Ign http://ca.archive.ubuntu.com/ubuntu/ lucid/multiverse Translation-en_CA
Get:3 http://ca.archive.ubuntu.com lucid-updates Release.gpg [198B]
Hit http://ca.archive.ubuntu.com/ubuntu/ lucid-updates/main Translation-en_CA
Ign http://ca.archive.ubuntu.com/ubuntu/ lucid-updates/restricted Translation-en_CA
Hit http://ca.archive.ubuntu.com/ubuntu/ lucid-updates/universe Translation-en_CA
Ign http://ca.archive.ubuntu.com/ubuntu/ lucid-updates/multiverse Translation-en_CA
Get:4 http://security.ubuntu.com lucid-security Release [57.3kB]
Hit http://ca.archive.ubuntu.com lucid Release                       
Get:5 http://ppa.launchpad.net lucid Release [14.0kB]                 
Get:6 http://ca.archive.ubuntu.com lucid-updates Release [58.3kB]             
Get:7 http://ppa.launchpad.net lucid/main Packages [2,717B]                   
Get:8 http://security.ubuntu.com lucid-security/main Packages [452kB]         
Hit http://ca.archive.ubuntu.com lucid/main Packages                         
Hit http://ca.archive.ubuntu.com lucid/restricted Packages
Hit http://ca.archive.ubuntu.com lucid/main Sources
Hit http://ca.archive.ubuntu.com lucid/restricted Sources
Hit http://ca.archive.ubuntu.com lucid/universe Packages
Hit http://ca.archive.ubuntu.com lucid/universe Sources
Hit http://ca.archive.ubuntu.com lucid/multiverse Packages
Hit http://ca.archive.ubuntu.com lucid/multiverse Sources
Get:9 http://ca.archive.ubuntu.com lucid-updates/main Packages [646kB]
Get:10 http://security.ubuntu.com lucid-security/restricted Packages [2,867B]
Get:11 http://security.ubuntu.com lucid-security/main Sources [130kB]
Get:12 http://security.ubuntu.com lucid-security/restricted Sources [1,267B] 
Get:13 http://security.ubuntu.com lucid-security/universe Packages [135kB]   
Get:14 http://security.ubuntu.com lucid-security/universe Sources [42.0kB]   
Get:15 http://security.ubuntu.com lucid-security/multiverse Packages [5,372B] 
Get:16 http://security.ubuntu.com lucid-security/multiverse Sources [2,321B] 
Get:17 http://ca.archive.ubuntu.com lucid-updates/restricted Packages [4,630B]
Get:18 http://ca.archive.ubuntu.com lucid-updates/main Sources [229kB]
Get:19 http://ca.archive.ubuntu.com lucid-updates/restricted Sources [2,196B]
Get:20 http://ca.archive.ubuntu.com lucid-updates/universe Packages [278kB]
Get:21 http://ca.archive.ubuntu.com lucid-updates/universe Sources [104kB]
Get:22 http://ca.archive.ubuntu.com lucid-updates/multiverse Packages [11.5kB]
Get:23 http://ca.archive.ubuntu.com lucid-updates/multiverse Sources [5,821B]
Fetched 2,184kB in 4s (493kB/s)                     
Reading package lists... Done
steve@steve-VAIO:~$ sudo apt-get install linux-headers-2.6.38-1-generic linux-image-2.6.38-1-generic
Reading package lists... Done
Building dependency tree     
Reading state information... Done
E: Couldn't find package linux-headers-2.6.38-1-generic


nugat 10-04-2012 09:08 PM

It looks like that kernel has been removed from kernel-ppa:

http://www.ubuntuupdates.org/package...aders-2.6.38-1

but there is a 3.x kernel available, I think. you could always try that. do a search for them, e.g.:

Code:

apt-cache search linux|egrep ^'linux-(headers|image)-3'
that gave me a list of linux-image and linux-header packages. i picked the latest one and installed with:

Code:

apt-get install linux-image-3.0.0-12-generic linux-headers-3.0.0-12-generic


All times are GMT -5. The time now is 01:03 AM.