View previous topic :: View next topic |
Author |
Message |
giminik n00b
Joined: 07 Jan 2006 Posts: 33
|
Posted: Sat Jan 07, 2006 1:38 pm Post subject: [RESEAU] problème avec plusieurs interfaces (RESOLU) |
|
|
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 :
Code: | 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 :
Code: | 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 :
Code: | 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 :
Code: | 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 :
Code: | # 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/
Code: | -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 :
Code: | 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 :
Code: | 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
Code: | connect: Network is unreachable |
Mon fichier /etc/resolv.conf contient les lignes :
Code: | 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
Last edited by giminik on Mon Jan 09, 2006 9:39 am; edited 2 times in total |
|
Back to top |
|
|
kopp Advocate
Joined: 09 Apr 2004 Posts: 2885 Location: Grenoble, France
|
Posted: Sat Jan 07, 2006 1:46 pm Post subject: |
|
|
Salut, tout d'abord, bienvenue sur le forum
1ere étape : peux tu lire les conventions du forum et mettre ton titre en conformité avec ces dernières
https://forums.gentoo.org/viewtopic-t-391873.html
2) Je ne sais pas pourquoi ça ne marche pas lorsque tu utilises le script rc
Par contre j'ai peut-être une idée lorsque tu utilises la commande ifconfig
tu n'as pas préciser l'utilisation de ta passerelle, avec la commande route
route add default gw ${GATEWAY}
tu peux aussi rajouter eth1 à la fin de la ligne, si tu veux que ça ne soit efficace que pour eth1, si je comprends bien la page de manuel de route
edit : merci pour le titre |
|
Back to top |
|
|
giminik n00b
Joined: 07 Jan 2006 Posts: 33
|
Posted: Sat Jan 07, 2006 1:55 pm Post subject: |
|
|
pour le titre c'est corrigé
je n'avais pas pensé à route, effectivement ça marche.
je peux maintenant pinger toute ip...
ceci dit, ça ne résoud toujours pas le problème de script...
j'ai lu sur d'autres posts qu'il pourrait s'agir d'un bug avec baselayout où quelque chose dans le genre mais je suis loin d'en être sûr... |
|
Back to top |
|
|
kernelsensei Bodhisattva
Joined: 22 Feb 2004 Posts: 5619 Location: Woustviller/Moselle/FRANCE (49.07°N;7.02°E)
|
Posted: Sat Jan 07, 2006 3:35 pm Post subject: |
|
|
si tu veux associer un module (donc une carte) à un eth tu peux editer /etc/modules.d/aliases et faire par exemple Code: | alias eth0 8139too
alias eth1 sk98lin
|
bien sur tu remplaces par tes modules ...
Sinon ya moyen de jouer avec udev aussi il me semble ! _________________ $ ruby -e'puts " .:@BFegiklnorst".unpack("x4ax7aaX6ax5aX15ax4aax6aaX7ax2aX5aX8 \
axaX3ax8aX4ax6aX3aX6ax3ax3aX9ax4ax2aX9axaX6ax3aX2ax4ax3aX4aXaX12ax10aaX7a").join' |
|
Back to top |
|
|
guilc Bodhisattva
Joined: 15 Nov 2003 Posts: 3326 Location: Paris - France
|
Posted: Sat Jan 07, 2006 4:35 pm Post subject: |
|
|
kernel_sensei wrote: | si tu veux associer un module (donc une carte) à un eth tu peux editer /etc/modules.d/aliases et faire par exemple Code: | alias eth0 8139too
alias eth1 sk98lin
|
bien sur tu remplaces par tes modules ...
Sinon ya moyen de jouer avec udev aussi il me semble ! |
Oui, hop, la méthode udev
Code: | # cat /etc/udev/rules.d/01-eth.rules
# Interface locale lan
KERNEL="eth*", SYSFS{address}="00:30:1b:b5:20:60", NAME="mon_if1"
# Interface publique net
KERNEL="eth*", SYSFS{address}="00:40:f4:b1:74:3b", NAME="coucou_if2" |
et on peut mettre absolument ce qu'on veut dans NAME, qui sera le nom de l'interface (enfin, conserver ethx est ptet pas mal, en plus certains logiciels mal codés pour le réseau exigent des noms en ethx, comme iptraf) _________________ Merci de respecter les règles du forum.
Mon site perso : https://www.xwing.info
Mon PORTDIR_OVERLAY : https://gentoo.xwing.info ou layman -a xwing |
|
Back to top |
|
|
giminik n00b
Joined: 07 Jan 2006 Posts: 33
|
Posted: Sun Jan 08, 2006 1:41 pm Post subject: |
|
|
merci à tous !
le problème est résolu. je ne sais pas de quoi cela venait mais vu que je n'en étais pas loin dans l'installation j'ai tout repris depuis le début et ça marche
allez savoir...
a++
matthieu |
|
Back to top |
|
|
boozo Advocate
Joined: 01 Jul 2004 Posts: 3193
|
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|