View previous topic :: View next topic |
Author |
Message |
d3vah Apprentice
Joined: 13 Feb 2003 Posts: 184 Location: Italy
|
Posted: Tue Aug 24, 2004 9:14 am Post subject: Problema connesione alice adsl |
|
|
Salve a tutti, ho fatto funzionare il modem ethernet e fatto collegare a internet con una fedora core 2.
Ora sto cercando di istallare gentoo sul computer di mia sorella, per la prima volta con l'adsl sul pc, dato che il mio computer, invece, ha la connessione via lan.
Il problema è semplice:
mi si collega ma non arrivano dati e le uniche cose che posso pingare sono
192.168.1.1 -> modem
192.168.100.1 -> centralina telecom (imho)
vi lascio un pò di log:
Code: |
---------> adsl-setup
** Summary of what you entered **
Ethernet Interface: eth0
User name: aliceadsl
Activate-on-demand: No
DNS addresses: Supplied by ISP's server
Firewalling: STANDALONE
livecd win # adsl-start
. Connected!
livecd win # ping 192.168.100.1 -c1
PING 192.168.100.1 (192.168.100.1) 56(84) bytes of data.
64 bytes from 192.168.100.1: icmp_seq=1 ttl=255 time=43.2 ms
--- 192.168.100.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 43.224/43.224/43.224/0.000 ms
livecd win # cat /etc/resolv.conf
nameserver 217.141.253.201
nameserver 151.99.125.1
livecd win # ping 217.141.253.201 -c1
PING 217.141.253.201 (217.141.253.201) 56(84) bytes of data.
From 192.168.1.1 icmp_seq=1 Destination Net Unreachable
--- 217.141.253.201 ping statistics ---
1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms
livecd win # ifconfig
eth0 Link encap:Ethernet HWaddr 00:50:FC:E6:0D:C1
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:427 errors:0 dropped:0 overruns:0 frame:0
TX packets:242 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:45597 (44.5 Kb) TX bytes:29075 (28.3 Kb)
Interrupt:10 Base address:0x9000
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:25 errors:0 dropped:0 overruns:0 frame:0
TX packets:25 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1716 (1.6 Kb) TX bytes:1716 (1.6 Kb)
ppp0 Link encap:Point-to-Point Protocol
inet addr:82.51.92.220 P-t-P:192.168.100.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:24 errors:0 dropped:0 overruns:0 frame:0
TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:1295 (1.2 Kb) TX bytes:54 (54.0 b)
|
Grazie a tutti _________________ Ciro Guariglia |
|
Back to top |
|
|
xchris Advocate
Joined: 10 Jul 2003 Posts: 2824
|
Posted: Tue Aug 24, 2004 9:22 am Post subject: |
|
|
sembra un problema di routing.
posta un route -n
ciao _________________ while True:Gentoo() |
|
Back to top |
|
|
d3vah Apprentice
Joined: 13 Feb 2003 Posts: 184 Location: Italy
|
Posted: Tue Aug 24, 2004 10:15 am Post subject: |
|
|
eccolo
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.100.1 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 127.0.0.1 255.0.0.0 UG 0 0 0 lo
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0 _________________ Ciro Guariglia |
|
Back to top |
|
|
xchris Advocate
Joined: 10 Jul 2003 Posts: 2824
|
Posted: Tue Aug 24, 2004 1:13 pm Post subject: |
|
|
e' sbagliato il default gateway!
e' normale che non comunichi con il mondo.
il default gw deve essere 192.168.100.1 su ppp0
ciao _________________ while True:Gentoo() |
|
Back to top |
|
|
d3vah Apprentice
Joined: 13 Feb 2003 Posts: 184 Location: Italy
|
Posted: Wed Aug 25, 2004 9:29 am Post subject: |
|
|
come si setta? non riesco a modificare la stringa.
Posso aggiungerne un'altra corretta ma non funziona lo stesso perchè forse lui considera la vecchia
grazie _________________ Ciro Guariglia |
|
Back to top |
|
|
[hammerfall] Apprentice
Joined: 27 May 2004 Posts: 243
|
Posted: Wed Aug 25, 2004 9:45 am Post subject: |
|
|
Se e' corretta l'indicazione del post precedente devi usare il comando:
Code: | route add default gw 192.168.100.1 |
_________________ --------
Hammerfall ^_^ |
|
Back to top |
|
|
xchris Advocate
Joined: 10 Jul 2003 Posts: 2824
|
Posted: Wed Aug 25, 2004 9:48 am Post subject: |
|
|
io farei la prova di togliere il default gateway sulla tua conf di rete.
Probabilmente gli script (che non conosco) di dsl ti settano poi correttamente su ppp0.
ciao _________________ while True:Gentoo() |
|
Back to top |
|
|
cloc3 Advocate
Joined: 13 Jan 2004 Posts: 4810 Location: http://www.gentoo-users.org/user/cloc3/
|
Posted: Wed Aug 25, 2004 9:54 am Post subject: |
|
|
d3vah wrote: | come si setta? non riesco a modificare la stringa.
|
Code: | route add default gw ppp0 |
Secondo me, quello che ti succede è un "difetto" nel meccanismo dell'opzione DEFAULTROUTE all'interno del file /etc/ppp/pppoe.conf.
Anche se settata yes, infatti, questa opzione non sovrascrive i precedenti gateway di default (nel tuo cso 192.168.1.1).
Osserva questa sequenza:
Code: |
gentoo-ppc cloc3 # route -en
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
172.16.200.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 127.0.0.1 255.0.0.0 UG 0 0 0 lo
gentoo-ppc cloc3 # adsl-start
. Connected!
gentoo-ppc cloc3 # route -en
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.100.1 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
172.16.200.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 127.0.0.1 255.0.0.0 UG 0 0 0 lo
0.0.0.0 192.168.100.1 0.0.0.0 UG 0 0 0 ppp0
gentoo-ppc cloc3 #
gentoo-ppc cloc3 # ping www.google.it
PING www.google.akadns.net (216.239.59.147) 56(84) bytes of data.
64 bytes from 216.239.59.147: icmp_seq=1 ttl=246 time=93.9 ms
--- www.google.akadns.net ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 93.970/93.970/93.970/0.000 ms
|
Però:
Code: |
gentoo-ppc cloc3 # adsl-stop
Killing pppd (10619)
Killing adsl-connect (10588)
gentoo-ppc cloc3 # route add default 176.16.200.64
SIOCADDRT: No such device
gentoo-ppc cloc3 # route add default gw 176.16.200.64
SIOCADDRT: Network is unreachable
gentoo-ppc cloc3 # route add default gw 172.16.200.64
gentoo-ppc cloc3 # route -en
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
172.16.200.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 127.0.0.1 255.0.0.0 UG 0 0 0 lo
0.0.0.0 172.16.200.64 0.0.0.0 UG 0 0 0 eth0
gentoo-ppc cloc3 # adsl-start
.......... Connected!
gentoo-ppc cloc3 # route -en
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.100.1 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
172.16.200.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 127.0.0.1 255.0.0.0 UG 0 0 0 lo
0.0.0.0 172.16.200.64 0.0.0.0 UG 0 0 0 eth0
gentoo-ppc cloc3 # ping www.google.it
ping: unknown host www.google.it
|
Un'alternativa sarebbe usare /etc/init.d/net.ppp0 start
Quell'applicazione, però, sovrascrive il gateway precedente e può risultare altrettanto fastidiosa quando si chiude la connessione e si desidera riutilizzare il vecchio gateway.
Forse, servirebbe uno script adhoc per risolvere definitivamente il problema. _________________ vu vu vu
gentù
mi piaci tu |
|
Back to top |
|
|
|