[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: utilizzare due schede di rete.



> > > > La eth0 ha questi parametri:
> > > >
> > > > auto eth0
> > > > iface eth0 inet static
> > > >         address 192.168.4.7
> > > >         netmask 255.255.254.0
> > > >         network 192.168.4.0
> > > >         broadcast 192.168.5.255
> > > >         gateway 192.168.4.9
> > > >
> > > > la eth1 e':
> > > >
> > > > auto eth1
> > > > iface eth1 inet static
> > > >        address 172.16.20.2
> > > >        netmask 255.255.255.252
> > > >        network 172.16.20.0
> > > >        broadcast 172.16.20.3
> > > >
> > > > inoltre ho
> > > > up route add -net 192.168.0.0 netmask 255.255.0.0 gw
> > > > 192.168.5.254 eth0
> > > >
> > > > non riesco a pingare per esempio l'ip 192.168.4.12.
> > > > non pingo nessun ip della rete 192.168.0.0/16.
> > > > Se invece tolgo le configurazione per la eth1 tutto funziona.
> > > > Come mai?
> > > > Cosa mi manca a livello di configurazione?
> > > > Grazie.
> > >
> > > ciao, puoi postare l'output di route e di ifconfig?
> > > grazie
> > > karen
> >
> > l'ifconfig e':
> >
> >
> > eth0      Link encap:Ethernet  HWaddr 00:02:B3:BF:CD:E4
> >           inet addr:192.168.4.7  Bcast:255.255.255.252
> > Mask:255.255.254.0
> >           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
> >           RX packets:17456975 errors:0 dropped:0 overruns:0
> > frame:0 TX packets:18983194 errors:0 dropped:0 overruns:0
> > carrier:0 collisions:0 txqueuelen:100
> >           RX bytes:1248626502 (1.1 GiB)  TX bytes:2879089679 (2.6
> > GiB) Interrupt:18 Base address:0x2300 Memory:fbfe0000-fc000000
> >
> > eth1    Link encap:Ethernet  HWaddr 00:02:B3:BF:CD:E3
> >           inet addr:172.16.20.2  Bcast:172.16.20.3
> > Mask:255.255.255.252
> >           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
> >
> > lo        Link encap:Local Loopback
> >           inet addr:127.0.0.1  Mask:255.0.0.0
> >           UP LOOPBACK RUNNING  MTU:16436  Metric:1
> >           RX packets:5404587 errors:0 dropped:0 overruns:0
> > frame:0 TX packets:5404587 errors:0 dropped:0 overruns:0
> > carrier:0 collisions:0 txqueuelen:0
> >           RX bytes:787090467 (750.6 MiB)  TX bytes:787090467
> > (750.6 MiB)
> >
> > la route e':
> >
> > Destination     Gateway         Genmask         Flags   MSS
> > Window irtt Iface
> > 172.16.20.2	0.0.0.0	255.255.255.252	U	40 0	 0	eth1
> > 192.168.4.0     0.0.0.0         255.255.254.0   U        40 0
> > 0 eth0
> > 192.168.0.0     192.168.5.254   255.255.0.0     UG       40 0
> > 0 eth0
> > 0.0.0.0         192.168.4.9     0.0.0.0         UG       40 0
> > 0 eth0
> >
> > Secondo me e' tutto corretto.
>
> Non mi è chiaro come fai a raggiungere 192.168.5.254, dato che
> nessuna route per 192.168.0.0/16 è scritta nella rt senza fare uso
> del gateway in quella rete.
>
> Sarebbe interessante vedere se ci sono richieste arp per
> 192.168.5.254. Scommettiamo di no?

La netmask della eth0 e' 255.255.254.0 la rete 4.0 comprende anche la 
5.0.
E poi come ho detto all'inizio, se disabilito la eth1 tutto funziona 
regolarmente.
Ciao.



Reply to: