Instalar adaptador de rede

0

Meu adaptador ethernet onboard frito em uma tempestade, eu acabei de comprar um adpater de rede (Intelbras Pef 132), mas ele não está funcionando, ele não se conecta, ele diz para rodar em sistemas Linux, eu estou rodando o Ubuntu 14.04 , a unidade que veio é "8139too.c" e um makefile. Eu tentei executar o make , mas ele diz

gcc -O6 -Wall -DCONFIG_KERNELD -DMODULE -D__KERNEL__ -DLINUX -DUSE_MEM_OPS -I/usr/src/linux-headers-3.19.0-47/include/ -c 8139too.c -o 8139too.o
8139too.c:106:26: fatal error: linux/config.h: No such file or directory
 #include <linux/config.h>
                          ^
compilation terminated

eu mudei a variável NEW_INCLUDE_PATH no caminho make para /usr/src/linux-headers-3.19.0-56/include/ para corresponder ao meu kernel atual, mas ele ainda me deu o mesmo erro.

o comando ifconfig -a

eth1      Link encap:Ethernet  HWaddr 00:1a:3f:af:f7:b7  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

eth1:avahi Link encap:Ethernet  HWaddr 00:1a:3f:af:f7:b7  
          inet addr:169.254.11.21  Bcast:169.254.255.255  Mask:255.255.0.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1

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:65536  Metric:1
          RX packets:2420 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2420 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:223888 (223.8 KB)  TX bytes:223888 (223.8 KB)

wlan0     Link encap:Ethernet  HWaddr e8:de:27:09:33:ba  
          inet addr:192.168.0.13  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::eade:27ff:fe09:33ba/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:79163 errors:0 dropped:0 overruns:0 frame:0
          TX packets:47850 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:111213209 (111.2 MB)  TX bytes:4969674 (4.9 MB)

wlan0 é o que eu estou usando no momento (meu adaptador wi-fi dos irmãos), eht1 é o adaptador que eu comprei.

#dmesg | grep -e eth -e 8139

[    0.277199] pci 0000:05:02.0: [10ec:8139] type 00 class 0x020000
[    1.349651] 8139cp: 8139cp: 10/100 PCI Ethernet driver v1.3 (Mar 22, 2004)
[    1.349657] 8139cp 0000:05:02.0: This (id 10ec:8139 rev 10) is not an 8139C+ compatible chip, use 8139too
[    1.351813] 8139too: 8139too Fast Ethernet driver 0.9.28
[    1.352563] 8139too 0000:05:02.0 eth0: RealTek RTL8139 at 0x000000000001e800, 00:1a:3f:af:f7:b7, IRQ 17
[   11.861547] 8139too 0000:05:02.0 eth1: renamed from eth0
[   11.871537] systemd-udevd[348]: renamed network interface eth0 to eth1
[   18.202933] 8139too 0000:05:02.0 eth1: link down
[   18.202986] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[ 3290.204357] 8139too 0000:05:02.0 eth1: link down
[ 3290.204434] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[ 4845.027723] 8139too 0000:05:02.0 eth1: link down
[ 4845.027843] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[ 5989.527102] 8139too: 8139too Fast Ethernet driver 0.9.28
[ 5989.528048] 8139too 0000:05:02.0 eth0: RealTek RTL8139 at 0x000000000001e800, 00:1a:3f:af:f7:b7, IRQ 17
[ 5989.529618] 8139too 0000:05:02.0 eth1: renamed from eth0
[ 5989.545796] systemd-udevd[18359]: renamed network interface eth0 to eth1
[ 5989.548202] 8139too 0000:05:02.0 eth1: link down
[ 5989.548283] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[ 6076.132252] 8139too: 8139too Fast Ethernet driver 0.9.28
[ 6076.133132] 8139too 0000:05:02.0 eth0: RealTek RTL8139 at 0x000000000001e800, 00:1a:3f:af:f7:b7, IRQ 17
[ 6076.133622] 8139too 0000:05:02.0 eth1: renamed from eth0
[ 6076.147222] systemd-udevd[18408]: renamed network interface eth0 to eth1
[ 6076.149372] 8139too 0000:05:02.0 eth1: link down
[ 6076.149451] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready

Eu adiciono as duas últimas linhas a /etc/network/interfaces :

# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
auto eth1
iface eth1 inet dhcp

O arquivo /etc/udev/rules.d/70-persistent-net.rules contém duas regras para o ethernet, eth0 eu acho que é o que fritou.

# PCI device 0x10ec:0x8168 (r8169)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="48:5b:39:f9:34:bb", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# PCI device 0x10ec:0x8139 (8139too)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1a:3f:af:f7:b7", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

Eu tentei comentar o r8169, mas ele não faz nada.

Então, o que há de errado com este adaptador? Por que não conecta? Como faço para instalá-lo corretamente?

EDITAR

cat /var/log/syslog | grep eth1 retorna

Apr  1 19:58:25 fernando-PC avahi-autoipd(eth1)[2588]: Found user 'avahi-autoipd' (UID 105) and group 'avahi-autoipd' (GID 113).
Apr  1 19:58:25 fernando-PC avahi-autoipd(eth1)[2588]: Successfully called chroot().
Apr  1 19:58:25 fernando-PC avahi-autoipd(eth1)[2588]: Successfully dropped root privileges.
Apr  1 19:58:25 fernando-PC avahi-autoipd(eth1)[2588]: Starting with address 169.254.11.21
Apr  1 19:58:31 fernando-PC avahi-autoipd(eth1)[2588]: Callout BIND, address 169.254.11.21 on interface eth1
Apr  1 19:58:31 fernando-PC avahi-daemon[692]: Joining mDNS multicast group on interface eth1.IPv4 with address 169.254.11.21.
Apr  1 19:58:31 fernando-PC avahi-daemon[692]: New relevant interface eth1.IPv4 for mDNS.
Apr  1 19:58:31 fernando-PC avahi-daemon[692]: Registering new address record for 169.254.11.21 on eth1.IPv4.
Apr  1 19:58:35 fernando-PC avahi-autoipd(eth1)[2588]: Successfully claimed IP address 169.254.11.21
Apr  1 19:58:35 fernando-PC NetworkManager[2731]:    SCPluginIfupdown: guessed connection type (eth1) = 802-3-ethernet
Apr  1 19:58:35 fernando-PC NetworkManager[2731]:    SCPlugin-Ifupdown: update_connection_setting_from_if_block: name:eth1, type:802-3-ethernet, id:Ifupdown (eth1), uuid: 7b635ed6-2640-7ad8-675d-744db12dd9fa
Apr  1 19:58:35 fernando-PC NetworkManager[2731]:    SCPlugin-Ifupdown: adding eth1 to connections
Apr  1 19:58:35 fernando-PC NetworkManager[2731]:    SCPlugin-Ifupdown: adding iface eth1 to eni_ifaces
Apr  1 19:58:35 fernando-PC NetworkManager[2731]:    SCPlugin-Ifupdown: devices added (path: /sys/devices/pci0000:00/0000:00:1e.0/0000:05:02.0/net/eth1, iface: eth1)
Apr  1 19:58:35 fernando-PC NetworkManager[2731]: <info> (eth1): carrier is OFF
Apr  1 19:58:35 fernando-PC NetworkManager[2731]: <info> (eth1): new Ethernet device (driver: '8139too' ifindex: 2)
Apr  1 19:58:35 fernando-PC NetworkManager[2731]: <info> (eth1): exported as /org/freedesktop/NetworkManager/Devices/1
Apr  1 20:05:23 fernando-PC dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 3 (xid=0x51da0147)
.
.
.
Apr  1 20:38:38 fernando-PC dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 8 (xid=0xabe24e5a)
    
por f.rodrigues 02.04.2016 / 00:43

1 resposta

0

Eu me sinto muito bravo, aliviado e estúpido agora.

O problema é que o trovão também fritou a porta do roteador.

Depois de passar cerca de 5 horas tentei instalar placa e driver no Windows, o que também não funcionou, e o menu 'help' disse que o cabo não estava conectado, tentei trocar de cabo e porta ... Voila.

Moral da história, verifique sempre o cabo, portas e modem / roteador. Se não é problema de software / drive, deve ser hardware!

Obrigado a todos que comentaram.

    
por f.rodrigues 02.04.2016 / 05:15