|
|||||||
|
|
|
![]() |
|
|
Strumenti |
|
|
#21 |
|
Senior Member
Iscritto dal: Aug 2002
Messaggi: 1909
|
in teoria al 192.168.0.1 ci arriva se la tabella di routing + questa:
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.0.0 * 255.255.255.0 U 0 0 0 eth0 127.0.0.0 * 255.0.0.0 U 0 0 0 lo l'instradamento utilizzato è la seconda linea.
__________________
AMD Athlon64X2 4400+@2700Mhz - Asus A8N32-SLI - 1GBddr400 - Dell Inspiron 6000 all powered by Gentoo-Linux Eight days of the week we're dead on our feet, take me aside just shoot me. No black and white, black and white. Wish we could drive right through you. - Eight Days - PitchShifter |
|
|
|
|
|
#22 | |
|
Senior Member
Iscritto dal: Jan 2002
Città: Rimini
Messaggi: 1203
|
Quote:
la seconda linea e' il routing della localnet non c'entra nulla con 192.168.0.0, meno che meno con 0.0.0.0
__________________
Quale parte di NO non hai capito? | MBP Retina Late 2013 - iPhone 6 64GB - iPad Air 64GB Fiero membro del BOFH club (Bastard Operators From Hell) |
|
|
|
|
|
|
#23 |
|
Senior Member
Iscritto dal: Aug 2002
Messaggi: 1909
|
io a sto punto se fossi in lui proverei a sostituire i cavi.... non si sa mai nella vita... ho visto fare cose magnifiche alle schede di rete
__________________
AMD Athlon64X2 4400+@2700Mhz - Asus A8N32-SLI - 1GBddr400 - Dell Inspiron 6000 all powered by Gentoo-Linux Eight days of the week we're dead on our feet, take me aside just shoot me. No black and white, black and white. Wish we could drive right through you. - Eight Days - PitchShifter |
|
|
|
|
|
#24 | |
|
Senior Member
Iscritto dal: Jan 2002
Città: Rimini
Messaggi: 1203
|
Quote:
in ogni caso quando poi tutto funziona la route default e' necessaria
__________________
Quale parte di NO non hai capito? | MBP Retina Late 2013 - iPhone 6 64GB - iPad Air 64GB Fiero membro del BOFH club (Bastard Operators From Hell) |
|
|
|
|
|
|
#25 |
|
Senior Member
Iscritto dal: Aug 2002
Messaggi: 1909
|
se vuole andare su internet anche con mdk si
__________________
AMD Athlon64X2 4400+@2700Mhz - Asus A8N32-SLI - 1GBddr400 - Dell Inspiron 6000 all powered by Gentoo-Linux Eight days of the week we're dead on our feet, take me aside just shoot me. No black and white, black and white. Wish we could drive right through you. - Eight Days - PitchShifter |
|
|
|
|
|
#26 |
|
Senior Member
Iscritto dal: May 2002
Città: Massa Carrara
Messaggi: 589
|
come schede di rete dovrebbero essere funzionanti perche':
1 sull'hub si accendono i led: 2 in passato ho messo in rete i 2 pc con windows 3 se non collego il cavo di rete all'hub, facendo il ping mi dice che la rete non e' raggiungibile. basta anche che collego solo lo stesso pc all'hub che allora il ping funziona ma non mi trova l'altro pc. come posso testare se l'hardware funziona? se mando un pacchetto in broadcast con il ping ogni pc sembra funzionare server:~ # ping -b 192.168.0.0 WARNING: pinging broadcast address PING 192.168.0.0 (192.168.0.0) from 192.168.0.1 : 56(84) bytes of data. 64 bytes from 192.168.0.1: icmp_seq=1 ttl=64 time=0.051 ms 64 bytes from 192.168.0.1: icmp_seq=2 ttl=64 time=0.030 ms 64 bytes from 192.168.0.1: icmp_seq=3 ttl=64 time=0.031 ms 64 bytes from 192.168.0.1: icmp_seq=4 ttl=64 time=0.029 ms --- 192.168.0.0 ping statistics --- 4 packets transmitted, 4 received, 0% loss, time 2997ms rtt min/avg/max/mdev = 0.029/0.035/0.051/0.010 ms server:~ # qui vi presento cio' che mi diceva il client (0.2) [root@sux 1234]# ifconfig eth0 Link encap:Ethernet HWaddr 00:08:A1:27:84:13 inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:185 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) Interrupt:17 Base address:0xe800 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:3681 errors:0 dropped:0 overruns:0 frame:0 TX packets:3681 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:253398 (247.4 Kb) TX bytes:253398 (247.4 Kb) [root@sux 1234]# route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo 0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0 0.0.0.0 192.168.0.254 0.0.0.0 UG 0 0 0 eth0 [root@sux 1234]# ping 192.168.0.1 PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data. From 192.168.0.2 icmp_seq=1 Destination Host Unreachable From 192.168.0.2 icmp_seq=2 Destination Host Unreachable From 192.168.0.2 icmp_seq=3 Destination Host Unreachable --- 192.168.0.1 ping statistics --- 4 packets transmitted, 0 received, +3 errors, 100% packet loss, time 3024ms , pipe 3 [root@sux 1234]# come vedete ora ho 2 route default. 0.1---0.254 allora le ho cancellate tutte e due e ho reimpostato una sola route default che appare come: [root@sux 1234]# route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo 0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0 [root@sux 1234]# ping 192.168.0.1 PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data. From 192.168.0.2 icmp_seq=1 Destination Host Unreachable From 192.168.0.2 icmp_seq=2 Destination Host Unreachable From 192.168.0.2 icmp_seq=3 Destination Host Unreachable --- 192.168.0.1 ping statistics --- 4 packets transmitted, 0 received, +3 errors, 100% packet loss, time 3022ms , pipe 3 [root@sux 1234]# tuttavia nulla funziona |
|
|
|
|
|
#27 |
|
Senior Member
Iscritto dal: May 2002
Città: Massa Carrara
Messaggi: 589
|
ho provato anche a sostituire i cavi(a dir la verita' solo uno)
ma il ping broadcast stesso dovrebbe garantirmi il fatto che i cavi e l'hardware funziona..... almeno in teoria. scusate se si protrae il problema.... |
|
|
|
|
|
#28 | |
|
Senior Member
Iscritto dal: Jan 2002
Città: Rimini
Messaggi: 1203
|
Quote:
controlla anche che non ci siano cose strane a livello di iptables... non si sa mai
__________________
Quale parte di NO non hai capito? | MBP Retina Late 2013 - iPhone 6 64GB - iPad Air 64GB Fiero membro del BOFH club (Bastard Operators From Hell) |
|
|
|
|
|
|
#29 | |
|
Senior Member
Iscritto dal: May 2002
Città: Massa Carrara
Messaggi: 589
|
Quote:
se te stacchi il cavo dall'hub il pc non si vede piu' quindi : ergo la connessione hardware dovrebbe funzionare....... come posso mandarti la iptable? non sono un esperto: ergo sto sbagliando qualche passo elementare..... ......ciao e grazie ---ergo... |
|
|
|
|
|
|
#30 | |
|
Senior Member
Iscritto dal: Jan 2002
Città: Rimini
Messaggi: 1203
|
Quote:
oppure iptables-save
__________________
Quale parte di NO non hai capito? | MBP Retina Late 2013 - iPhone 6 64GB - iPad Air 64GB Fiero membro del BOFH club (Bastard Operators From Hell) |
|
|
|
|
|
|
#31 |
|
Senior Member
Iscritto dal: May 2002
Città: Massa Carrara
Messaggi: 589
|
server:~ # iptables -L -n
Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination server:~ # iptables-save # Generated by iptables-save v1.2.7a on Tue Sep 9 13:14:52 2003 *filter :INPUT ACCEPT [3:156] :FORWARD ACCEPT [0:0] OUTPUT ACCEPT [4:208] COMMIT # Completed on Tue Sep 9 13:14:52 2003 server:~ # |
|
|
|
|
|
#32 |
|
Senior Member
Iscritto dal: Jan 2002
Città: Rimini
Messaggi: 1203
|
ok ci ho sperato!
fallo anche sul client... chissa'
__________________
Quale parte di NO non hai capito? | MBP Retina Late 2013 - iPhone 6 64GB - iPad Air 64GB Fiero membro del BOFH club (Bastard Operators From Hell) |
|
|
|
|
|
#33 |
|
Senior Member
Iscritto dal: Aug 2002
Messaggi: 1909
|
prova questo:
/etc/init.d/iptables stop redhat ha quello script che azzera tutte le regole di iptables, altrimenti a manona: iptables -F INPUT iptables -F OUTPUT iptables -F FORWARD iptables -P INPUT ACCEPT iptables -P OUTPUT ACCEPT iptables -P FORWARD ACCEPT non vengono però cancellate/azzerate le chain user-defined.
__________________
AMD Athlon64X2 4400+@2700Mhz - Asus A8N32-SLI - 1GBddr400 - Dell Inspiron 6000 all powered by Gentoo-Linux Eight days of the week we're dead on our feet, take me aside just shoot me. No black and white, black and white. Wish we could drive right through you. - Eight Days - PitchShifter |
|
|
|
|
|
#34 | |
|
Senior Member
Iscritto dal: Jan 2002
Città: Rimini
Messaggi: 1203
|
Quote:
__________________
Quale parte di NO non hai capito? | MBP Retina Late 2013 - iPhone 6 64GB - iPad Air 64GB Fiero membro del BOFH club (Bastard Operators From Hell) |
|
|
|
|
|
|
#35 |
|
Senior Member
Iscritto dal: Aug 2002
Messaggi: 1909
|
dove passo io non cresce + l'erba
__________________
AMD Athlon64X2 4400+@2700Mhz - Asus A8N32-SLI - 1GBddr400 - Dell Inspiron 6000 all powered by Gentoo-Linux Eight days of the week we're dead on our feet, take me aside just shoot me. No black and white, black and white. Wish we could drive right through you. - Eight Days - PitchShifter |
|
|
|
|
|
#36 |
|
Senior Member
Iscritto dal: May 2002
Città: Massa Carrara
Messaggi: 589
|
mi spieghereste a grandi linee cosa sto facendo?
questo e' il client iptables -L -n risponde come sul server :INPUT ACCEPT [0:0] :FORWARD ACCEPT [0:0] OUTPUT ACCEPT [0:0] COMMIT ma la rete non va........... mi vorrei uccidere..... ho anche un tester semplice per vedere se i cavi sono fatti bene e funzionano. |
|
|
|
|
|
#37 |
|
Senior Member
Iscritto dal: May 2002
Città: Massa Carrara
Messaggi: 589
|
help......
mi fareste un passo passo? |
|
|
|
|
|
#38 |
|
Senior Member
Iscritto dal: Feb 2000
Città: Trieste
Messaggi: 257
|
Allora, per il passo a passo ci sono mille documenti in rete, per iptables c'è
#man iptables per il resto: il pc1 che va in internet si setta automaticamente il gw al momento della connessione quindi non serve che tu lo modifichi. se il pc1 ha indirizzo di eth0 192.168.0.1 devi mettere 1922.168.0.1 come gw a tutti i pc che sono collegati in rete con un semplice comando: route add default gw 192.168.0.1 sul pc2 per condividere la connessione devi impostare una regola sul pc1 ma se non li fai pingare non serve ad una cippa. PROVE DA FARE: pc1: ping localhost ping 192.168.0.1 (così controlli che la scheda funzioni) pc2: ping localhost ping 192.168.0.2 (o quello che hai messo come indirizzo) DEVONO FUNZIONARE TUTTI E 4 lascia perdere i ping al broadcast che non ti servono. per attivare le interfacce di rete a mano: pc1 #ifconfig eth0 192.168.0.1 netmask 255.255.255.0 pc2 #ifconfig eth0 192.168.0.2 netmask 255.255.255.0 #route add default gw 192.168.0.1 per attivare la condivisione : pc1 #iptable -t nat -A POSTROUTING -s 192.168.0.2 -j MASQUERADE # echo 1 > /proc/sys/net/ipv4/ip_forward pc2 niente, ma controlla di avere il files /etc/resolv.conf altrimenti non potrai risolvere i nomi ma uasre solo indirizzi numerici. Saluti ed ossequi
__________________
GSX-RuleZ psn: Tdmax77 no hitches, no progress |
|
|
|
|
|
#39 |
|
Member
Iscritto dal: Jul 2003
Città: Halabama
Messaggi: 176
|
router/gateway:
echo "1" > /proc/sys/net/ipv4/ip_forward modprobe ip_tables modprobe ip_conntrack modprobe ip_conntrack_ftp ip_nat_ftp modprobe iptable_nat modprobe ipt_MASQUERADE ifconfig eth0 192.168.0.1 up netmask 255.255.255.0 route del default gw 192.168.0.1 route del default gw 192.168.0.0 (questi due te li ho messi x sicurezza) route add -net 192.168.0.0 netmask 255.255.255.0 eth0 sul pc client: ifconfig eth0 192.168.0.2 dns (inserisci l'indirizzo del dns del tuo provider) netmask 255.255.255.0 route add default gw 192.168.0.1 ok, a questo punto fai partire la connessione sul gateway e prova il tutto. Non puoi settare come gateway 192.168.0.0, primo perché non è valido (dato che è riservato, definisce la classe degli indirizzi, in questo caso parliamo di classe C), poi perché non l'hai specificato da nessuna parte questo indirizzo. Fai come ti ho detto sopra... e penso proprio che funzioni. Senza penso. Ciao e fammi sapere Ultima modifica di Fabio Erculiani : 09-09-2003 alle 19:28. |
|
|
|
|
|
#40 |
|
Member
Iscritto dal: Jul 2003
Città: Halabama
Messaggi: 176
|
post doppio, sorry
Ultima modifica di Fabio Erculiani : 09-09-2003 alle 19:29. |
|
|
|
|
| Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 19:19.



















