PDA

View Full Version : eth0 not working



CianOReilly_
2013-05-25, 23:09
Hi guys, new to Kali linux. Booting from USB.

When I use the ifconfig command, eth0 does not show up. I get lo and wlan0, but no eth0.

I connected an ethernet cable, and still no interface showing up for ethernet so the only way I can actually connect to the internet right now is with WiFi.

Anybody know how to solve this problem?

maverik35
2013-05-27, 00:23
Post output of : lspci -v

Look for the ethernet interface and see the driver used by kernel.

CianOReilly_
2013-05-27, 16:51
07:00.0 Ethernet controller: Atheros Communications Inc. AR8161 Gigabit Ethernet (rev 10)
Subsystem: Toshiba America Info Systems Device ff1e
Flags: bus master, fast devsel, latency 0, IRQ 7
Memory at c1100000 (64-bit, non-prefetchable) [size=256K]
I/O ports at 2000 [size=128]
Capabilities: [40] Power Management version 3
Capabilities: [58] Express Endpoint, MSI 00
Capabilities: [c0] MSI: Enable- Count=1/16 Maskable+ 64bit+
Capabilities: [d8] MSI-X: Enable- Count=16 Masked-
Capabilities: [100] Advanced Error Reporting
Capabilities: [180] Device Serial Number ff-21-08-01-00-8c-fa-ff

root-boy
2013-05-28, 12:53
try the latest compat-drivers

rnk
2013-05-28, 13:50
apt-get install build-essential linux-headers-generic linux-headers-`uname -r`
wget http://linuxwireless.org/download/compat-wireless-2.6/compat-wireless-2012-07-03-pc.tar.bz2
tar jxf compat-wireless-2012-07-03-pc.tar.bz2
cd compat-wireless-2012-07-03-pc
./scripts/driver-select alx
make
make install
modprobe alx
reboot

CianOReilly_
2013-05-28, 14:47
apt-get install build-essential linux-headers-generic linux-headers-`uname -r`
wget http://linuxwireless.org/download/compat-wireless-2.6/compat-wireless-2012-07-03-pc.tar.bz2
tar jxf compat-wireless-2012-07-03-pc.tar.bz2
cd compat-wireless-2012-07-03-pc
./scripts/driver-select alx
make
make install
modprobe alx
reboot

Package linux-headers-generic is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'linux-headers-generic' has no installation candidate

root-boy
2013-05-29, 08:54
For the first step try:


apt-get install -y linux-headers-$(uname -r)

if you get any problems installing the headers, please add these entries to your sources.list file:


deb http://http.kali.org/kali kali main non-free contrib
deb-src http://http.kali.org/kali kali main non-free contrib

then execute the following command:


apt-get update

once you have the headers installed, try to install the latest version of compat-drivers from here (http://drvbp1.linux-foundation.org/~mcgrof/rel-html/backports/)

charit0819
2013-09-01, 21:47
Tried the same what you guys said getting error:

root@kali:~/Desktop/compat-wireless-2012-07-03-pc# ./scripts/driver-select alx
Processing new driver-select request...
Backing up makefile: Makefile.bk
Backup exists: Makefile.bk
Backing up makefile: drivers/net/ethernet/broadcom/Makefile.bk
Backing up makefile: drivers/net/ethernet/atheros/Makefile.bk
Backup exists: Makefile.bk
Backup exists: Makefile.bk
Backup exists: drivers/net/ethernet/broadcom/Makefile.bk
root@kali:~/Desktop/compat-wireless-2012-07-03-pc# make
./scripts/gen-compat-autoconf.sh /root/Desktop/compat-wireless-2012-07-03-pc/.config /root/Desktop/compat-wireless-2012-07-03-pc/config.mk > include/linux/compat_autoconf.h
make -C /lib/modules/3.7-trunk-amd64/build M=/root/Desktop/compat-wireless-2012-07-03-pc modules
make: *** /lib/modules/3.7-trunk-amd64/build: No such file or directory. Stop.
make: *** [modules] Error 2




For the first step try:


apt-get install -y linux-headers-$(uname -r)

if you get any problems installing the headers, please add these entries to your sources.list file:


deb http://http.kali.org/kali kali main non-free contrib
deb-src http://http.kali.org/kali kali main non-free contrib

then execute the following command:


apt-get update

once you have the headers installed, try to install the latest version of compat-drivers from here (http://drvbp1.linux-foundation.org/~mcgrof/rel-html/backports/)

brazen
2013-11-22, 15:28
i can't get my eth0 working on the kali side of my macbook pro. here are the outputs:
EDIT~ here is my ifconfig output (if needed):
eth0 Link encap:Ethernet HWaddr c8:2a:14:42:4b:a8
inet addr:10.1.10.13 Bcast:10.1.10.255 Mask:255.255.255.0
inet6 addr: (i removed this) Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:38 errors:0 dropped:0 overruns:0 frame:0
TX packets:47 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:6961 (6.7 KiB) TX bytes:4066 (3.9 KiB)
Interrupt:16

02:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM57765 Gigabit Ethernet PCIe (rev 10)
Subsystem: Broadcom Corporation NetXtreme BCM57765 Gigabit Ethernet PCIe
Flags: bus master, fast devsel, latency 0, IRQ 16
Memory at b0400000 (64-bit, prefetchable) [size=64K]
Memory at b0410000 (64-bit, prefetchable) [size=64K]
Capabilities: [48] Power Management version 3
Capabilities: [58] MSI: Enable- Count=1/8 Maskable- 64bit+
Capabilities: [a0] MSI-X: Enable+ Count=6 Masked-
Capabilities: [ac] Express Endpoint, MSI 00
Capabilities: [100] Advanced Error Reporting
Capabilities: [13c] Device Serial Number 00-00-c8-2a-14-42-4b-a8
Capabilities: [150] Power Budgeting <?>
Capabilities: [160] Virtual Channel
Kernel driver in use: tg3


i am assuming i don't have this driver installed. so I found it here (for the BCM57765): http://www.broadcom.com/support/ethernet_nic/netxtreme_desktop.php

I am attempting to install this according to the directions given above, but without success. :/

i was also trying to modify the kali instructions for the nvidia driver as well: http://docs.kali.org/general-use/install-nvidia-drivers-on-kali-linux

but now I am just all messed up. Can someone point me in the right direction? I have the driver sitting on my desktop

I was trying to use:


apt-get install build-essential linux-headers-generic linux-headers-`uname -r`
wget http://linuxwireless.org/download/co...-03-pc.tar.bz2
tar jxf compat-wireless-2012-07-03-pc.tar.bz2
cd compat-wireless-2012-07-03-pc
./scripts/driver-select alx
make
make install
modprobe alx
reboot

but it wasn't/isn't working for me sorry for my "noob-ness"