View previous topic :: View next topic |
Author |
Message |
Denazare n00b
Joined: 20 Mar 2013 Posts: 18
|
Posted: Tue May 21, 2013 7:58 am Post subject: [eth0] probleme de configuration |
|
|
Bonjour, je viens d'installer ma premiere distrib gentoo et je rencontre un problème de réseau des lors que je boote sur ma nouvelle distrib:
Premièrement j'ai installé gentoo avec le minimal CD X86_64 et utilisé le stage3-amd64-20130516.
J'ai compilé le noyau a partir de gentoo-sources avec la commande
Avec le minimal cd la config réseau s'est faite automatiquement sur eth0 mais lorsque je boote sur mon noyau compilé,
ne fait apparaitre que lo et pas eth0
et lorsque je fait un seul lo apparaît
j'ai essayé de faire un (lorsque je lance net-setup avec le minimal cd il m'indique que le pilote atl1c est chargé pour eth0
mais je n'ai trouvé que atl1.ko dans /lib/modules3.8.13-gentoo/kernel/drivers/net/ethernet/atheros/atlx/ et pas atl1c.ko .....)
mais eth0 n'est toujours pas reconnu....
quelqu'un saurais il comment remédier au problème? |
|
Back to top |
|
|
Mythy Tux's lil' helper
Joined: 17 Jul 2012 Posts: 75
|
Posted: Tue May 21, 2013 4:10 pm Post subject: |
|
|
Hello,
J'avais un problème similaire à l'époque, j'avais fais un emerge linux-firmwares (sous les conseils de ce forum) avant de compiler.
Tu peux essayer ça |
|
Back to top |
|
|
sebB l33t
Joined: 02 Mar 2011 Posts: 806 Location: S.O. France
|
Posted: Tue May 21, 2013 4:49 pm Post subject: |
|
|
Il faut que tu active Atheros L1C Gigabit Ethernet support (atl1c) et non Atheros/Attansic L1 Gigabit Ethernet support (atl1)
Code: | Device Drivers
-> Network device support
-> Ethernet driver support
-> Atheros devices
->Atheros L1C Gigabit Ethernet support |
|
|
Back to top |
|
|
boozo Advocate
Joined: 01 Jul 2004 Posts: 3193
|
Posted: Tue May 21, 2013 5:21 pm Post subject: |
|
|
+1 sebB (quoiqu'un #lspci aurait aidé)
--menuconfig wrote: | │ Symbol: ATL1C [=n] │
│ Type : tristate │
│ Prompt: Atheros L1C Gigabit Ethernet support (EXPERIMENTAL) │
│ Defined at drivers/net/ethernet/atheros/Kconfig:58 │
│ Depends on: NETDEVICES [=y] && ETHERNET [=y] && NET_VENDOR_ATHEROS [=n] && PCI [=y] && EXPERIMENTAL [=y] │
│ Location: │
│ -> Device Drivers │
│ -> Network device support (NETDEVICES [=y]) │
│ -> Ethernet driver support (ETHERNET [=y]) │
│ (2) -> Atheros devices (NET_VENDOR_ATHEROS [=n]) │
│ Selects: CRC32 [=y] && NET_CORE [=y] && MII [=y] │
│ Symbol: ATL1 [=n] │
│ Type : tristate │
│ Prompt: Atheros/Attansic L1 Gigabit Ethernet support │
│ Defined at drivers/net/ethernet/atheros/Kconfig:33 │
│ Depends on: NETDEVICES [=y] && ETHERNET [=y] && NET_VENDOR_ATHEROS [=n] && PCI [=y] │
│ Location: │
│ -> Device Drivers │
│ -> Network device support (NETDEVICES [=y]) │
│ -> Ethernet driver support (ETHERNET [=y]) │
│ (3) -> Atheros devices (NET_VENDOR_ATHEROS [=n]) │
│ Selects: CRC32 [=y] && NET_CORE [=y] && MII [=y] │
|
ps: C'aurait été sympa pour les participants de nous faire un retour sur ton fil grub...
Edit: ok noté ^^. Tu sais c'est plus pour que cela aide de nouveaux arrivants qui rencontreraient le même problème (et pour la curiosité intellectuelle aussi) _________________ " Un psychotique, c'est quelqu'un qui croit dur comme fer que 2 et 2 font 5, et qui en est pleinement satisfait.
Un névrosé, c'est quelqu'un qui sait pertinemment que 2 et 2 font 4, et ça le rend malade ! " |
|
Back to top |
|
|
Denazare n00b
Joined: 20 Mar 2013 Posts: 18
|
Posted: Tue May 21, 2013 6:00 pm Post subject: |
|
|
Mythy wrote: | Hello,
J'avais un problème similaire à l'époque, j'avais fais un emerge linux-firmwares (sous les conseils de ce forum) avant de compiler.
Tu peux essayer ça |
je vais tenter! |
|
Back to top |
|
|
Denazare n00b
Joined: 20 Mar 2013 Posts: 18
|
Posted: Tue May 21, 2013 6:01 pm Post subject: |
|
|
sebB wrote: | Il faut que tu active Atheros L1C Gigabit Ethernet support (atl1c) et non Atheros/Attansic L1 Gigabit Ethernet support (atl1)
Code: | Device Drivers
-> Network device support
-> Ethernet driver support
-> Atheros devices
->Atheros L1C Gigabit Ethernet support |
|
c'est a activer dans les paramètres de compil du noyau? |
|
Back to top |
|
|
k-root Guru
Joined: 08 Jan 2005 Posts: 428
|
Posted: Tue May 21, 2013 6:09 pm Post subject: |
|
|
oui,
Code: | cd /usr/src/linux
make menuconfig |
cat /usr/src/linux/.config | grep ATL1C
Code: | make modules_install |
_________________
boozo wrote: | Gentoo, ça mange des ours et baffe des buffles par 37°C avec un bob et des tongs |
|
|
Back to top |
|
|
Denazare n00b
Joined: 20 Mar 2013 Posts: 18
|
Posted: Tue May 21, 2013 6:23 pm Post subject: |
|
|
k-root wrote: | oui,
Code: | cd /usr/src/linux
make menuconfig |
cat /usr/src/linux/.config | grep ATL1C
Code: | make modules_install |
|
ok et je peut quand même compiler avec genkernel après sa ou je configure tout à la main? |
|
Back to top |
|
|
boozo Advocate
Joined: 01 Jul 2004 Posts: 3193
|
|
Back to top |
|
|
Denazare n00b
Joined: 20 Mar 2013 Posts: 18
|
Posted: Wed May 22, 2013 1:28 pm Post subject: |
|
|
je viens de recompiler mon noyaux en le configurant à la main(j'ai pas utilisé genkernel) et j'ai bien rajouté atl1c (en compilé et pas en module) et ma carte réseau est toujours pas détectée...
j'ai fait un pour vérifier que ma carte réseau est bien compatible avec atl1c et c'est bien le cas (Atheros AR 8152 V2.0 Fast Ethernet)
Quelqu'un aurais une idée? |
|
Back to top |
|
|
boozo Advocate
Joined: 01 Jul 2004 Posts: 3193
|
|
Back to top |
|
|
Denazare n00b
Joined: 20 Mar 2013 Posts: 18
|
Posted: Wed May 22, 2013 5:44 pm Post subject: |
|
|
boozo wrote: | Que renvois un #ifconfig -a ? (et qu'y-a-t'il au dmsg concernant atl1c) |
Code: | enp7s0: flags=4098<BROADCAST,MULTICAST> mtu 1500
ether 00:1e:8c:f1:03:e6 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
loop txqueuelen 0 (Local Loopback)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 |
qu'appele tu dmsg? |
|
Back to top |
|
|
boozo Advocate
Joined: 01 Jul 2004 Posts: 3193
|
|
Back to top |
|
|
Denazare n00b
Joined: 20 Mar 2013 Posts: 18
|
Posted: Wed May 22, 2013 8:04 pm Post subject: |
|
|
boozo wrote: | Denazare wrote: | Code: | enp7s0: flags=4098<BROADCAST,MULTICAST> mtu 1500 |
|
udev à encore frappé ! Predictable net devices naming
Pour résoudre => voir ici et choisir ce que tu souhaites faire : conserver l'ancienne saveur ou passer à cette chose parfaitement inutile pour un usage desktop courant.
ps: pardon pour la typo, c'était la commande #dmesg qui t'affiche les logs systèmes (voir man dmesg pour plus d'infos)
Eh, pis il faudrait se mettre un peu à Linux non ? |
si j'ai bien compris udev me nome le lien vers ma carte reseau enp7s0 au lieu de eth0 et c'est cela qui fout le bazar?
donc je fait?
Code: | ln -s net.lo /etc/init.d/net.enp7s0
rc-update delete net.eth0 default
rc-update add net.enp7s0 default |
et si je crée une règle pour udev qui me crée un lien nommé eth0 en plus de enp7s0 sa résoudrais pas aussi le problème? |
|
Back to top |
|
|
boozo Advocate
Joined: 01 Jul 2004 Posts: 3193
|
|
Back to top |
|
|
k-root Guru
Joined: 08 Jan 2005 Posts: 428
|
Posted: Thu May 23, 2013 10:54 am Post subject: |
|
|
Denazare wrote: | si j'ai bien compris udev me nome le lien vers ma carte reseau enp7s0 au lieu de eth0 et c'est cela qui fout le bazar?
donc je fait?
Code: | ln -s net.lo /etc/init.d/net.enp7s0
rc-update delete net.eth0 default
rc-update add net.enp7s0 default |
et si je crée une règle pour udev qui me crée un lien nommé eth0 en plus de enp7s0 sa résoudrais pas aussi le problème? |
net0 serait plus approprié
cat /etc/udev/rules.d/70-persistent-net.rules
Code: |
# This file was automatically generated by the /lib64/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.
# PCI device 0x1969:0x1048 (atl1)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:26:18:bc:4e:60", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="net0"
# PCI device 0x1969:/sys/devices/pci0000:00/0000:00:1c.1/0000:03:00.0 (atl1c)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="8c:89:a5:53:30:4f", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="net1" |
ensuite , il faut renommer les scripts , ls /etc/init.d/net.net
Code: | lrwxrwxrwx 1 root root 6 23 janv. 2012 /etc/init.d/net.net0 -> net.lo
lrwxrwxrwx 1 root root 6 3 sept. 2012 /etc/init.d/net.net1 -> net.lo
|
rc-status -s | grep started
Quote: | hwclock [ started ]
hostname [ started ]
sysfs [ started ]
udev-mount [ started ]
devfs [ started ]
dmesg [ started ]
udev [ started ]
modules [ started ]
fsck [ started ]
root [ started ]
mtab [ started ]
swap [ started ]
localmount [ started ]
sysctl [ started ]
bootmisc [ started ]
syslog-ng [ started ]
dbus [ started ]
NetworkManager [ started ]
procfs [ started ]
termencoding [ started ]
keymaps [ started ]
net.lo [ started ]
xdm-setup [ started ]
consolekit [ started ]
netmount [ started ]
gpm [ started ]
xdm [ started ]
urandom [ started ]
swapfiles [ started ]
cupsd [ started ]
tmpfiles.setup [ started ]
ntpd [ started ]
local [ started ]
|
-> pas sur que tout le monde aime NetworkManager _________________
boozo wrote: | Gentoo, ça mange des ours et baffe des buffles par 37°C avec un bob et des tongs |
|
|
Back to top |
|
|
xaviermiller Bodhisattva
Joined: 23 Jul 2004 Posts: 8711 Location: ~Brussels - Belgique
|
Posted: Thu May 23, 2013 11:00 am Post subject: |
|
|
@k-root: la rule "70, persistent net" n'est plus valable avec udev >=190, il faut créer un fichier "80 network trucmuche" vide, comme mentionné par la news (que tout le monde a lu, c'est pour cela que ce sujet n'existe pas). _________________ Kind regards,
Xavier Miller |
|
Back to top |
|
|
k-root Guru
Joined: 08 Jan 2005 Posts: 428
|
Posted: Thu May 23, 2013 11:07 am Post subject: |
|
|
c'est vrai que je ne passe pas souvent
et pourtant
Code: | [ 3.393990] systemd-udevd[1183]: starting version 204
[ 4.541470] systemd-udevd[1205]: renamed network interface eth0 to net1
[ 4456.085820] systemd-udevd[3347]: renamed network interface wlan0 to wlp0s29f7u5u3
|
ls -l /etc/udev/*
Code: | -r--r--r-- 1 root root 5637695 22 mai 01:24 /etc/udev/hwdb.bin
-rw-r--r-- 1 root root 44 22 mai 01:24 /etc/udev/udev.conf
/etc/udev/hwdb.d:
total 0
/etc/udev/rules.d:
total 8
-rw-r--r-- 1 root root 671 16 mai 16:15 70-persistent-net.rules
-rw-r--r-- 1 root root 0 24 janv. 2012 99-beagle.rules
-rw-r--r-- 1 root root 120 4 avril 2012 99-hokey-pokey.rules |
edit : from http://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/
Quote: | You create your own manual naming scheme, for example by naming your interfaces "internet0", "dmz0" or "lan0". For that create your own udev rules file and set the NAME property for the devices. Make sure to order it before the default policy file, for example by naming it /etc/udev/rules.d/70-my-net-names.rules |
_________________
boozo wrote: | Gentoo, ça mange des ours et baffe des buffles par 37°C avec un bob et des tongs |
Last edited by k-root on Thu May 23, 2013 12:05 pm; edited 1 time in total |
|
Back to top |
|
|
boozo Advocate
Joined: 01 Jul 2004 Posts: 3193
|
|
Back to top |
|
|
xaviermiller Bodhisattva
Joined: 23 Jul 2004 Posts: 8711 Location: ~Brussels - Belgique
|
Posted: Thu May 23, 2013 12:08 pm Post subject: |
|
|
QUOI ??? Il suffirait de garder son "persistent net rules" pour que ça marche ???
Des boulets nous le suppriment unilatéralement, c'est un diktat ! _________________ Kind regards,
Xavier Miller |
|
Back to top |
|
|
k-root Guru
Joined: 08 Jan 2005 Posts: 428
|
Posted: Thu May 23, 2013 12:29 pm Post subject: |
|
|
.. de modifier les nom dans "persistent net rules"
Quote: | # PCI device 0x1969:/sys/devices/pci0000:00/0000:00:1c.1/0000:03:00.0 (atl1c)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="8c:89:a5:53:30:4f", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="net1" |
renommer le fichier n'est pas obligatoire _________________
boozo wrote: | Gentoo, ça mange des ours et baffe des buffles par 37°C avec un bob et des tongs |
|
|
Back to top |
|
|
StinGer_Uesugi Tux's lil' helper
Joined: 12 Nov 2010 Posts: 139 Location: Milky Way > Solar System > Earth > France > Paris > Home
|
Posted: Fri May 24, 2013 8:16 am Post subject: |
|
|
boozo wrote: | quel bord** cet udev !
Bon, je sors sinon on va m'accuser de médisance envers cette adorable "chose" et ses mainteneurs... À juste titre d'ailleurs) ------------ [ ] |
Chez moi ça marche !
Mais non sans mal. _________________ Why drink and drive when you can smoke and fly ? |
|
Back to top |
|
|
|