bonjour à tous et bonne année
je viens d'installer une distribution gentoo sur une machine possèdant 2 cartes réseaux : une intégrée à la carte mère (msi 865pe neo2) qui est une Intel 82562ez, et une branchée sur le port pci qui est une 3Com 3C905C. voici le résultat de la commande lscpi :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| 00:00.0 Host bridge: Intel Corporation 82865G/PE/P DRAM Controller/Host-Hub Interface (rev 02)
00:01.0 PCI bridge: Intel Corporation 82865G/PE/P PCI to AGP Controller (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #3 (rev 02)
00:1d.3 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #4 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev c2)
00:1f.0 ISA bridge: Intel Corporation 82801EB/ER (ICH5/ICH5R) LPC Interface Bridge (rev 02)
00:1f.1 IDE interface: Intel Corporation 82801EB/ER (ICH5/ICH5R) IDE Controller (rev 02)
00:1f.2 IDE interface: Intel Corporation 82801EB (ICH5) SATA Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801EB/ER (ICH5/ICH5R) SMBus Controller (rev 02)
00:1f.5 Multimedia audio controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller (rev 02)
01:00.0 VGA compatible controller: nVidia Corporation NV34 [GeForce FX 5200] (rev a1)
02:01.0 Ethernet controller: 3Com Corporation 3c905C-TX/TX-M [Tornado] (rev 78)
02:08.0 Ethernet controller: Intel Corporation 82562EZ 10/100 Ethernet Controller (rev 02) |
Les modules sont respectivement 3c59x et e100. Ils sont chargés, un lsmod donne :
1 2 3 4 5 6 7 8 9 10 11 12 13 14
| Module Size Used by
parport_pc 32452 0
parport 27592 1 parport_pc
floppy 53252 0
e100 31872 0
3c59x 34728 0
rtc 10424 0
sl811_hcd 11136 0
ohci_hcd 18180 0
uhci_hcd 29200 0
usb_storage 61120 0
usbhid 33888 0
ehci_hcd 28424 0
usbcore 94080 7 sl811_hcd,ohci_hcd,uhci_hcd,usb_storage,usbhid,ehci_hcd |
Ma première question est :
Comment savoir à quelle carte réseau sera attribuée une interface ? (eth0 pour la carte interne, et eth1 pour celle branchée sur le pci) Et y a t'il un moyen de le changer ?
Le réseau ne fonctionne pas, du moins dans certains cas.
Voici ce qui se passe au boot :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
| Checking internal tree..finished [ ok ]
* Mounting USB device filesystem (usbfs) ... [ ok ]
* Activating (possibly) more swap ... [ ok ]
* Setting up dm-crypt mappings ... [ ok ]
* Setting system clock to hardware clock [UTC] ... [ ok ]
* Setting DNS domainname to bunker.homeunix.net ... [ ok ]
* Configuring kernel parameters ... [ ok ]
* Updating environment ... [ ok ]
* Cleaning /var/lock, /var/run ... [ ok ]
* Cleaning /tmp directory ... [ ok ]
* Coldplugging input devices ... [ ok ]
* Coldplugging isapnp devices ... [ ok ]
* Coldplugging pci devices ... [ ok ]
* Coldplugging pnp devices ... [ ok ]
* Coldplugging usb devices ... [ ok ]
* Loading ALSA modules ... [ ok ]
* Restoring Mixer Levels ... [ ok ]
* Loading key mappings ... [ ok ]
* Setting terminal encoding to ASCII ... [ ok ]
* Setting user font ... [ ok ]
* Starting lo
* iproute2 does not support the required function provides
* Initializing random number generator ... [ ok ]
INIT: Entering runlevel: 3 [ ok ]
* Starting syslog-ng ... [ ok ]
* Starting gpm ... [ ok ]
* Starting eth1
* adsl does not support the required function provides
* apipa does not support the required function check_installed
* arping does not support the required function provides
* bonding does not support the required function provides
* bridge does not support the required function provides
* dhclient does not support the required function provides
* dhcpcd does not support the required function provides
* essidnet does not support the required function check_installed
* ifconfig does not support the required function provides
* ifplugd does not support the required function provides
* ipppd does not support the required function provides
* iproute2 does not support the required function provides
* iptunnel does not support the required function check_installed
* iwconfig does not support the required function provides
* macchanger does not support the required function check_installed
* macnet does not support the required function check_installed
* netplugd does not support the required function provides
* pppd does not support the required function provides
* pump does not support the required function provides
* rename does not support the required function check_installed
* system does not support the required function check_installed
* tuntap does not support the required function provides
* udhcpc does not support the required function provides
* vlan does not support the required function provides
* wpa_supplicant does not support the required function provides
* no interface module has been loaded
* ERROR: Problem starting needed services.
* "netmount" was not started.
* ERROR: Problem starting needed services.
* "sshd" was not started.
* Starting vixie-cron ... [ ok ]
* Setting up kdm ... [ ok ]
* Starting local ... [ ok ] |
Seule la carte 3Com (eth1) est reliée au réseau pour le moment. Un rc-update show donne ceci :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
| alsasound | boot
bootmisc | boot
checkfs | boot
checkroot | boot
clock | boot
coldplug | boot
consolefont | boot
crypto-loop |
cupsd |
dbus |
domainname | boot default
famd |
gpm | default
hald |
hdparm |
hostname | boot
hotplug |
keymaps | boot
local | default nonetwork
localmount | boot
modules | boot
mysql |
mysqlmanager |
net.eth0 |
net.eth1 | default
net.lo | boot
netmount | default
nscd |
numlock |
portmap |
pwcheck |
rmnologin | boot
rsyncd |
samba |
saslauthd |
sshd | default
syslog-ng | default
urandom | boot
vixie-cron | default
xdm | default |
La commande ifconfig ne retourne rien du tout pas même la boucle locale lo.
Mon fichier de configuration /etc/conf.d/net contient ceci :
1 2 3 4 5 6 7 8 9
| # This blank configuration will automatically use DHCP for any net.*
# scripts in /etc/init.d. To create a more complete configuration,
# please review /etc/conf.d/net.example and save your configuration
# in /etc/conf.d/net (this file :]!).
config_eth0=("null")
config_eth1=("192.168.1.20/24")
routes_eth1=("default gw 192.168.1.1") |
J'ai créé les liens symboliques net.ethx comme expliqué dans la doc www.gentoo.org.
ls -l /etc/init.d/
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
| -rwxr-xr-x 1 root root 7183 jan 6 22:25 alsasound
-rwxr-xr-x 1 root root 3620 oct 19 21:18 bootmisc
-rwxr-xr-x 1 root root 1205 oct 19 21:18 checkfs
-rwxr-xr-x 1 root root 3025 oct 19 21:18 checkroot
-rwxr-xr-x 1 root root 2472 oct 19 21:18 clock
-rwxr-xr-x 1 root root 889 jan 5 20:42 coldplug
-rwxr-xr-x 1 root root 1414 oct 19 21:18 consolefont
-rwxr-xr-x 1 root root 1625 oct 19 21:40 crypto-loop
-rwxr-xr-x 1 root root 515 jan 6 21:37 cupsd
-rwxr-xr-x 1 root root 944 jan 7 01:11 dbus
lrwxrwxrwx 1 root root 21 jan 7 01:26 depscan.sh -> ../../sbin/depscan.sh
-rwxr-xr-x 1 root root 1416 oct 19 21:18 domainname
-rwxr-xr-x 1 root root 490 jan 7 00:19 famd
lrwxrwxrwx 1 root root 23 jan 7 01:26 functions.sh -> ../../sbin/functions.sh
-rwxr-xr-x 1 root root 951 jan 6 19:34 gpm
-rwxr-xr-x 1 root root 646 jan 7 01:28 hald
-rwxr-xr-x 1 root root 6875 oct 19 21:18 halt.sh
-rwxr-xr-x 1 root root 2708 oct 19 21:40 hdparm
-rwxr-xr-x 1 root root 945 oct 19 21:18 hostname
-rwxr-xr-x 1 root root 1076 jan 5 20:42 hotplug
-rwxr-xr-x 1 root root 1801 oct 19 21:18 keymaps
-rwxr-xr-x 1 root root 620 oct 19 21:18 local
-rwxr-xr-x 1 root root 1316 oct 19 21:18 localmount
-rwxr-xr-x 1 root root 2625 oct 19 21:18 modules
-rwxr-xr-x 1 root root 9016 jan 6 20:17 mysql
-rwxr-xr-x 1 root root 6614 jan 6 20:17 mysqlmanager
lrwxrwxrwx 1 root root 6 jan 7 12:09 net.eth0 -> net.lo
lrwxrwxrwx 1 root root 6 jan 7 12:09 net.eth1 -> net.lo
-rwxr-xr-x 1 root root 24323 oct 19 21:18 net.lo
-rwxr-xr-x 1 root root 2767 oct 19 21:18 netmount
-rwxr-xr-x 1 root root 1339 oct 19 20:44 nscd
-rwxr-xr-x 1 root root 670 oct 19 21:18 numlock
-rwxr-xr-x 1 root root 1132 jan 7 00:18 portmap
-rwxr-xr-x 1 root root 540 jan 7 00:06 pwcheck
-rwxr-xr-x 1 root root 220 oct 19 21:18 reboot.sh
-rwxr-xr-x 1 root root 276 oct 19 21:18 rmnologin
-rwxr-xr-x 1 root root 438 oct 19 21:11 rsyncd
lrwxrwxrwx 1 root root 23 jan 7 01:26 runscript.sh -> ../../sbin/runscript.sh
-rwxr-xr-x 1 root root 1109 jan 6 21:51 samba
-rwxr-xr-x 1 root root 527 jan 7 00:06 saslauthd
-rwxr-xr-x 1 root root 215 oct 19 21:18 shutdown.sh
-rwxr-xr-x 1 root root 1203 oct 19 21:35 sshd
-rwxr-xr-x 1 root root 1527 jan 6 13:50 syslog-ng
-rwxr-xr-x 1 root root 915 oct 19 21:18 urandom
-rwxr-xr-x 1 root root 530 jan 6 13:52 vixie-cron
-rwxr-xr-x 1 root root 3477 jan 6 23:19 xdm |
Par contre si je fais :
ifconfig lo 127.0.0.1
ifconfig eth0 192.168.1.100
ifconfig eth1 192.168.1.20
un ifconfig me donne ceci :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
| eth0 Lien encap:Ethernet HWaddr 00:0A:5E:60:6C:A6
inet adr:192.168.1.100 Bcast:192.168.1.255 Masque:255.255.255.0
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 lg file transmission:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interruption:18 Adresse de base:0xbc00
eth1 Lien encap:Ethernet HWaddr 00:0C:76:58:20:DC
inet adr:192.168.1.20 Bcast:192.168.1.255 Masque:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
RX bytes:746 (746.0 b) TX bytes:728 (728.0 b)
lo Lien encap:Boucle locale
inet adr:127.0.0.1 Masque:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 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 lg file transmission:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) |
Et je peux maintenant pinger la passerelle. ping 192.168.1.1 :
1 2 3 4 5 6 7 8 9 10
| PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=254 time=0.819 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=254 time=0.807 ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=254 time=0.563 ms
64 bytes from 192.168.1.1: icmp_seq=4 ttl=254 time=0.743 ms
64 bytes from 192.168.1.1: icmp_seq=5 ttl=254 time=0.588 ms
--- 192.168.1.1 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4003ms
rtt min/avg/max/mdev = 0.563/0.704/0.819/0.108 ms |
Je peux également pinger une autre machine du réseau mais pas une ip publique telle que celle de google...
ping 216.239.59.104
connect: Network is unreachable
Mon fichier /etc/resolv.conf contient les lignes :
1 2 3
| nameserver 80.10.246.1
nameserver 80.10.246.132
domain ******.homeunix.net |
Je pense qu'il doit y avoir une petite erreur mais je ne sais pas où alors si quelqu'un pouvait m'orienter, ce serait sympa car ça fait une dizaine d'heures que je cherche...
a++
matthieu
Partager