Re: le rezo pour un nul...
Bon je reprends tout a zero
Ma config
ISP--Modem-ethernet DIVA ---(dhcp)eth0[FIXE]eth1--cablecroisé--eth0[PORTABLE]
J'ai fait:
sur le[FIXE]
#ifconfig eth1 192.168.2.1
J'ai pas mis de netmask mais bon ...
#ifconfig
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:68873 errors:0 dropped:0 overruns:1 frame:0
TX packets:42175 errors:0 dropped:0 overruns:0 carrier:0
collisions:28 lg file transmission:1000
RX bytes:39662281 (37.8 MiB) TX bytes:4832865 (4.6 MiB)
Interruption:10 Adresse de base:0xd400
eth1 Lien encap:Ethernet HWaddr 00:E0:18:AA:9B:23
inet adr:192.168.2.1 Bcast:192.168.2.255 Masque:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:406 errors:0 dropped:0 overruns:0 frame:0
TX packets:898 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
RX bytes:43562 (42.5 KiB) TX bytes:71646 (69.9 KiB)
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:344907 errors:0 dropped:0 overruns:0 frame:0
TX packets:344907 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:0
RX bytes:38303124 (36.5 MiB) TX bytes:38303124 (36.5 MiB)
#route
Table de routage IP du noyau
Destination Passerelle Genmask Indic Metric Ref Use Iface
192.168.2.0 * 255.255.255.0 U 0 0 0 eth1
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
Ca a l'air d'être mieux il n'y a plus deux destinations identiques pour deux cartes rezo.
sur le [PORTABLE]
#ifconfig eth 0 192.168.2.2
J'ai pas mis de netmask mais bon ...
#route add 192.168.2.1 eth0
#route
me donne 2 destinations:
192.168.2.1 ---> [FIXE]eth1 OK
192.168.2.0 Ca c'est quoi?
Les ping marchent.
Si je fais :
#route del 192.168.2.1 eth0
#route
je n'ai plus que 192.168.1.0
#ping 192.168.2.1
marche
192.168.2.0 c'est toutes les adresses 192.168.2.0/24
c'est ca?
Reply to: