Eu comprei um adaptador ethernet USB para o meu ARM-Board executando o debian ter uma segunda interface. Eu compilei e carreguei o driver / módulo e o dispositivo está sendo reconhecido:
[ 5.285487] usb 2-1.3.1: new high speed USB device number 5 using usb20_host
[ 5.410218] usb 2-1.3.1: New USB device found, idVendor=0b95, idProduct=1790
[ 5.415139] usb 2-1.3.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 5.419292] usb 2-1.3.1: Product: AX88179
[ 5.423656] usb 2-1.3.1: Manufacturer: ASIX Elec. Corp.
[ 5.428398] usb 2-1.3.1: SerialNumber: 00803F5AF88883
[ 38.570534] ax88179_178a 2-1.3.1:1.0: eth1: register 'ax88179_178a' at usb-usb20_host-1.3.1, ASIX AX88179 USB 3.0 Gigabit Ethernet, 80:4a:56:02:1e:84
mais algumas informações:
lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 002 Device 003: ID 0bda:0724 Realtek Semiconductor Corp.
Bus 002 Device 004: ID 2109:2812
Bus 002 Device 005: ID 0b95:1790 ASIX Electronics Corp.
Então eu corri
ifconfig eth1 up
ifconfig eth1 192.168.2.2 netmask 255.255.255.0
então aparecendo como:
ifconfig eth1
eth1 Link encap:Ethernet HWaddr 80:4a:56:02:1e:84
inet addr:192.168.2.2 Bcast:192.168.2.255 Mask:255.255.255.0
UP BROADCAST RUNNING 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)
Mas quando conectado à placa ARM, o LED no dispositivo (para link e atividade) nunca aparece. Por isso, verifiquei o consumo de energia (apesar do fato de o adaptador ethernet USB estar conectado por meio de um hub USB ativo):
lsusb -s 002:005 -v | grep MaxPower
MaxPower 248mA
Além disso, não consigo fazer o ping do formulário de IP para fora, nem posso acessar nenhum outro PC ou gateway na rede. Então parece que o I / O não está funcionando. Totalmente funcionando e também piscando é o adaptador quando conectado ao meu laptop rodando opensuse 13.1 (com drivers incluídos). Alguma idéia do que poderia causar esse problema?
EDIT2: Na configuração atual ambas as interfaces estão conectadas ao mesmo switch, eu também troquei os cabos e tentei no total 5 diferentes, todos eles estão trabalhando ao usar o adaptador usb com o laptop conectando ao mesmo switch:
# ethtool eth1
Settings for eth1:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Advertised link modes: Not reported
Advertised pause frame use: No
Advertised auto-negotiation: No
Speed: 10Mb/s
Duplex: Half
Port: MII
PHYAD: 3
Transceiver: internal
Auto-negotiation: off
Supports Wake-on: pg
Wake-on: g
Current message level: 0x00000007 (7)
drv probe link
Link detected: no
# ethtool eth0
Settings for eth0:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Supported pause frame use: Symmetric Receive-only
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Advertised pause frame use: Symmetric Receive-only
Advertised auto-negotiation: Yes
Speed: 100Mb/s
Duplex: Full
Port: MII
PHYAD: 0
Transceiver: external
Auto-negotiation: on
Link detected: yes
Aqui alguns mais sobre a configuração:
ifconfig
eth0 Link encap:Ethernet HWaddr de:ad:ff:ad:fe:ef
inet addr:192.168.178.3 Bcast:192.168.178.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1295 errors:0 dropped:0 overruns:0 frame:0
TX packets:1115 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:321305 (313.7 KiB) TX bytes:184021 (179.7 KiB)
Interrupt:51
eth1 Link encap:Ethernet HWaddr 80:4a:56:02:1e:84
inet addr:192.168.178.10 Bcast:192.168.178.255 Mask:255.255.255.0
UP BROADCAST RUNNING 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)
# ip addr show
1: lo: <LOOPBACK> mtu 16436 qdisc noop state DOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether de:ad:ff:ad:fe:ef brd ff:ff:ff:ff:ff:ff
inet 192.168.178.3/24 brd 192.168.178.255 scope global eth0
inet 192.168.2.2/24 brd 192.168.2.255 scope global eth0
8: eth1: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000
link/ether 80:4a:56:02:1e:84 brd ff:ff:ff:ff:ff:ff
inet 192.168.178.10/24 brd 192.168.178.255 scope global eth1
fonte