On Mon, 20 Sep 2004 10:40:25 +0200
"dragonlair@xxxxxxxxx" <dragonlair@xxxxxxxxx> wrote:
> salve a tutti, ho configurato un piccola lan domestica costituita da
> un pc fisso e da un portatile. Ogni volta che desidero connettere i
> due computer devo loggarmi su ciascuna macchina come root e dare un
>
> # ifconfig eth0 IP_ADDRESS
>
> Vorrei evitare di ripetere ogni volta questa procedura, ma senza usare
> dhcp. Come posso fare?
edita il file /etc/network/interfaces (su Debian si chiama così, su
altre distro ninzo).
Il mio è qualcosa del genere, per darti una idea:
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
# The loopback interface
auto lo
iface lo inet loopback
# The first network card - this entry was created during the Debian
installation# (network, broadcast and gateway are optional)
auto eth0
iface eth0 inet static
address 192.168.1.242
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
quando viene avviato il servizio di rete (Debian /etc/init.d/networking)
ti tira su le interfacce specificate.
ciao
Berto
--
Il paradiso lo preferisco per il clima, l'inferno per la compagnia
Mark Twain
-----------------------------------------------------------------------
Registered Linux User #342067
Please don't send me documents in M$ Office format.
See http://www.fsf.org/philosophy/no-word-attachments.html
-----------------------------------------------------------------------
|