PDA

View Full Version : slackware 12.1 : Rete configurata ma internet non va


francescopi
24-10-2008, 20:00
Salve a tutti....
ho la slackware 12.1 e ho configurato correttamente la rete ethernet

infatti ifconfig -a mi dice che eth0 è attiva e che ha un indirizzzo id rete e una subnet....anche l icona greafica del desktop mi dice connesso e ci sono pacchetti trasmessi e ricevuti....
Anche eseguendo route vedo che cè la rottà verso il default gateway del mio router infatti viene pingato....

Nonostante tutto ciò non riesco a navifare su internet avendo scelto cmq l opzione del dhcp

ho fatto tali passaggi perchè inizialmente eth0 era down

ifconfig eth0 up
route add -net default gw ipgateway dev eth0
dhclient eth0

Grazie dell' aiuto......
Premetto che internet funziona perchè lo stesso cavo messo su un secondo pc windows funziona
e che ho un solo router/modem ethernet

francescopi
24-10-2008, 20:35
ho risolto :sofico:

ho aggiunto prima i dns al file dei dns mettendo sia localhost che il gateway
e poi ho visto che forse le rotte con route-n dal gateway in poi non erano corrette...infatti ho fatto queste cose :
1)
root@darkstar:/etc# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.2.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

2)
root@darkstar:/etc# route add -net default gw 10.0.2.2 netmask 255.255.255.0 dev eth0
root@darkstar:/etc# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.0.2.2 255.255.255.0 UG 0 0 0 eth0
10.0.2.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

3)
root@darkstar:/etc# route del -net 10.0.2.0 netmask 255.255.255.0 dev eth0
root@darkstar:/etc# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.0.2.2 255.255.255.0 UG 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
root@darkstar:/etc# dhclient
Internet Systems Consortium DHCP Client V3.0.6
Copyright 2004-2007 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/eth1/00:13:8f:12:d1:77
Sending on LPF/eth1/00:13:8f:12:d1:77
Listening on LPF/eth0/00:17:9a:3a:a8:9d
Sending on LPF/eth0/00:17:9a:3a:a8:9d
Sending on Socket/fallback
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 7
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPACK from 10.0.2.2
bound to 10.0.2.16 -- renewal in 84599 seconds.
root@darkstar:/etc# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.2.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 10.0.2.2 0.0.0.0 UG 0 0 0 eth0


e ora navigo..chi mi spiega cosa è successo :sofico: ?
cosi uno capisce di piu come funzionano le cose....abituato con ubuntu che configurava tutto lui qui ci ho perso un oretta :sofico: