clon¥
(usa Debian)
Enviado em 29/10/2012 - 09:50h
Estou com esta mesma dificuldade mas as dicas não funcionaram para o meu caso.
Ainda não consegui ativar a 2ª placa de rede - Atheros.
Inicialmente atualizei até o kernel (li que poderia ser isso) de 2.6.32-5 para 2.6.39 --> Neste momento estou operando no kernel 2.6.39.
*** O que significam os números: "1969 1083".
Acredito que o "1083" seja uma referência à Atheros como mostra o comando lspci, mas e o "1969"?
*** Reparei que o arquivo "new_id" do comando indicado está com "permissão negada" é assim mesmo?
echo "1969 1083" > /sys/bus/pci/drivers/atl1c/new_id
Eis o conteúdo de alguns arquivos do meu servidor:
INTERFACES:
cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
iface eth0 inet static
address 192.168.0.7
network 192.168.0.0
netmask 255.255.255.0
gateway 192.168.0.1
# rede eth1
allow-hotplug eth1
iface eth1 inet static
address 192.168.0.8
network 192.168.0.0
netmask 255.255.255.0
gateway 192.168.0.1
========================
LSPCI:
07:00.0 Ethernet controller: Atheros Communications Device 1083 (rev c0)
Subsystem: ASUSTeK Computer Inc. Device 847e
Flags: bus master, fast devsel, latency 0, IRQ 18
Memory at fb900000 (64-bit, non-prefetchable) [size=256K]
I/O ports at d000 [size=128]
Capabilities: [40] Power Management version 3
Capabilities: [48] MSI: Enable- Count=1/1 Maskable- 64bit+
Capabilities: [58] Express Endpoint, MSI 00
Capabilities: [6c] Vital Product Data
Capabilities: [100] Advanced Error Reporting
Capabilities: [180] Device Serial Number ff-72-a5-5f-14-da-e9-ff
Kernel driver in use: atl1c
08:00.0 PCI bridge: Device 1b21:1080 (rev 01) (prog-if 01 [Subtractive decode])
Flags: bus master, fast devsel, latency 0
Bus: primary=08, secondary=09, subordinate=09, sec-latency=32
I/O behind bridge: 0000c000-0000cfff
Memory behind bridge: fb800000-fb8fffff
Capabilities: [c0] Subsystem: ASUSTeK Computer Inc. Device 8489
09:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8169 Gigabit Ethernet (rev 10)
Subsystem: Realtek Semiconductor Co., Ltd. RTL-8169 Gigabit Ethernet
Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 19
I/O ports at c000 [size=256]
Memory at fb820000 (32-bit, non-prefetchable) [size=256]
Expansion ROM at fb800000 [disabled] [size=128K]
Capabilities: [dc] Power Management version 2
Kernel driver in use: r8169
================
MODULES:
root@bsbsrv:~# cat /etc/modules
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
# Parameters can be specified after the module name.
loop
atl1c
alias eth1 atl1c
=============================
IFCONFIG:
ifconfig
eth0 Link encap:Ethernet Endereço de HW f8:d1:11:00:83:70
inet end.: 192.168.0.7 Bcast:192.168.0.255 Masc:255.255.255.0
endereço inet6: fe80::fad1:11ff:fe00:8370/64 Escopo:Link
UP BROADCASTRUNNING MULTICAST MTU:1500 Métrica:1
RX packets:2279 errors:0 dropped:0 overruns:0 frame:0
TX packets:589 errors:0 dropped:0 overruns:0 carrier:0
colisões:0 txqueuelen:1000
RX bytes:199328 (194.6 KiB) TX bytes:204559 (199.7 KiB)
IRQ:19
lo Link encap:Loopback Local
inet end.: 127.0.0.1 Masc:255.0.0.0
endereço inet6: ::1/128 Escopo:Máquina
UP LOOPBACKRUNNING MTU:16436 Métrica:1
RX packets:98 errors:0 dropped:0 overruns:0 frame:0
TX packets:98 errors:0 dropped:0 overruns:0 carrier:0
colisões:0 txqueuelen:0
RX bytes:8684 (8.4 KiB) TX bytes:8684 (8.4 KiB)
=================
IFCONFIG ETH1 UP:
ifconfig eth1 up
eth1: ERROR while getting interface flags: Dispositivo inexistente
=========================
RC.LOCAL
cat rc.local
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
echo "1969 1083" > /sys/bus/pci/drivers/atl1c/new_id
exit 0