Leron
02-11-2003, 14:51
sto cercando di settare il router adsl per andare in internet da linux, ma nonostante riesca a vedere il router, non riesco a andare in internet. ho installato la scheda di rete, poi ecco cosa ho fatto
il mio ip è 192.168.0.2
quello del router è 192.168.0.1
linux:~ # ifconfig eth0 192.168.0.2 up netmask 255.255.255.0linux:~ # ifconfig
eth0 Link encap:Ethernet HWaddr 00:50:8D:F1:F6:E7
inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::250:8dff:fef1:f6e7/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:6 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:516 (516.0 b) TX bytes:288 (288.0 b)
Interrupt:11 Base address:0x6000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:350 errors:0 dropped:0 overruns:0 frame:0
TX packets:350 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:24132 (23.5 Kb) TX bytes:24132 (23.5 Kb)
linux:~ # route add -net 192.168.0.1 netmask 255.255.255.0 eth0
linux:~ # route add default gw 192.168.0.1
linux:~ # ping 192.168.0.1
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
64 bytes from 192.168.0.1: icmp_seq=1 ttl=254 time=0.660 ms
64 bytes from 192.168.0.1: icmp_seq=2 ttl=254 time=0.652 ms
64 bytes from 192.168.0.1: icmp_seq=3 ttl=254 time=0.643 ms
64 bytes from 192.168.0.1: icmp_seq=4 ttl=254 time=0.652 ms
(quindi comunica)
ho caricato da konqueror 192.168.0.1 ( l'ip del router) e mi visualizza correttamente la pagina dei settaggi del router, ma se digito qualunque indirizzo internet (www.google.it, www.hwupgrade.it) mi dice impossibile caricare la pagina.
dove sbaglio? :cry:
grazie per l'eventuale aiuto
il mio ip è 192.168.0.2
quello del router è 192.168.0.1
linux:~ # ifconfig eth0 192.168.0.2 up netmask 255.255.255.0linux:~ # ifconfig
eth0 Link encap:Ethernet HWaddr 00:50:8D:F1:F6:E7
inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::250:8dff:fef1:f6e7/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:6 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:516 (516.0 b) TX bytes:288 (288.0 b)
Interrupt:11 Base address:0x6000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:350 errors:0 dropped:0 overruns:0 frame:0
TX packets:350 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:24132 (23.5 Kb) TX bytes:24132 (23.5 Kb)
linux:~ # route add -net 192.168.0.1 netmask 255.255.255.0 eth0
linux:~ # route add default gw 192.168.0.1
linux:~ # ping 192.168.0.1
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
64 bytes from 192.168.0.1: icmp_seq=1 ttl=254 time=0.660 ms
64 bytes from 192.168.0.1: icmp_seq=2 ttl=254 time=0.652 ms
64 bytes from 192.168.0.1: icmp_seq=3 ttl=254 time=0.643 ms
64 bytes from 192.168.0.1: icmp_seq=4 ttl=254 time=0.652 ms
(quindi comunica)
ho caricato da konqueror 192.168.0.1 ( l'ip del router) e mi visualizza correttamente la pagina dei settaggi del router, ma se digito qualunque indirizzo internet (www.google.it, www.hwupgrade.it) mi dice impossibile caricare la pagina.
dove sbaglio? :cry:
grazie per l'eventuale aiuto