[PLUTO-help] DHCP sul DLink DSL300T
Matteo Semplice
matteo.semplice a libero.it
Mer 3 Dic 2008 22:46:04 CET
Buonasera a tutti.
Qualcuno ha esperienza con il modem DSL-300T della DLink?
Ho da poco cambiato contratto ADSL e sono passato ad un contratto flat. Così
ho modificato la configurazione del modem:
* prima il modem funzionava in modo "bridged" e mi collegavo con pppoe
* ora ho configurato il modem per collegarsi all'avvio e attivato il server
DHCP sul DSL-300T e configuro eth0 con DHCP.
Precisamente mi sono collegato a 192.168.1.1 e, dopo essermi autenticato, ho
modificato la configurazione della connessione (utente, pwd, etc) e poi
cliccato su "enable DHCP server" e lasciato le impostazioni di default
(StartIP=192.168.1.2, EndIP=192.168.1.254,primary DNS=192.168.1.1, lease time
60 sec). Ho salvato la configurazione e fatto un reboot del modem.
Ora il modem si connette, ma la porta eth0 riceve dal DHCP del modem un
indirizzo 93.147.151.*, che è quello che a sua volta il modem riceve dalla
connessione pppoa e non, come mi aspettavo, un 192.168.1.*.
Il problema è che l'indirizzo 93.147.151.* del modem continua a cambiare
(circa ogni due minuti!) e la mia connessione funziona saltuariamente. Non ho
capito bene perchè ma immagino che ogni volta che cambia l'indirizzo del
modem devo attendere che si riconfiguri la porta o magari anche il firewall
non è felice dei continui cambiamenti: talvolta riavviare
arno-iptables-firewall ripristina la connessione
Ecco un pezzo il system log del modem (data e ora sono sbagliate, ma
l'orologio del modem è l'ultimo dei miei pensieri adesso!):
Sep 8 12:00:06> Valid Configuration Tree
Sep 8 12:00:11> Firewall NAT service started
Sep 8 12:00:11> Bridge Created: br0
Sep 8 12:00:11> Bridge Interface Added: eth0
Sep 8 12:00:15> DSL Carrier is training
Sep 8 12:00:25> DSL Carrier is up
Sep 8 12:00:25> pppd 2.4.1 started by root, uid 0
Sep 8 12:00:25> default route ioctl(SIOCADDRT): Network is unreachable(128)
Sep 8 12:00:25> WAN IP address 10.64.64.64
Sep 8 12:00:25> PPPoA Connect with IP Address 10.64.64.64
Sep 8 12:00:25> WAN gateway 10.112.112.112
Sep 8 12:00:25> PPPoA Connection Successfully Established
Sep 8 12:00:25> PPPoA Connect with Gateway IP Address: 10.112.112.112
Sep 8 12:01:03> Connect: ppp0 {--}
Sep 8 12:01:07> Local IP address changed to 93.147.151.228
Sep 8 12:01:07> PPPoA Assigned IP Address: 93.147.151.228
Sep 8 12:01:07> Remote IP address changed to 212.151.181.142
Sep 8 12:01:07> PPPoA Assigned Gateway IP Address: 212.151.181.142
Sep 8 12:02:07> Terminating connection due to lack of activity.
Sep 8 12:02:07> Connection terminated.
Sep 8 12:03:03> Connect: ppp0 {--}
Sep 8 12:03:03> Local IP address changed to 93.147.151.238
Sep 8 12:03:03> PPPoA Assigned IP Address: 93.147.151.238
Sep 8 12:03:03> default route ioctl(SIOCADDRT): Network is unreachable(128)
Sep 8 12:05:01> Terminating connection due to lack of activity.
Sep 8 12:05:01> Connection terminated.
Sep 8 12:05:43> Connect: ppp0 {--}
Sep 8 12:05:43> Local IP address changed to 93.147.151.157
Sep 8 12:05:43> PPPoA Assigned IP Address: 93.147.151.157
Sep 8 12:05:43> default route ioctl(SIOCADDRT): Network is unreachable(128)
Sep 8 12:18:45> Terminating connection due to lack of activity.
Sep 8 12:18:45> Connection terminated.
Sep 8 12:20:17> Connect: ppp0 {--}
Sep 8 12:22:59> Terminating connection due to lack of activity.
Sep 8 12:22:59> Connection terminated.
Invece "grep dhclient /var/log/syslog" sul PC:
Dec 3 22:09:56 roccia dhclient: DHCPREQUEST on eth0 to 192.168.1.1 port 67
Dec 3 22:09:56 roccia dhclient: DHCPNAK from 192.168.1.1
Dec 3 22:09:56 roccia dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port
67 interval 8
Dec 3 22:09:56 roccia dhclient: DHCPOFFER from 192.168.1.1
Dec 3 22:09:56 roccia dhclient: DHCPREQUEST on eth0 to 255.255.255.255 port
67
Dec 3 22:09:56 roccia dhclient: DHCPACK from 192.168.1.1
Dec 3 22:09:56 roccia dhclient: bound to 93.147.151.228 -- renewal in 31
seconds.
Dec 3 22:10:27 roccia dhclient: DHCPREQUEST on eth0 to 192.168.1.1 port 67
Dec 3 22:10:27 roccia dhclient: send_packet: Operation not permitted
Dec 3 22:10:34 roccia dhclient: DHCPREQUEST on eth0 to 192.168.1.1 port 67
Dec 3 22:10:34 roccia dhclient: send_packet: Operation not permitted
Dec 3 22:10:47 roccia dhclient: DHCPREQUEST on eth0 to 192.168.1.1 port 67
Dec 3 22:10:47 roccia dhclient: send_packet: Operation not permitted
Dec 3 22:10:58 roccia dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port
67 interval 6
Dec 3 22:10:58 roccia dhclient: DHCPOFFER from 192.168.1.1
Dec 3 22:10:58 roccia dhclient: DHCPREQUEST on eth0 to 255.255.255.255 port
67
Dec 3 22:10:58 roccia dhclient: DHCPACK from 192.168.1.1
Dec 3 22:10:58 roccia dhclient: bound to 93.147.151.228 -- renewal in 26
seconds.
Dec 3 22:11:24 roccia dhclient: DHCPREQUEST on eth0 to 192.168.1.1 port 67
Dec 3 22:11:24 roccia dhclient: DHCPACK from 192.168.1.1
Dec 3 22:11:24 roccia dhclient: bound to 93.147.151.228 -- renewal in 30
seconds.
Dec 3 22:11:54 roccia dhclient: DHCPREQUEST on eth0 to 192.168.1.1 port 67
Dec 3 22:11:54 roccia dhclient: DHCPNAK from 192.168.1.1
Dec 3 22:11:54 roccia dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port
67 interval 8
Dec 3 22:11:54 roccia dhclient: DHCPOFFER from 192.168.1.1
Dec 3 22:11:54 roccia dhclient: DHCPREQUEST on eth0 to 255.255.255.255 port
67
Dec 3 22:11:54 roccia dhclient: DHCPACK from 192.168.1.1
Dec 3 22:11:54 roccia dhclient: bound to 93.147.151.238 -- renewal in 25
seconds.
Dec 3 22:12:19 roccia dhclient: DHCPREQUEST on eth0 to 192.168.1.1 port 67
Dec 3 22:12:19 roccia dhclient: DHCPACK from 192.168.1.1
Dec 3 22:12:44 roccia dhclient: DHCPREQUEST on eth0 to 192.168.1.1 port 67
Dec 3 22:12:44 roccia dhclient: DHCPACK from 192.168.1.1
Dec 3 22:12:44 roccia dhclient: bound to 93.147.151.238 -- renewal in 25
seconds.
Dec 3 22:13:09 roccia dhclient: DHCPREQUEST on eth0 to 192.168.1.1 port 67
Dec 3 22:13:09 roccia dhclient: DHCPACK from 192.168.1.1
Dec 3 22:13:09 roccia dhclient: bound to 93.147.151.238 -- renewal in 28
seconds.
Dec 3 22:13:37 roccia dhclient: DHCPREQUEST on eth0 to 192.168.1.1 port 67
Dec 3 22:13:37 roccia dhclient: DHCPACK from 192.168.1.1
Dec 3 22:13:37 roccia dhclient: bound to 93.147.151.238 -- renewal in 25
seconds.
Dec 3 22:14:02 roccia dhclient: DHCPREQUEST on eth0 to 192.168.1.1 port 67
Dec 3 22:14:02 roccia dhclient: DHCPACK from 192.168.1.1
Dec 3 22:14:02 roccia dhclient: bound to 93.147.151.238 -- renewal in 26
seconds.
Dec 3 22:14:28 roccia dhclient: DHCPREQUEST on eth0 to 192.168.1.1 port 67
Dec 3 22:14:28 roccia dhclient: DHCPNAK from 192.168.1.1
Dec 3 22:14:28 roccia dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port
67 interval 8
Dec 3 22:14:28 roccia dhclient: DHCPOFFER from 192.168.1.1
Dec 3 22:14:28 roccia dhclient: DHCPREQUEST on eth0 to 255.255.255.255 port
67
Dec 3 22:14:28 roccia dhclient: DHCPACK from 192.168.1.1
Dec 3 22:14:28 roccia dhclient: bound to 93.147.151.157 -- renewal in 25
seconds.
Dec 3 22:14:53 roccia dhclient: DHCPREQUEST on eth0 to 192.168.1.1 port 67
Dec 3 22:14:53 roccia dhclient: DHCPACK from 192.168.1.1
Dec 3 22:14:53 roccia dhclient: bound to 93.147.151.157 -- renewal in 31
seconds.
<etc.... etc...>
Mi sembra anche di aver letto (ma non lo ritrovo più, sigh!) che se spegnessi
il server DHCP sul modem, allora la porta eth del modem avrebbe l'indirizzo
192.168.1.2 e potrei configurarla come "inet static". A me andrebbe benissimo
perchè di fatto ho un solo PC collegato direttamente al modem. Però non
funziona...
Qualcuno ha qualche idea?
Grazie mille.
Matteo Semplice
More information about the pluto-help
mailing list