Configurazione di rete con servizio DHCP
-
tunnel_net
- Entusiasta Emergente

- Messaggi: 1988
- Iscrizione: venerdì 27 febbraio 2015, 15:48
- Desktop: gnome
- Distribuzione: ubuntu 10.04
- Sesso: Maschile
Re: Configurazione di rete con servizio DHCP
Io lo ho provato e non ho avuto problemi, sembra però che il pc l'indirizzo lo abbia avuto, fai una semplice prova, cambia
option routers 192.168.0.1;
e mettici uno diverso (poi lo rimetterai giusto)
option routers 192.168.0.100;
chiudi il servizio dhcpd riapri e rifai release renew e vediamo se cambia gateway
io le prove le ho fatte installando
isc-dhcp-server è lo stesso ?
option routers 192.168.0.1;
e mettici uno diverso (poi lo rimetterai giusto)
option routers 192.168.0.100;
chiudi il servizio dhcpd riapri e rifai release renew e vediamo se cambia gateway
io le prove le ho fatte installando
isc-dhcp-server è lo stesso ?
apt-get moo
-
Kaiser1980
- Prode Principiante
- Messaggi: 71
- Iscrizione: lunedì 3 ottobre 2011, 13:31
Re: Configurazione di rete con servizio DHCP
Ciao Tunnel,
allora sulla configurazione del DHCP, ma anche sugli altri file non ho cambiato nulla.
Ho cambiato solo quello che mi hai detto impostando:
Gli esiti sono:
e poi....
Ancora nessun miglioramento ma sembra che il gataway l'abbia cambiato...
allora sulla configurazione del DHCP, ma anche sugli altri file non ho cambiato nulla.
Ho cambiato solo quello che mi hai detto impostando:
Codice: Seleziona tutto
option routers 192.168.0.100;Codice: Seleziona tutto
Microsoft Windows [Versione 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. Tutti i diritti riservati.
C:\Windows\system32>ipconfig /release
Configurazione IP di Windows
Scheda Ethernet Connessione alla rete locale (LAN):
Suffisso DNS specifico per connessione:
Gateway predefinito . . . . . . . . . :
Scheda Tunnel Teredo Tunneling Pseudo-Interface:
Stato supporto. . . . . . . . . . . . : Supporto disconnesso
Suffisso DNS specifico per connessione:
Scheda Tunnel isatap.internal.example.org:
Stato supporto. . . . . . . . . . . . : Supporto disconnesso
Suffisso DNS specifico per connessione:
C:\Windows\system32>ipconfig /renew
Configurazione IP di Windows
Scheda Ethernet Connessione alla rete locale (LAN):
Suffisso DNS specifico per connessione: internal.example.org
Indirizzo IPv4. . . . . . . . . . . . : 192.168.0.10
Subnet mask . . . . . . . . . . . . . : 255.255.255.0
Gateway predefinito . . . . . . . . . : 192.168.0.100
Scheda Tunnel Teredo Tunneling Pseudo-Interface:
Stato supporto. . . . . . . . . . . . : Supporto disconnesso
Suffisso DNS specifico per connessione:
Scheda Tunnel isatap.internal.example.org:
Stato supporto. . . . . . . . . . . . : Supporto disconnesso
Suffisso DNS specifico per connessione:
C:\Windows\system32>Codice: Seleziona tutto
Apr 30 18:54:23 ubuntu kernel: [ 0.242553] fuse init (API version 7.16)
Apr 30 18:54:23 ubuntu kernel: [ 0.242790] msgmni has been set to 836
Apr 30 18:54:23 ubuntu kernel: [ 0.248913] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
Apr 30 18:54:23 ubuntu kernel: [ 0.252100] io scheduler noop registered
Apr 30 18:54:23 ubuntu kernel: [ 0.252109] io scheduler deadline registered
Apr 30 18:54:23 ubuntu kernel: [ 0.252222] io scheduler cfq registered (default)
Apr 30 18:54:23 ubuntu kernel: [ 0.252610] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
Apr 30 18:54:23 ubuntu kernel: [ 0.252687] pciehp: PCI Express Hot Plug Controller Driver version: 0.4
Apr 30 18:54:23 ubuntu kernel: [ 0.253076] input: Power Button as /devices/LNXSYSTM:00/device:00/PNP0C0C:00/input/input0
Apr 30 18:54:23 ubuntu kernel: [ 0.253091] ACPI: Power Button [PWRB]
Apr 30 18:54:23 ubuntu kernel: [ 0.253209] input: Sleep Button as /devices/LNXSYSTM:00/device:00/PNP0C0E:00/input/input1
Apr 30 18:54:23 ubuntu kernel: [ 0.253224] ACPI: Sleep Button [SLPB]
Apr 30 18:54:23 ubuntu kernel: [ 0.253367] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input2
Apr 30 18:54:23 ubuntu kernel: [ 0.253376] ACPI: Power Button [PWRF]
Apr 30 18:54:23 ubuntu kernel: [ 0.253503] ACPI: Fan [FAN] (on)
Apr 30 18:54:23 ubuntu kernel: [ 0.253852] ACPI: acpi_idle registered with cpuidle
Apr 30 18:54:23 ubuntu kernel: [ 0.253905] Marking TSC unstable due to TSC halts in idle
Apr 30 18:54:23 ubuntu kernel: [ 0.258018] thermal LNXTHERM:00: registered as thermal_zone0
Apr 30 18:54:23 ubuntu kernel: [ 0.258026] ACPI: Thermal Zone [THRM] (43 C)
Apr 30 18:54:23 ubuntu kernel: [ 0.258144] ERST: Table is not found!
Apr 30 18:54:23 ubuntu kernel: [ 0.265088] Serial: 8250/16550 driver, 32 ports, IRQ sharing enabled
Apr 30 18:54:23 ubuntu kernel: [ 0.285509] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
Apr 30 18:54:23 ubuntu kernel: [ 0.285593] isapnp: Scanning for PnP cards...
Apr 30 18:54:23 ubuntu kernel: [ 0.372779] serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
Apr 30 18:54:23 ubuntu kernel: [ 0.458536] 00:09: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
Apr 30 18:54:23 ubuntu kernel: [ 0.501152] 00:0a: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
Apr 30 18:54:23 ubuntu kernel: [ 0.568647] Linux agpgart interface v0.103
Apr 30 18:54:23 ubuntu kernel: [ 0.568819] agpgart: Detected VIA KM400/KM400A chipset
Apr 30 18:54:23 ubuntu kernel: [ 0.580324] agpgart-via 0000:00:00.0: AGP aperture is 64M @ 0xe0000000
Apr 30 18:54:23 ubuntu kernel: [ 0.583538] brd: module loaded
Apr 30 18:54:23 ubuntu kernel: [ 0.589249] loop: module loaded
Apr 30 18:54:23 ubuntu kernel: [ 0.589594] i2c-core: driver [adp5520] using legacy suspend method
Apr 30 18:54:23 ubuntu kernel: [ 0.589600] i2c-core: driver [adp5520] using legacy resume method
Apr 30 18:54:23 ubuntu kernel: [ 0.590720] ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 11
Apr 30 18:54:23 ubuntu kernel: [ 0.590728] PCI: setting IRQ 11 as level-triggered
Apr 30 18:54:23 ubuntu kernel: [ 0.590742] pata_acpi 0000:00:11.1: PCI INT A -> Link[LNKA] -> GSI 11 (level, low) -> IRQ 11
Apr 30 18:54:23 ubuntu kernel: [ 0.590753] pata_acpi 0000:00:11.1: VIA VLink IRQ fixup, from 255 to 11
Apr 30 18:54:23 ubuntu kernel: [ 0.590908] pata_acpi 0000:00:11.1: PCI INT A disabled
Apr 30 18:54:23 ubuntu kernel: [ 0.591929] Fixed MDIO Bus: probed
Apr 30 18:54:23 ubuntu kernel: [ 0.596124] PPP generic driver version 2.4.2
Apr 30 18:54:23 ubuntu kernel: [ 0.596332] tun: Universal TUN/TAP device driver, 1.6
Apr 30 18:54:23 ubuntu kernel: [ 0.596338] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
Apr 30 18:54:23 ubuntu kernel: [ 0.596611] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
Apr 30 18:54:23 ubuntu kernel: [ 0.597324] ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 10
Apr 30 18:54:23 ubuntu kernel: [ 0.597332] PCI: setting IRQ 10 as level-triggered
Apr 30 18:54:23 ubuntu kernel: [ 0.597346] ehci_hcd 0000:00:10.3: PCI INT D -> Link[LNKD] -> GSI 10 (level, low) -> IRQ 10
Apr 30 18:54:23 ubuntu kernel: [ 0.597356] ehci_hcd 0000:00:10.3: VIA VLink IRQ fixup, from 5 to 10
Apr 30 18:54:23 ubuntu kernel: [ 0.597414] ehci_hcd 0000:00:10.3: EHCI Host Controller
Apr 30 18:54:23 ubuntu kernel: [ 0.597550] ehci_hcd 0000:00:10.3: new USB bus registered, assigned bus number 1
Apr 30 18:54:23 ubuntu kernel: [ 0.597652] ehci_hcd 0000:00:10.3: irq 10, io mem 0xeb001000
Apr 30 18:54:23 ubuntu kernel: [ 0.608442] ehci_hcd 0000:00:10.3: USB 2.0 started, EHCI 1.00
Apr 30 18:54:23 ubuntu kernel: [ 0.608870] hub 1-0:1.0: USB hub found
Apr 30 18:54:23 ubuntu kernel: [ 0.608884] hub 1-0:1.0: 6 ports detected
Apr 30 18:54:23 ubuntu kernel: [ 0.609069] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
Apr 30 18:54:23 ubuntu kernel: [ 0.609113] uhci_hcd: USB Universal Host Controller Interface driver-
tunnel_net
- Entusiasta Emergente

- Messaggi: 1988
- Iscrizione: venerdì 27 febbraio 2015, 15:48
- Desktop: gnome
- Distribuzione: ubuntu 10.04
- Sesso: Maschile
Re: Configurazione di rete con servizio DHCP
OK, a te non compaiono i messaggi su syslog, ma a parte questo il dhcp sta funzionando perfettamente, cambiando gateway lui ha assegnato quello cambiato
A questo punto mi sembra tutto OK ?
A questo punto mi sembra tutto OK ?
apt-get moo
-
Kaiser1980
- Prode Principiante
- Messaggi: 71
- Iscrizione: lunedì 3 ottobre 2011, 13:31
Re: Configurazione di rete con servizio DHCP
OK, ma da WIN7 andando su Rete continuo a non vedere il server UBUNTU.
Come mai ?
Come mai ?
-
Kaiser1980
- Prode Principiante
- Messaggi: 71
- Iscrizione: lunedì 3 ottobre 2011, 13:31
Re: Configurazione di rete con servizio DHCP
Ma giusto per togliersi il dubbio, non può essere un problema di SAMBA?
Codice: Seleziona tutto
#
# Sample configuration file for the Samba suite for Debian GNU/Linux.
#
#
#======================= Global Settings =======================
[global]
## Browsing/Identification ###
# Change this to the workgroup/NT-domain name your Samba server will part of
workgroup = ANDREAHOUSE
# server string is the equivalent of the NT Description field
server string = %h server (Samba, Ubuntu)
# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable its WINS Server
# wins support = no
# WINS Server - Tells the NMBD components of Samba to be a WINS Client
# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
; wins server = w.x.y.z
# This will prevent nmbd to search for NetBIOS names through DNS.
dns proxy = no
# What naming service and in what order should we use to resolve host names
# to IP addresses
; name resolve order = lmhosts host wins bcast
#### Networking ####
# The specific set of interfaces / networks to bind to
# This can be either the interface name or an IP address/netmask;
# interface names are normally preferred
; interfaces = 127.0.0.0/8 192.168.0.0/24
# Only bind to the named interfaces and/or networks; you must use the
# 'interfaces' option above to use this.
# It is recommended that you enable this feature if your Samba machine is
# not protected by a firewall or is a firewall itself. However, this
# option cannot handle dynamic or non-broadcast interfaces correctly.
; bind interfaces only = yes
#### Debugging/Accounting ####
# This tells Samba to use a separate log file for each machine
# that connects
log file = /var/log/samba/log.%m
# Cap the size of the individual log files (in KiB).
max log size = 1000
# If you want Samba to only log through syslog then set the following
# If you want Samba to only log through syslog then set the following
# parameter to 'yes'.
# syslog only = no
# We want Samba to log a minimum amount of information to syslog. Everything
# should go to /var/log/samba/log.{smbd,nmbd} instead. If you want to log
# through syslog you should set the following parameter to something higher.
syslog = 0
# Do something sensible when Samba crashes: mail the admin a backtrace
panic action = /usr/share/samba/panic-action %d-
tunnel_net
- Entusiasta Emergente

- Messaggi: 1988
- Iscrizione: venerdì 27 febbraio 2015, 15:48
- Desktop: gnome
- Distribuzione: ubuntu 10.04
- Sesso: Maschile
Re: Configurazione di rete con servizio DHCP
Il fatto di vedere i computer in risorse dipende relativamente dal dhcp, nel senso che devi togliere
option netbios-name-servers 192.168.1.1;
perchè un wins non lo hai.
In rete locale la risoluzione dei windows netvbos computer-name è fatta da
lmhosts file
wins (per i domini o multi network)
master-browser (pc eletto fra guelli che ci sono in automatico)
i pc devono stare sullo stesso workgroup
Nelle recenti versioni di windows (da windows7) le impostazioni a livello condivisioni avanzate di rete modificano automaticamente il firewall consentendo o meno l'accesso
Anche se un computer in rete non compare comunque ci si può accedere con indirizzo
Purtroppo capire il motivo della mancanza del computer in rete è complicato andrebbe fatto un
per ogni computer e vedere quale è il master browser
ma cedo il passo a chi ne sa più di me su questa roba
Una soluzione al tuo problema potrebbe essere configurare il samba come wins modificando opportunamente:
In questo caso poi col dhcp assegni
facendo puntare all'ip di samba
option netbios-name-servers 192.168.1.1;
perchè un wins non lo hai.
In rete locale la risoluzione dei windows netvbos computer-name è fatta da
lmhosts file
wins (per i domini o multi network)
master-browser (pc eletto fra guelli che ci sono in automatico)
i pc devono stare sullo stesso workgroup
Codice: Seleziona tutto
# Change this to the workgroup/NT-domain name your Samba server will part of
workgroup = ANDREAHOUSE
Anche se un computer in rete non compare comunque ci si può accedere con indirizzo
Purtroppo capire il motivo della mancanza del computer in rete è complicato andrebbe fatto un
Codice: Seleziona tutto
nbtstat -a COMPUTER-NAMEma cedo il passo a chi ne sa più di me su questa roba
Una soluzione al tuo problema potrebbe essere configurare il samba come wins modificando opportunamente:
Codice: Seleziona tutto
# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable its WINS Server
# wins support = nCodice: Seleziona tutto
option netbios-name-servers 192.168.0.x;apt-get moo
-
Kaiser1980
- Prode Principiante
- Messaggi: 71
- Iscrizione: lunedì 3 ottobre 2011, 13:31
Re: Configurazione di rete con servizio DHCP
Allora, dopo tanto cercare in parte era proprio una stupidaggine legata a Windows. Per ora è qualche giorno che funziona;
Ho apportato le ultime modifiche indicate da Tunnel per sistemare il file di SAMBA:
Usando l'IP del server che fornisce SAMBA.
Nonostante tutto ciò il server non risultava visibile in rete.
Allora ho provato a disabilitare sia il firewall di windows sia la protezione antivirus (AVAST nel mio caso) e finalmente il server risulta visibile tra le risorse di rete. La rete me la indica comunque come non identificata, ma almeno riesco ad accedere al server.
Riguardo alla risposta di Tunnel:
Ora l'inconveniente che vedo (ma è più una noia che un problema) è che dopo 2-3 ore che il pc è collegato perdo la rete con il messaggio "Network error; connection timed out".
Riavviando SAMBA e windows 7 il server è nuovamente visibile.
Devo cambiare qualche impostazione su DHCP o SAMBA?
Ciao e grazie dell'aiuto finora ricevuto.
Buona serata.
Ho apportato le ultime modifiche indicate da Tunnel per sistemare il file di SAMBA:
Codice: Seleziona tutto
# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable its WINS Server
wins support = YESCodice: Seleziona tutto
option netbios-name-servers 192.168.0.2;Nonostante tutto ciò il server non risultava visibile in rete.
Allora ho provato a disabilitare sia il firewall di windows sia la protezione antivirus (AVAST nel mio caso) e finalmente il server risulta visibile tra le risorse di rete. La rete me la indica comunque come non identificata, ma almeno riesco ad accedere al server.
Riguardo alla risposta di Tunnel:
Mi potresti spiegare meglio come si fa? Digitando semplicemente l'IP nella barra? Giusto nel caso mi serva come alternativa....Anche se un computer in rete non compare comunque ci si può accedere con indirizzo
Ora l'inconveniente che vedo (ma è più una noia che un problema) è che dopo 2-3 ore che il pc è collegato perdo la rete con il messaggio "Network error; connection timed out".
Riavviando SAMBA e windows 7 il server è nuovamente visibile.
Devo cambiare qualche impostazione su DHCP o SAMBA?
Ciao e grazie dell'aiuto finora ricevuto.
Buona serata.
-
tunnel_net
- Entusiasta Emergente

- Messaggi: 1988
- Iscrizione: venerdì 27 febbraio 2015, 15:48
- Desktop: gnome
- Distribuzione: ubuntu 10.04
- Sesso: Maschile
Re: Configurazione di rete con servizio DHCP
option netbios-name-servers 192.168.0.2;
ok se il 192.168.0.2 è il samba
Poi facciamo qualche verifica, dai su windows
se in una riga c'è:
..__MSBROWSE__.<01> GROUP Registered
Vuol dire che il master browser è lui e quindi la definizione wins support = YES è OK (io ho wins support = yes minuscolo)
Se da windows dai un
ti riregistri su wins senza dovere spegnere e accendere (la registrazione avviene al boot)
Poi su windows 7 con ipconfig /all devi trovare
Server WINS primario 192.168.0.2
se non c'è la definizione option netbios-name-servers 192.168.0.2 non lo assegna, l'alternativa è andare sui pc e nelle proprietà della scheda di rete in "Avanzate" nel tab wins metti 192.168.0.2
Vediamo l'ultima cosa
dopo 2-3 ore che il pc è collegato perdo la rete
hai definito
default-lease-time 600;
max-lease-time 7200;
Un default lease time di 600 second (10 minuti), e massimo 7200 secondi (2 ore).
Metti default 86400 (un giorno), e max 172800 (o 604800 una settimana)
Per accedere ad uno share di un pc basta che in windows su start nella finestrella run/cerca scrivi \\ip-address\share oppure da explorer connetti unità di rete
ok se il 192.168.0.2 è il samba
Poi facciamo qualche verifica, dai su windows
Codice: Seleziona tutto
nbtstat -A 192.168.0.2..__MSBROWSE__.<01> GROUP Registered
Vuol dire che il master browser è lui e quindi la definizione wins support = YES è OK (io ho wins support = yes minuscolo)
Se da windows dai un
Codice: Seleziona tutto
nbtstat -RRPoi su windows 7 con ipconfig /all devi trovare
Server WINS primario 192.168.0.2
se non c'è la definizione option netbios-name-servers 192.168.0.2 non lo assegna, l'alternativa è andare sui pc e nelle proprietà della scheda di rete in "Avanzate" nel tab wins metti 192.168.0.2
Vediamo l'ultima cosa
dopo 2-3 ore che il pc è collegato perdo la rete
hai definito
default-lease-time 600;
max-lease-time 7200;
Un default lease time di 600 second (10 minuti), e massimo 7200 secondi (2 ore).
Metti default 86400 (un giorno), e max 172800 (o 604800 una settimana)
Per accedere ad uno share di un pc basta che in windows su start nella finestrella run/cerca scrivi \\ip-address\share oppure da explorer connetti unità di rete
apt-get moo
Chi c’è in linea
Visualizzano questa sezione: 0 utenti iscritti e 3 ospiti