Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problemi DHCP
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
Ciccio Bueo
l33t
l33t


Joined: 19 Oct 2004
Posts: 834
Location: Treviso

PostPosted: Mon Feb 13, 2006 10:13 am    Post subject: Problemi DHCP Reply with quote

Ho cercato nel forum, ma senza venirne a capo.. allora la situazione è questa, in ufficio avevamo una unica lan che condividevo con un'altra "azienda", quindi configuravo tutti i pc allo stesso modo usando il server windows per accedere all'esterno, ora invece ho cercato di fare un server linux a cui si collegano gli altri pc del nostro ufficio, ma non riesco a farlo funzionare, nonostante a casa sia riuscito con successo a configurare una piccola lan con il server dhcp.

dettagli:

PC-Server >

eth1 connessa al server windows (quindi ip statico sulla connessione a internet)

Code:
eth1      Link encap:Ethernet  HWaddr 00:50:FC:A8:09:84
          inet addr:192.168.2.23  Bcast:192.168.2.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:17181 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6901 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:16847252 (16.0 Mb)  TX bytes:507898 (495.9 Kb)
          Interrupt:10 Base address:0xe000


eth0 connessa alla lan tramite un piccolo hub a 5 porte:

Code:
eth0      Link encap:Ethernet  HWaddr 00:30:4F:1E:F1:20
          inet addr:10.10.3.22  Bcast:10.10.3.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:26 errors:0 dropped:0 overruns:0 frame:0
          TX packets:56 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:15340 (14.9 Kb)  TX bytes:11314 (11.0 Kb)
          Interrupt:11 Base address:0xdc00


la conf del server (presa dalla doc ufficiale qui: http://www.gentoo.org/doc/it/home-router-howto.xml)

/etc/conf.d/net:

Code:
config_eth1=( "192.168.2.23 netmask 255.255.255.0 brd 192.168.2.255" )
routes_eth1=( "default gw 192.168.2.1" )


config_eth0=( "10.10.3.22 broadcast 10.10.3.255 netmask 255.255.255.0" )
routes_eth0=( "default gw 192.168.2.23" )


/etc/resolv.conf:
Code:

nameserver 151.99.125.1
domain net-office


/etc/dhcp/dhcpd.conf:

Code:

authoritative;
ddns-update-style interim;
subnet 10.10.3.0 netmask 255.255.255.0 {
    range 10.10.3.19 10.10.3.27;
    default-lease-time 259200;
    max-lease-time 518400;
    option subnet-mask 255.255.255.0;
    option broadcast-address 10.10.3.255;
    option routers 10.10.3.23;
    option domain-name-servers 10.10.3.23;
}


/etc/conf.d/dnsmasq:
Code:

# /etc/conf.d/dnsmasq: config file for /etc/init.d/dnsmasq

# See the dnsmasq(8) man page for possible options to put here.
DNSMASQ_OPTS="-i eth0"



ma il client non funziona... e lo stesso pc a casa prende perfettamente i dati dal server dhcp...

ecco cosa dicono i log del server:

Code:
Feb 13 10:45:03 officeserver dhcpd: DHCPDISCOVER from 00:11:09:8d:9e:9e via eth0Feb 13 10:45:03 officeserver dhcpd: DHCPOFFER on 10.10.3.27 to 00:11:09:8d:9e:9e via eth0
Feb 13 10:45:19 officeserver dhcpd: DHCPDISCOVER from 00:11:09:8d:9e:9e via eth0Feb 13 10:45:19 officeserver dhcpd: DHCPOFFER on 10.10.3.27 to 00:11:09:8d:9e:9e via eth0


avete qualche idea di cosa posso fare?

grazie :wink:


Last edited by Ciccio Bueo on Mon Jun 19, 2006 10:37 am; edited 2 times in total
Back to top
View user's profile Send private message
codadilupo
Advocate
Advocate


Joined: 05 Aug 2003
Posts: 3135

PostPosted: Mon Feb 13, 2006 10:25 am    Post subject: Reply with quote

non ho capito. Dal log sembrerebbe che il client prenda un IP.
Cosa esattamente fallisce ?

Coda
Back to top
View user's profile Send private message
Ciccio Bueo
l33t
l33t


Joined: 19 Oct 2004
Posts: 834
Location: Treviso

PostPosted: Mon Feb 13, 2006 10:33 am    Post subject: Reply with quote

praticamnete il client risponde con [!!] al "running dhcpcd", e la rete non và, il server non pinga il client

Code:
Feb 13 11:30:11 officeserver dhcpd: DHCPDISCOVER from 00:11:09:8d:9e:9e (htpc32) via eth0
Feb 13 11:30:11 officeserver dhcpd: DHCPOFFER on 10.10.3.27 to 00:11:09:8d:9e:9e (htpc32) via eth0
Feb 13 11:30:13 officeserver su(pam_unix)[9128]: session opened for user root by (uid=1000)

officeserver office # ping 10.10.3.27
PING 10.10.3.27 (10.10.3.27) 56(84) bytes of data.
From 10.10.3.22 icmp_seq=1 Destination Host Unreachable
From 10.10.3.22 icmp_seq=2 Destination Host Unreachable
From 10.10.3.22 icmp_seq=3 Destination Host Unreachable

--- 10.10.3.27 ping statistics ---
4 packets transmitted, 0 received, +3 errors, 100% packet loss, time 3003ms
, pipe 3


e il client non pinga il server... :cry:
Back to top
View user's profile Send private message
ProT-0-TypE
Veteran
Veteran


Joined: 20 Dec 2003
Posts: 1624
Location: Cagliari

PostPosted: Mon Feb 13, 2006 10:41 am    Post subject: Reply with quote

in /etc/conf.d/net io ho:
Code:
routes_eth0=("default via 10.0.0.1")


nel file di esempio per lo meno usa via e non gw
_________________
[Vuoi guadagnare navigando?]
Back to top
View user's profile Send private message
Ciccio Bueo
l33t
l33t


Joined: 19 Oct 2004
Posts: 834
Location: Treviso

PostPosted: Mon Feb 13, 2006 10:45 am    Post subject: Reply with quote

ma sul client o sul server?
Back to top
View user's profile Send private message
bender86
Guru
Guru


Joined: 18 Mar 2005
Posts: 484

PostPosted: Mon Feb 13, 2006 10:53 am    Post subject: Reply with quote

Recentemente ho installato un altro sistema gentoo e ho notato che dhcpcd-2.0.0 non funzionava bene. Prova con qualche altro client, tipo udhcp o pump.
Back to top
View user's profile Send private message
Deus Ex
Guru
Guru


Joined: 16 Nov 2005
Posts: 489
Location: Patavium

PostPosted: Mon Feb 13, 2006 11:38 am    Post subject: Reply with quote

Quoto bender. Stesso problema qui. Ho risolto usando dhclient.
_________________
Deus Ex
--
L’inflazione che caccia nelle mani dell’individuo, in un gesto solo, miliardi di marchi, lasciandolo più miserabile di prima, dimostra punto per punto che il denaro è un’allucinazione collettiva.
Back to top
View user's profile Send private message
ProT-0-TypE
Veteran
Veteran


Joined: 20 Dec 2003
Posts: 1624
Location: Cagliari

PostPosted: Mon Feb 13, 2006 11:43 am    Post subject: Reply with quote

Ciccio Bueo wrote:
ma sul client o sul server?


Lascia stare, funziona anche con "gw" al posto di "via", ho appena fatto la prova :roll:
_________________
[Vuoi guadagnare navigando?]
Back to top
View user's profile Send private message
Ciccio Bueo
l33t
l33t


Joined: 19 Oct 2004
Posts: 834
Location: Treviso

PostPosted: Mon Feb 13, 2006 11:43 am    Post subject: Reply with quote

ma che jeja grrrr :evil:

per ora stacco tutto e collego direttamente al server win, altrimenti non ne vengo a capo in maniera rapida... :cry:
Back to top
View user's profile Send private message
codadilupo
Advocate
Advocate


Joined: 05 Aug 2003
Posts: 3135

PostPosted: Mon Feb 13, 2006 12:08 pm    Post subject: Reply with quote

allora, il server linux deve fare da dhcp e fornire i dati ai client per poter navigare attraverso il gw windows ?
Il server linux... naviga ;-) ?
Perché la conf di dhcpd mi sembra corretta. Anche se io personalmente non ho usato dnsmasq, il resto é come l'ho impostato qui da me. E i pc - win e linux - riesco a ottenere corettamente IP/DNS/GWlease etc..

Coda
Back to top
View user's profile Send private message
Ciccio Bueo
l33t
l33t


Joined: 19 Oct 2004
Posts: 834
Location: Treviso

PostPosted: Mon Feb 13, 2006 12:20 pm    Post subject: Reply with quote

codadilupo wrote:
allora, il server linux deve fare da dhcp e fornire i dati ai client per poter navigare attraverso il gw windows ?
esatto

Quote:

Il server linux... naviga ;-) ?
si

Quote:

Perché la conf di dhcpd mi sembra corretta. Anche se io personalmente non ho usato dnsmasq, il resto é come l'ho impostato qui da me. E i pc - win e linux - riesco a ottenere corettamente IP/DNS/GWlease etc..

Coda


mah, ora ho provato ad attaccare lo stesso cavo su un'altra presa e funziona... sembrerebbe quindi un problema della cablatura dell'ufficio... anche mi sembra strano che prima dai log vedevo il client che cercava di connettersi, quindi non è che era proprio una linea morta. :roll: per ora lo dò come solved, ma con riserva... non sono convito dipenda solo dalla presa a muro. (o dal cavo)
Back to top
View user's profile Send private message
codadilupo
Advocate
Advocate


Joined: 05 Aug 2003
Posts: 3135

PostPosted: Mon Feb 13, 2006 12:37 pm    Post subject: Reply with quote

ehehe, l'importante é che ti dia tempo di lavorarci ;-)

P.S.: certo che é una scelta sui generis, mettere Win come limite esterno della LAN ;-)

P.P.S.: visti i problemi di "hw"... darei un'occhiata anche alle schede di rete del server linux. Controllo con i miitools... non sia mai che ti serva una 100Mbit e che invece le schede si autoconfigurino a 10: un collo di bottiglia potrebbe spiegare il fatto che da una presa funzioni e da un'altra no.

Coda
Back to top
View user's profile Send private message
Ciccio Bueo
l33t
l33t


Joined: 19 Oct 2004
Posts: 834
Location: Treviso

PostPosted: Mon Feb 13, 2006 1:31 pm    Post subject: Reply with quote

codadilupo wrote:
ehehe, l'importante é che ti dia tempo di lavorarci ;-)

P.S.: certo che é una scelta sui generis, mettere Win come limite esterno della LAN ;-)

P.P.S.: visti i problemi di "hw"... darei un'occhiata anche alle schede di rete del server linux. Controllo con i miitools... non sia mai che ti serva una 100Mbit e che invece le schede si autoconfigurino a 10: un collo di bottiglia potrebbe spiegare il fatto che da una presa funzioni e da un'altra no.

Coda


si la scelta dei win come server è qualcosa che mi indispone profondamente.... poi vorrei farvi conoscere l'installatore............. avete presente uno di quelli che vendeva macchine da scrivere e fotocopiatrici e poi si è messo a vendere pc? (senza ovviamente saperene nulla). veramente una persona simpatica!!!!

per l 'hw, bè, è il client che ha una gbit, e l'attacco che ho cambiato è proprio quello del client. quindi non dovrebbero esserci problemi.. spero. :wink: intanto vado avanti così sperando di avere più tempo per controllare meglio.

grazie! :D
Back to top
View user's profile Send private message
Ciccio Bueo
l33t
l33t


Joined: 19 Oct 2004
Posts: 834
Location: Treviso

PostPosted: Mon Jun 19, 2006 10:06 am    Post subject: Reply with quote

e ci risiamo.... quindi non è un problema di cavi, visto che ho montato un cavo nuovo settimana scorsa e andava......

mah... stesso problema da client win e client linux...


ecco l'attuale conf:


server -> naviga perfettamente
Code:
 # ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:30:4F:1E:F1:20
          inet addr:192.168.0.41  Bcast:192.168.2.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:361 errors:0 dropped:0 overruns:0 frame:0
          TX packets:577 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:36854 (35.9 Kb)  TX bytes:84152 (82.1 Kb)
          Interrupt:10 Base address:0xdc00

eth1      Link encap:Ethernet  HWaddr 00:40:F4:EA:0E:62
          inet addr:192.168.2.42  Bcast:192.168.2.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:5655 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5084 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:4467932 (4.2 Mb)  TX bytes:711390 (694.7 Kb)
          Interrupt:11 Base address:0xe000

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:83 errors:0 dropped:0 overruns:0 frame:0
          TX packets:83 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:13898 (13.5 Kb)  TX bytes:13898 (13.5 Kb)


Code:
# ping -c 3 www.google.com
/etc/host.conf: line 24: bad command `mdns off'
PING www.l.google.com (64.233.183.104) 56(84) bytes of data.
64 bytes from 64.233.183.104: icmp_seq=1 ttl=239 time=42.7 ms
64 bytes from 64.233.183.104: icmp_seq=2 ttl=239 time=40.8 ms
64 bytes from 64.233.183.104: icmp_seq=3 ttl=239 time=98.1 ms

--- www.l.google.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1998ms
rtt min/avg/max/mdev = 40.842/60.602/98.179/26.583 ms


pingo il client:

Code:

# ping -c 3 192.168.0.44
PING 192.168.0.44 (192.168.0.44) 56(84) bytes of data.
64 bytes from 192.168.0.44: icmp_seq=1 ttl=64 time=2.90 ms
64 bytes from 192.168.0.44: icmp_seq=2 ttl=64 time=0.188 ms
64 bytes from 192.168.0.44: icmp_seq=3 ttl=64 time=0.184 ms

--- 192.168.0.44 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 0.184/1.093/2.907/1.282 ms



l'ip è stato regolarmente assegnato:
Code:
Jun 19 11:41:27 officeserver dnsmasq[9973]: DHCPDISCOVER(eth0) 192.168.0.44 00:17:31:25:fe:36
Jun 19 11:41:27 officeserver dnsmasq[9973]: DHCPOFFER(eth0) 192.168.0.44 00:17:31:25:fe:36
Jun 19 11:41:27 officeserver dnsmasq[9973]: DHCPREQUEST(eth0) 192.168.0.44 00:17:31:25:fe:36
Jun 19 11:41:27 officeserver dnsmasq[9973]: DHCPACK(eth0) 192.168.0.44 00:17:31:25:fe:36


come nameserver sul client risulta l'ip del server, usl serv che ha una connessione statica con l'esterno risulatno i dns giusti, in quanto navigo perfettamente.

ma qualcosa non funziona.... :wink:
Back to top
View user's profile Send private message
codadilupo
Advocate
Advocate


Joined: 05 Aug 2003
Posts: 3135

PostPosted: Mon Jun 19, 2006 11:10 am    Post subject: Reply with quote

questa volta, pero', mi pare di capire, il problema è DNS, non dhcp, giusto ? personalmente eviterei di mettere un DNS interno, e mi terrei i dns pubblici dell'ISP.

Coda
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
Page 1 of 1

 
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