NO!
Cancella la seconda riga




Codice: Seleziona tutto
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet dhcpCodice: Seleziona tutto
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
gateway 192.168.1.1
broadcast 192.168.1.255


Codice: Seleziona tutto
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
broadcast 192.168.1.255
gateway 192.168.1.1



doctorhouse ha scritto: Credo sia un problema di dns. Dovresti editare il file /etc/resolv.conf inserendo l'indirizzo dns



Codice: Seleziona tutto
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
address 127.0.0.1
netmask 255.0.0.0
# The primary network interface
iface eth0 inet static
address 192.168.1.x #IP del Server
network 192.168.1.0
netmask 255.255.255.0
gateway 192.168.1.254 #IP del Router
broadcast 192.168.1.255
dns-nameservers 192.168.1.254 #IP del Router
auto eth0
Codice: Seleziona tutto
127.0.0.1 localhost
192.168.1.20 client1
# Indirizzi-nomi dei server e apparati di rete
192.168.1.10 server
192.168.1.254 router gateway dns
Codice: Seleziona tutto
127.0.0.1 localhost
192.168.1.30 client2
# Indirizzi-nomi dei server e apparati di rete
192.168.1.10 server
192.168.1.254 router gateway dns
Codice: Seleziona tutto
127.0.0.1 localhost
192.168.1.10 server
# Indirizzi-nomi dei server e apparati di rete
192.168.1.20 client1
192.168.1.30 client2
192.168.1.254 router gateway dns


Codice: Seleziona tutto
ping 192.168.1.10
Codice: Seleziona tutto
ping server
Visualizzano questa sezione: Google [Bot] e 5 ospiti