[ITA] Guida indirizzo IP fisso con Debian Squeeze da console ssh

headMolto facile e veloce:

Apri il file /etc/network/interfaces con

su -

per diventare root
e

nano /etc/network/interfaces

per editare il file con nano.

Una volta modificato,
salvare con +”o” + invio
e
chiudere con +”x”

Ovviamente occorre adattare il seguente contenuto alla propria sottorete (è ovvio che può essere anche un indirizzo ip pubblico…). In questo esempio viene utilizzato l’ indirizzo IP 192.168.0.100/24, la subnet 192.168.0.0, il router 192.168.0.1, l’ interfaccia di rete ETH0

Buona configurazione.

# 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
#allow-hotplug eth0
#iface eth0 inet dhcp
auto eth0
iface eth0 inet static
        address 192.168.0.100
        netmask 255.255.255.0
        network 192.168.0.0
        broadcast 192.168.0.255
        gateway 192.168.0.1

per rendere effettive le modifiche /etc/init.d/networking restart
per verificare l’ indirizzo ifconfig oppure ifconfig eth0 (dove eth0 è il nome dell’ interfaccia).

Ciao 

(Visited 177 times, 1 visits today)

Author: Giuseppe Urso

Giuseppe lives in Haarlem now with his shiny dog, Filippa
In 1982 received his first home computer, a Commodore 64, followed by Datasette and a 1541 Floppy Disk Drive.
In 1999 he installed his first Linux distro (LRH6).
In 2006 he switched to Debian as favourite OS. Giuseppe Urso actively sustains the Free Software Fundation and his founder Richard Mattew Stallman, he speaks to people trying to convince them to join the fight now, and about how important is to use Free Software only.
He has a job as Infra Specialist at Hippo Enterprise Java Cms an Open Source Enterprise class Content Management System, one of the coolest company ever, in Amsterdam. He’s always ready to install Debian on other people computers for free.

Leave a Reply

Your email address will not be published. Required fields are marked *