On Wednesday 17 May 2006 13:02, Premoli, Roberto wrote: > SITUAZIONE > Linuxbox sarge(STABLE) con kernel 2.6.8. > Eth0 prende l'ip in dhcp. > > Vorrei creare una mini sotto-rete usando la linuxbox e aggiungendole 3 > schede di rete (eth1-2-3) alle quali connettere tre pc con cavo > incrociato. > > I tre pc aggiunti avrebbero indirizzo fisso, e vorrei che la linuxbox si > occupasse di veicolare il traffico tcp/ip delle tre macchine aggiunte. > > INTERNET<-->Firewall<->(dhcp)<->[eth0]linuxbox---<->[eth1]<->pc1 > > |-<->[eth2]<->pc2 > |-<->[eth3]<->pc3 > > Sapete dove trovare delle info veloci veloci da applicare e far > funzionare tutto al primo colpo? Per capire ho tempo, adesso mi basta > solo che funzioni :-) > > grazie
sulla linuxbox sarge: ( supponendo che le varie sottoreti siano 10.0.0.0 - 10.0.1.0 - 10.0.2.0 ) ifconfig eth1 10.0.0.1 netmask 255.255.255.0 up ifconfig eth2 10.0.1.1 netmask 255.255.255.0 up ifconfig eth3 10.0.2.1 netmask 255.255.255.0 up route add -net 10.0.0.0 eth1 route add -net 10.0.1.0 eth2 route add -net 10.0.2.0 eth3 echo 1 > /proc/sys/net/ipv4/ip_forward sempre sulla linuxbox: ( solo se ti serve il nat ) iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE bye R -- Per REVOCARE l'iscrizione alla lista, inviare un email a [EMAIL PROTECTED] con oggetto "unsubscribe". Per problemi inviare un email in INGLESE a [EMAIL PROTECTED] To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

