#1 Le 13/08/2016, à 16:46
- chez MomO
ethernet ne fonctionne plus sous linux (a toujours fonctionné)[resolu]
bonjours à tous,
je vous contacte car j'ai un problème, çà fait 3 jours que je suis dessus et ça me gave.
je m'explique :
c'est un portable ASUS X550LNV.
à l'origine il y avait windows 8. j'y avais mis xubuntu 15.04 car mon frère y est habitué.
c’était OK sauf le Bluetooth.
un an apres (cette semaine) j'y met xubuntu 16.04
Ethernet OK, installation des pilotes wifi OK, sauf le Bluetooth.
donc j'ai essayé de trouver la solution pour ce foutu Bluetooth.
puis j'ai du faire une connerie je sais pas/plus où, résultat plus de wifi, plus d'Ethernet.
bon alors je me suis dis, on refait l'installation complète et puis c'est reparti.
et là avec le live USB, pas d'Ethernet.
bon j'installe quand même.
et toujours pas d'Ethernet.
j'essaye plusieurs distrib, rien a faire.
j'en suis arrivé à télécharger et installer windows 8.
windows 8 => Ethernet OK, wifi OK
je relance plusieurs live linux => pas d'Ethernet
voila je ne sais pas quoi faire.
je compte sur votre expertise car moi là, je sais pas faire.
je vous met le résultat de quelques commandes :
ubuntu@ubuntu:~$ sudo lshw -C network *-network description: Ethernet interface produit: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller fabriquant: Realtek Semiconductor Co., Ltd. identifiant matériel: 0.1 information bus: pci@0000:02:00.1 nom logique: enp2s0f1 version: 12 numéro de série: 78:24:af:23:da:0a taille: 10Mbit/s capacité: 1Gbit/s bits: 64 bits horloge: 33MHz fonctionnalités: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=half firmware=rtl8411-2_0.0.1 07/08/13 latency=0 link=no multicast=yes port=MII speed=10Mbit/s ressources: irq:47 portE/S:e000(taille=256) mémoire:f7914000-f7914fff mémoire:f7910000-f7913fff *-network description: Network controller produit: BCM43142 802.11b/g/n fabriquant: Broadcom Corporation identifiant matériel: 0 information bus: pci@0000:03:00.0 version: 01 bits: 64 bits horloge: 33MHz fonctionnalités: pm msi pciexpress bus_master cap_list configuration: driver=bcma-pci-bridge latency=0 ressources: irq:19 mémoire:f7800000-f7807fff ubuntu@ubuntu:~$ sudo ifconfig enp2s0f1 Link encap:Ethernet HWaddr 78:24:af:23:da:0a UP BROADCAST MULTICAST MTU:1500 Metric:1 Packets reçus:0 erreurs:0 :0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 lg file transmission:1000 Octets reçus:0 (0.0 B) Octets transmis:0 (0.0 B) lo Link encap:Boucle locale inet adr:127.0.0.1 Masque:255.0.0.0 adr inet6: ::1/128 Scope:Hôte UP LOOPBACK RUNNING MTU:65536 Metric:1 Packets reçus:324 erreurs:0 :0 overruns:0 frame:0 TX packets:324 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 lg file transmission:1 Octets reçus:23920 (23.9 KB) Octets transmis:23920 (23.9 KB) ubuntu@ubuntu:~$ cat /etc/network/interfaces # interfaces(5) file used by ifup(8) and ifdown(8) auto lo iface lo inet loopback
voila je m'en remet à vous.
merci
Dernière modification par chez MomO (Le 13/08/2016, à 18:22)
Hors ligne
#2 Le 13/08/2016, à 18:16
- chez MomO
Re : ethernet ne fonctionne plus sous linux (a toujours fonctionné)[resolu]
j'ai trouvé la solution!
enfin, quelqu’un l'avait trouvé pour nous.
en fait j'avais déjà trouvé mais il y avais des commandes qui ne marchaient pas.
les commandes ne marchaient pas, car il ne faut pas le faire avec sudo mais avec le vrais compte root.
j'ai trouvé ceci a cette adresse : https://doc.ubuntu-fr.org/root
Obtenir un terminal root
Si sudo est pratique pour exécuter une ou deux commandes avec les droits d'administration (ce qui sera généralement le cas), il peut être agaçant pour effectuer une série de tâches administratives. Si vous avez besoin d'exécuter plusieurs commandes réservées à root à la suite, il est inutile d'activer le compte root ; ouvrez simplement une console et exécutez la commande suivante sudo -i. Il vous est ensuite demandé de saisir votre mot de passe (celui du compte courant) afin d'activer la session système.
$ sudo -i
[sudo] password for <votre identifiant>:
Dans ce terminal uniquement, le compte courant sera root pour une durée indéterminée. Pour reprendre votre identité, saisissez la commande suivante :
# exit
ensuite faire la méthode décrite a cette adresse : https://unixblogger.com/2011/10/18/the- … rnet-card/
attention au point 8 le petit signe c'est la touche AltGr+7 sur le clavier français.
la méthode permet de remplacer le module r8169 (qui présenterait un bug) par le r8168 (qui lui, est fonctionnel)
1. Get root privileges
Get root privileges, while typing “su” or (when you use Ubuntu) “sudo -s” in a terminal.
2. Get the requirements
To build and install the driver, we need the kernel headers and the build tools like gcc. To get them, just easily type in a terminal:
apt-get install build-essential
3. Get the driver
Now, go to the official download page from Realtek for the Linux/UNIX Driver for the RTL8111/RTL8168 ethernet card and download the latest driver version.
Link: Realtek Download Page
4. Untar the archive
The driver is compressed to an archive. So uncompress it with the following command:
tar xfvj r8168-8.025.00.tar.bz2
NOTE: Please do not forget to replace the “r8168-8.025.00.tar.bz2” with the driver version which you have downloaded!
5. Blacklist old driver
We have to blacklist the old driver (r8169) to prevent the system to load it. To do this, easily set a new entry in “/etc/modprobe.d/blacklist.conf” which is called:
blacklist r8169
or just enter in the terminal again
echo “blacklist r8169” >> /etc/modprobe.d/blacklist.conf
to do this in only one command.
6. Build and install the new driver
Now, the whole requirements to install the new driver are done. Let us now change in the driver directory, which we have uncompressed in a few steps before:
cd r8168-8.025.00
NOTE: Again, please do not forget, to change “r8168-8.025.00” to the version which you have downloaded.
The only think we have to do now is, to build the driver and install it. To build it, just type:
make clean modules
after a few secondes (depending on your CPU), the driver is build and you can install it with:
make install
7. Welcome r8168
One of our last steps is, to let the system know about the r8168 driver. With the command
depmod -a
you rebuild the kernel module dependencies and with an
insmod ./src/r8168.ko
you insert the new kernel module (the driver) into the kernel.
8. Make it available for boot
To always use the new module, you have to make a new initrd boot file. Just do
mkinitramfs -o /boot/initrd.img-`uname -r` `uname -r`
in a terminal. Here we make the initrd file with the help of the “uname -r” command, which allows us to get the version of the actually running kernel.
At least, you have to add in the “/etc/modules” file a new entry, which is called “r8168”, to get the driver automatically loaded after boot. As an alternative you can do the last step again with only one command:
echo “r8168” >> /etc/modules
That’s it! After a reboot you should have the best possible performance with the RTL8111/RTL8168 and additionally no other network problems should be available anymore (no break down).
After the reboot you can check if the right driver is loaded with this command:
lspci -v
with this command you should find your RTL8111/RTL8168 network card in a list and the additional command “Kernel driver in use: r8168”.
Hors ligne