Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[RISOLTO]modem problemi di route
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
rota
l33t
l33t


Joined: 13 Aug 2003
Posts: 960

PostPosted: Mon Oct 25, 2004 9:49 am    Post subject: Reply with quote

a dimenticavo il modem funziona si connette solo che non vaddo su internet ...
Back to top
View user's profile Send private message
rota
l33t
l33t


Joined: 13 Aug 2003
Posts: 960

PostPosted: Mon Oct 25, 2004 9:55 am    Post subject: Reply with quote

se provo a connetermi il modem e una volta connesso faccio


ifconfig -a
eth0 Protokoll:Ethernet Hardware Adresse 00:0B:6A:5B:29:4E
inet Adresse:192.168.0.1 Bcast:192.168.0.255 Maske:255.255.255.0
inet6 Adresse: fe80::20b:6aff:fe5b:294e/64 Gültigkeitsbereich:Verbindung
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:51 errors:0 dropped:0 overruns:0 frame:0
TX packets:52 errors:0 dropped:0 overruns:0 carrier:0
Kollisionen:0 Sendewarteschlangenlänge:1000
RX bytes:4211 (4.1 KiB) TX bytes:4506 (4.4 KiB)
Interrupt:19 Basisadresse:0xd400

eth1 Protokoll:Ethernet Hardware Adresse 00:01:02:0A:7C:86
inet Adresse:23.255.222.153 Bcast:23.255.223.255 Maske:255.255.248.0
inet6 Adresse: fe80::201:2ff:fe0a:7c86/64 Gültigkeitsbereich:Verbindung
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2203 errors:0 dropped:0 overruns:0 frame:0
TX packets:2027 errors:0 dropped:0 overruns:0 carrier:0
Kollisionen:5 Sendewarteschlangenlänge:1000
RX bytes:2575077 (2.4 MiB) TX bytes:321399 (313.8 KiB)
Interrupt:17 Basisadresse:0xd000

lo Protokoll:Lokale Schleife
inet Adresse:127.0.0.1 Maske:255.0.0.0
inet6 Adresse: ::1/128 Gültigkeitsbereich:Maschine
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:22 errors:0 dropped:0 overruns:0 frame:0
TX packets:22 errors:0 dropped:0 overruns:0 carrier:0
Kollisionen:0 Sendewarteschlangenlänge:0
RX bytes:1404 (1.3 KiB) TX bytes:1404 (1.3 KiB)

ppp0 Protokoll:Punkt-zu-Punkt Verbindung
inet Adresse:151.24.201.22 P-z-P:151.6.148.46 Maske:255.255.255.255
UP PUNKTZUPUNKT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:18 errors:1 dropped:0 overruns:0 frame:0
TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
Kollisionen:0 Sendewarteschlangenlänge:3
RX bytes:692 (692.0 b) TX bytes:97 (97.0 b)

sit0 Protokoll:IPv6-nach-IPv4
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
Kollisionen:0 Sendewarteschlangenlänge:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)


pero per andare su internet non devo togliere il cavo di fastweb da eth1 percher se lo faccio non vaddo su internet ....
Back to top
View user's profile Send private message
randomaze
Bodhisattva
Bodhisattva


Joined: 21 Oct 2003
Posts: 9985

PostPosted: Mon Oct 25, 2004 10:02 am    Post subject: Reply with quote

rota wrote:
pero per andare su internet non devo togliere il cavo di fastweb da eth1 percher se lo faccio non vaddo su internet ....


Il che farebbe pensare a un problema di routing
_________________
Ciao da me!
Back to top
View user's profile Send private message
rota
l33t
l33t


Joined: 13 Aug 2003
Posts: 960

PostPosted: Mon Oct 25, 2004 10:19 am    Post subject: Reply with quote

e quandi ???'come risolvo il prob... :?: :?:
Back to top
View user's profile Send private message
Josuke
Veteran
Veteran


Joined: 07 May 2003
Posts: 1175
Location: Italy - Bolzano

PostPosted: Mon Oct 25, 2004 10:31 am    Post subject: Reply with quote

posta l'output di route -n
_________________
fletto i muscoli...e sono nel vuoto
Back to top
View user's profile Send private message
rota
l33t
l33t


Joined: 13 Aug 2003
Posts: 960

PostPosted: Mon Oct 25, 2004 10:56 am    Post subject: Reply with quote

prima e dopo aver usato il modem


root@sred:~# route -n
Kernel IP Routentabelle
Ziel Router Genmask Flags Metric Ref Use Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
23.255.216.0 0.0.0.0 255.255.248.0 U 0 0 0 eth1
0.0.0.0 23.255.216.1 0.0.0.0 UG 0 0 0 eth1
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
root@sred:~# route -n
Kernel IP Routentabelle
Ziel Router Genmask Flags Metric Ref Use Iface
151.6.148.44 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
23.255.216.0 0.0.0.0 255.255.248.0 U 0 0 0 eth1
0.0.0.0 23.255.216.1 0.0.0.0 UG 0 0 0 eth1
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
Back to top
View user's profile Send private message
rota
l33t
l33t


Joined: 13 Aug 2003
Posts: 960

PostPosted: Mon Oct 25, 2004 10:57 am    Post subject: Reply with quote

forse poterebbe instersarvi sapere che moduli o caricati ,,,,

lsmod
Module Size Used by
ppp_deflate 8576 0
zlib_deflate 24088 1 ppp_deflate
bsd_comp 9216 0
ppp_async 13440 0
md5 7680 1
ipv6 241248 6
snd_mixer_oss 18688 0
lp 13096 0
autofs 18048 1
ipt_MASQUERADE 7168 1
iptable_nat 24484 2 ipt_MASQUERADE
ip_conntrack 33028 2 ipt_MASQUERADE,iptable_nat
ip_tables 19712 2 ipt_MASQUERADE,iptable_nat
hcfpcihw 12160 0
hcfpciserial 23364 1 hcfpcihw
hcfpciengine 803764 1 hcfpciserial
hcfpciosspec 55244 2 hcfpciserial,hcfpciengine
ehci_hcd 30468 0
snd_intel8x0 33324 0
snd_ac97_codec 62468 1 snd_intel8x0
snd_pcm 84000 1 snd_intel8x0
snd_timer 24836 1 snd_pcm
snd_page_alloc 12552 2 snd_intel8x0,snd_pcm
snd_mpu401_uart 9984 1 snd_intel8x0
snd_rawmidi 23488 1 snd_mpu401_uart
snd_seq_device 10248 1 snd_rawmidi
snd 47588 8 snd_mixer_oss,snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq_device
shpchp 92044 0
pciehp 89228 0
pci_hotplug 32188 2 shpchp,pciehp
sis_agp 9732 1
analog 13856 0
gameport 7680 2 snd_intel8x0,analog
8250_pnp 12032 0
pcspkr 7372 0
tsdev 9344 0
evdev 11008 0
ppp_generic 28820 3 ppp_deflate,bsd_comp,ppp_async
slhc 10240 1 ppp_generic
af_packet 21000 0
agpgart 29868 1 sis_agp
i810_audio 33684 1
ac97_codec 19212 1 i810_audio
soundcore 11232 3 snd,i810_audio
3c59x 39720 0
sis900 20356 0
crc32 8064 1 sis900
parport_pc 37568 1
parport 36936 2 lp,parport_pc
8250 34480 1 8250_pnp
serial_core 22528 2 hcfpciserial,8250
ohci1394 33796 0
ieee1394 302008 1 ohci1394
ohci_hcd 22276 0
root@sofemared:~# lsmod
Module Size Used by
ppp_deflate 8576 0
zlib_deflate 24088 1 ppp_deflate
bsd_comp 9216 0
ppp_async 13440 0
md5 7680 1
ipv6 241248 6
snd_mixer_oss 18688 0
lp 13096 0
autofs 18048 1
ipt_MASQUERADE 7168 1
iptable_nat 24484 2 ipt_MASQUERADE
ip_conntrack 33028 2 ipt_MASQUERADE,iptable_nat
ip_tables 19712 2 ipt_MASQUERADE,iptable_nat
hcfpcihw 12160 0
hcfpciserial 23364 1 hcfpcihw
hcfpciengine 803764 1 hcfpciserial
hcfpciosspec 55244 2 hcfpciserial,hcfpciengine
ehci_hcd 30468 0
snd_intel8x0 33324 0
snd_ac97_codec 62468 1 snd_intel8x0
snd_pcm 84000 1 snd_intel8x0
snd_timer 24836 1 snd_pcm
snd_page_alloc 12552 2 snd_intel8x0,snd_pcm
snd_mpu401_uart 9984 1 snd_intel8x0
snd_rawmidi 23488 1 snd_mpu401_uart
snd_seq_device 10248 1 snd_rawmidi
snd 47588 8 snd_mixer_oss,snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq_device
shpchp 92044 0
pciehp 89228 0
pci_hotplug 32188 2 shpchp,pciehp
sis_agp 9732 1
analog 13856 0
gameport 7680 2 snd_intel8x0,analog
8250_pnp 12032 0
pcspkr 7372 0
tsdev 9344 0
evdev 11008 0
ppp_generic 28820 3 ppp_deflate,bsd_comp,ppp_async
slhc 10240 1 ppp_generic
af_packet 21000 0
agpgart 29868 1 sis_agp
i810_audio 33684 1
ac97_codec 19212 1 i810_audio
soundcore 11232 3 snd,i810_audio
3c59x 39720 0
sis900 20356 0
crc32 8064 1 sis900
parport_pc 37568 1
parport 36936 2 lp,parport_pc
8250 34480 1 8250_pnp
serial_core 22528 2 hcfpciserial,8250
ohci1394 33796 0
ieee1394 302008 1 ohci1394
ohci_hcd 22276 0
uhci_hcd 31760 0
usbcore 95840 5 ehci_hcd,ohci_hcd,uhci_hcd
ds 17284 0
yenta_socket 20480 0
pcmcia_core 56772 2 ds,yenta_socket
thermal 14352 0
processor 19776 1 thermal
fan 7052 0
button 8984 0
battery 11916 0
ac 7564 0
ide_scsi 17156 0
rtc 14920 0
ext3 110440 4
jbd 69284 1 ext3
Back to top
View user's profile Send private message
randomaze
Bodhisattva
Bodhisattva


Joined: 21 Oct 2003
Posts: 9985

PostPosted: Mon Oct 25, 2004 11:09 am    Post subject: Reply with quote

rota wrote:
forse poterebbe instersarvi sapere che moduli o caricati ,,,,


Perché dovrebbero servire? Se il problema é di routing occorre lavorare sulle tabelle di routing, non sul kernel.

In particolare se hai la eth0 connessa i pacchetti IP vanno su quella, segno che la defaultroute é configurata li.

Tu devi spostarla sulla ppp0 quando ti connetti, quindi prova con:
Code:
route add default dev ppp0


o qualcosa di simile...
_________________
Ciao da me!
Back to top
View user's profile Send private message
Josuke
Veteran
Veteran


Joined: 07 May 2003
Posts: 1175
Location: Italy - Bolzano

PostPosted: Mon Oct 25, 2004 11:19 am    Post subject: Reply with quote

appunto...il tuo è solo un problema di routing
_________________
fletto i muscoli...e sono nel vuoto
Back to top
View user's profile Send private message
rota
l33t
l33t


Joined: 13 Aug 2003
Posts: 960

PostPosted: Mon Oct 25, 2004 11:28 am    Post subject: Reply with quote

unn altra cosa ...io quando attivo il modem mi caricha il modulo iv6 perrche mi fa questo ???
quando io o ipv4 ???' potrebbe essere questi il motivo dell mio problema ???
Back to top
View user's profile Send private message
Josuke
Veteran
Veteran


Joined: 07 May 2003
Posts: 1175
Location: Italy - Bolzano

PostPosted: Mon Oct 25, 2004 11:32 am    Post subject: Reply with quote

non so perchè te lo carica col modem..comunque come detto sopra il tuo è un problema di routing e la soluzione ti è stata già data..provala e facci sapere
_________________
fletto i muscoli...e sono nel vuoto
Back to top
View user's profile Send private message
rota
l33t
l33t


Joined: 13 Aug 2003
Posts: 960

PostPosted: Mon Oct 25, 2004 12:31 pm    Post subject: Reply with quote

grazzie o risolto adessdo funziona e non o nessun prob .... :lol: :lol:
Back to top
View user's profile Send private message
rota
l33t
l33t


Joined: 13 Aug 2003
Posts: 960

PostPosted: Mon Oct 25, 2004 1:02 pm    Post subject: Reply with quote

pero o il problema di iptables

se faccio

iptables -t nat -A POSTROUTING -o ppp0 -s 192.168.0.0/24 -j MASQUERADE

oppure

iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE


non riesco a far andare su internet le altre macchine ......
io quando usavo le 2 schede di rete facevo

ptables -t nat -A POSTROUTING -o eth1 -s 192.168.0.0/24 -j MASQUERAD

e riuscivo ad andare su internet ecc mo col modem non ci riesco ....che regola devo usare ocon iptables ???
Back to top
View user's profile Send private message
rota
l33t
l33t


Joined: 13 Aug 2003
Posts: 960

PostPosted: Mon Oct 25, 2004 2:11 pm    Post subject: Reply with quote

ok per


ondividere la tua connessione modem con la lan :



iptables -P FORWARD ACCEPT

iptables -A FORWARD -i ppp0 -m state --state NEW,INVALID -j REJECT

iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE

echo 1 > /proc/sys/net/ipv4/ip_forward

e funziona anche se e lento
:roll: :roll:
Back to top
View user's profile Send private message
Josuke
Veteran
Veteran


Joined: 07 May 2003
Posts: 1175
Location: Italy - Bolzano

PostPosted: Mon Oct 25, 2004 2:47 pm    Post subject: Reply with quote

metti risolto al titolo del topic
_________________
fletto i muscoli...e sono nel vuoto
Back to top
View user's profile Send private message
rota
l33t
l33t


Joined: 13 Aug 2003
Posts: 960

PostPosted: Mon Oct 25, 2004 2:50 pm    Post subject: Reply with quote

si volevo farlo ma non o cpaito come fare ???
Back to top
View user's profile Send private message
randomaze
Bodhisattva
Bodhisattva


Joined: 21 Oct 2003
Posts: 9985

PostPosted: Tue Oct 26, 2004 7:35 am    Post subject: Reply with quote

rota wrote:
si volevo farlo ma non o cpaito come fare ???


8O ..dopo 320 Post???

Comunque vai nel primo post e premi il pulsante di edit... dopo puoi editare il post e quindi il titolo dello stesso ;-)
_________________
Ciao da me!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum