Re: le rezo pour un nul...
> 1) ifconfig eth0 192.168.2.1 netmask 255.255.255.0 <----- sur
> machine 1
j'ai fait
#ifconfig eth1 192.168.1.3 netmask 255.255.255.0
et pas eth0 qui est la carte sur laquelle est branchée mon modem
ethernet sur l'ordi 1
#ifconfig eth0 192.168.3.1 netmask 255.255.255.0
sur l'ordi 2
#route add 192.168.3.1
SIOCADDRT: Aucun périphérique de ce type
Bon qu'est-ce qui ce passe?
#ifconfg -a
eth0 Lien encap:Ethernet HWaddr 00:04:75:86:3D:56
inet adr:192.168.1.2 Bcast:192.168.1.255
Masque:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:43568 errors:0 dropped:0 overruns:1 frame:0
TX packets:27050 errors:0 dropped:0 overruns:0 carrier:0
collisions:24 lg file transmission:1000
RX bytes:23839886 (22.7 MiB) TX bytes:3429594 (3.2 MiB)
Interruption:10 Adresse de base:0xd400
eth1 Lien encap:Ethernet HWaddr 00:E0:18:AA:9B:23
inet adr:192.168.1.3 Bcast:192.168.1.255
Masque:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:14 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:4300 (4.1 KiB) TX bytes:0 (0.0 b)
Interruption:5
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:37744 errors:0 dropped:0 overruns:0 frame:0
TX packets:37744 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:0
RX bytes:4894453 (4.6 MiB) TX bytes:4894453 (4.6 MiB)
Ca a l'air d'aller.
#dmesg |grep -i eth
b44:eth1: Link is down.
b44: eth1: Link is up at 100 Mbps, full duplex.
b44: eth1: Flow control is off for TX and off for RX.
b44: eth1: Link is down.
b44: eth1: Link is up at 100 Mbps, full duplex.
b44: eth1: Flow control is off for TX and off for RX.
La par contre je sais pas si c'est bon? Mais ca a l'air...
#route
Table de routage IP du noyau
Destination Passerelle Genmask Indic Metric Ref Use
Iface
192.168.1.0 * 255.255.255.0 U 0 0 0
eth0
192.168.1.0 * 255.255.255.0 U 0 0 0
eth1
default 192.168.1.1 0.0.0.0 UG 0 0 0
eth0
#man route
ca fait pas de mal
#route add 192.168.3.1 dev eth1
OK cette fois
Mais
#ping -v 192.168.3.1
PING 192.168.3.1 (192.168.3.1): 56 data bytes
92 bytes from 192.168.1.3: Destination Host Unreachable
Vr HL TOS Len ID Flg off TTL Pro cks Src Dst Data
4 5 00 5400 0000 0 0040 40 01 54b5 192.168.1.3 192.168.3.1
......
etc
Ca n'a pas l'air d'aller
C'est donc pas si simple mais bon ca reste interessant
Allons voir sur 2
Je vous emmerde pas trop avec tout ca?????
#dmesg |grep eth (sur 2 soit 192.168.3.1)
eth0:NE2000 blablabla
eth0: found link beat
eth0: autonegotiation complete 100baseT-FD selected
eth0: no router ipv6 present
Bon puisque je suis sur 2 :
#route add 192.168.3.1 dev eth0
dev eth0 indispensable sais pas pourquoi car la y a qu'une carte
ethernet.
Ma carte pcmcia (2 est un portable) donc allons y pour un ping
#ping 192.168.1.3
et la miracle, ca ping genial
Bon allons voir sur 1
#ping 192.168.3.1
Wouahou genial ca ping aussi.
J'ai pas tout compris notamment pourquoi la commande route sur 2 a
permis de pinger.
Mais bon c'est deja ca .....
Pour ssh on verra la suite un peu plus tard
--
N'oubliez pas d'enlever <<antispam>> de l'adresse de retour.
Reply to: