Relier deux machines par un câble croisé

joel tarlao joeltarlao at neuf.fr
Ven 15 Sep 18:36:16 UTC 2006


Le Vendredi 15 Septembre 2006 19:14, Philbur a écrit :
> 1: systeme
> 2:administration
> 3: reseau ( entrer le mot de passe )

Ça y est ! J'ai enfin trouvé !

Dans Kubuntu, c'est bien caché. Ça se trouve dans Préférences système / 
Paramètes réseau / Interfaces réseaux.

Je suis passé une bonne dizaine de fois sur cet onglet, mais il faut être 
superutilisateur pour qu'apparaisse un bouton supplémentaire : Configurer 
l'interface. J'ai perdu pas mal de temps à cause de ça :(

Donc (je réponds en même temps à lordphoenix), depuis la machine Kubuntu :

neila at neila-laptop:~$ cat /etc/exports
# /etc/exports: the access control list for filesystems which may be exported
#               to NFS clients.  See exports(5).
/tmp/ *(async,all_squash)
/var/lib/samba/printers/ *(async,all_squash)
/home/neila/ *(async,all_squash)
/home/neila 192.168.0.2(rw,sync)

 neila at neila-laptop:~$ ifconfig
eth0      Lien encap:Ethernet  HWaddr 00:16:D4:37:40:FF
          inet adr:192.168.0.3  Bcast:192.168.0.255  Masque:255.255.255.0
          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)

neila at neila-laptop:~$ ping 192.168.0.2
PING 192.168.0.2 (192.168.0.2) 56(84) bytes of data.
From 192.168.0.3 icmp_seq=1 Destination Host Unreachable
From 192.168.0.3 icmp_seq=2 Destination Host Unreachable
From 192.168.0.3 icmp_seq=3 Destination Host Unreachable
From 192.168.0.3 icmp_seq=4 Destination Host Unreachable
From 192.168.0.3 icmp_seq=5 Destination Host Unreachable
From 192.168.0.3 icmp_seq=6 Destination Host Unreachable

--- 192.168.0.2 ping statistics ---
7 packets transmitted, 0 received, +6 errors, 100% packet loss, time 6039ms
, pipe 3

Et depuis la machine Mdv :

[root at localhost cynthia]# cat /etc/exports
# generated by drakhosts.pl
/home/neila 192.168.0.182(root_squash,sync,secure,rw)
/home/neila 192.168.0.3(root_squash,sync,secure,rw)

[root at localhost cynthia]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:11:2F:5B:F7:CB
          inet adr:192.168.0.2  Bcast:192.168.0.255  Masque:255.255.255.0
          adr inet6: fe80::211:2fff:fe5b:f7cb/64 Scope:Lien
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:44 errors:0 dropped:0 overruns:1 frame:0
          TX packets:36 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:1000
          RX bytes:7040 (6.8 KiB)  TX bytes:3842 (3.7 KiB)
          Interruption:18 Adresse de base:0xe880

[root at localhost cynthia]# ping 192.168.0.3
PING 192.168.0.3 (192.168.0.3) 56(84) bytes of data.
From 192.168.0.2 icmp_seq=2 Destination Host Unreachable
From 192.168.0.2 icmp_seq=3 Destination Host Unreachable
From 192.168.0.2 icmp_seq=4 Destination Host Unreachable

--- 192.168.0.3 ping statistics ---
5 packets transmitted, 0 received, +3 errors, 100% packet loss, time 3999ms
, pipe 3

Ça ne fonctionne toujours, bien que le résultat soit plus orthodoxe.

Où est l'erreur ?

-- 
Joël




Plus d'informations sur la liste de diffusion ubuntu-fr